{"version":3,"file":"base.cjs","names":["Serializable"],"sources":["../../src/example_selectors/base.ts"],"sourcesContent":["import { Serializable } from \"../load/serializable.js\";\nimport type { Example } from \"../prompts/base.js\";\n\n/**\n * Base class for example selectors.\n */\nexport abstract class BaseExampleSelector extends Serializable {\n  lc_namespace = [\"langchain_core\", \"example_selectors\", \"base\"];\n\n  /**\n   * Adds an example to the example selector.\n   * @param example The example to add to the example selector.\n   * @returns A Promise that resolves to void or a string.\n   */\n  abstract addExample(example: Example): Promise<void | string>;\n\n  /**\n   * Selects examples from the example selector given the input variables.\n   * @param input_variables The input variables to select examples with.\n   * @returns A Promise that resolves to an array of selected examples.\n   */\n  abstract selectExamples(input_variables: Example): Promise<Example[]>;\n}\n"],"mappings":";;;;;AAMA,IAAsB,sBAAtB,cAAkDA,0BAAAA,aAAa;CAC7D,eAAe;EAAC;EAAkB;EAAqB;EAAO"}