UNPKG

@langchain/core

Version:
1 lines 1.39 kB
{"version":3,"file":"run_collector.d.ts","names":["BaseRun","Run","BaseTracer","RunCollectorCallbackHandler","exampleId","Promise"],"sources":["../../src/tracers/run_collector.d.ts"],"sourcesContent":["import { BaseRun, Run } from \"langsmith/schemas\";\nimport { BaseTracer } from \"./base.js\";\n/**\n * A callback handler that collects traced runs and makes it easy to fetch the traced run object from calls through any langchain object.\n * For instance, it makes it easy to fetch the run ID and then do things with that, such as log feedback.\n */\nexport declare class RunCollectorCallbackHandler extends BaseTracer {\n /** The name of the callback handler. */\n name: string;\n /** The ID of the example. */\n exampleId?: string;\n /** An array of traced runs. */\n tracedRuns: Run[];\n /**\n * Creates a new instance of the RunCollectorCallbackHandler class.\n * @param exampleId The ID of the example.\n */\n constructor({ exampleId }?: {\n exampleId?: string;\n });\n /**\n * Persists the given run object.\n * @param run The run object to persist.\n */\n protected persistRun(run: BaseRun): Promise<void>;\n}\n//# sourceMappingURL=run_collector.d.ts.map"],"mappings":";;;;;;;AAMA;;AAWkBI,cAXGD,2BAAAA,SAAoCD,UAAAA,CAWvCE;EAOYJ;EAAUK,IAAAA,EAAAA,MAAAA;EAlBiBH;EAAU,SAAA,CAAA,EAAA,MAAA;;cAMnDD;;;;;;;;;;;;;;4BAYcD,UAAUK"}