UNPKG

@langchain/core

Version:
1 lines 1.24 kB
{"version":3,"file":"base.d.ts","names":["Serializable","Example","BaseExampleSelector","Promise"],"sources":["../../src/example_selectors/base.d.ts"],"sourcesContent":["import { Serializable } from \"../load/serializable.js\";\nimport type { Example } from \"../prompts/base.js\";\n/**\n * Base class for example selectors.\n */\nexport declare abstract class BaseExampleSelector extends Serializable {\n lc_namespace: string[];\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 * 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":";;;;;;;AAKA;AAAiD,uBAAnBE,mBAAAA,SAA4BF,YAAAA,CAAT;EAAA,YAOhBC,EAAAA,MAAAA,EAAAA;EAAO;;;;;EAP8B,SAAA,UAAA,CAAA,OAAA,EAOrCA,OAPqC,CAAA,EAO3BE,OAP2B,CAAA,IAAA,GAAA,MAAA,CAAA;;;;;;2CAazBF,UAAUE,QAAQF"}