@langchain/core
Version:
Core LangChain.js abstractions and schemas
17 lines • 711 B
TypeScript
import { KVMap } from "langsmith/schemas";
/**
* Transforms what `LangChainTracer` sends to LangSmith for a run. Execution
* values and every other callback handler (including `streamEvents`) still
* see the raw inputs and outputs. Processors receive the recorded values by
* reference and must not mutate them.
*/
export interface TracePolicy {
processInputs?: (inputs: KVMap) => KVMap;
processOutputs?: (outputs: KVMap) => KVMap;
}
/**
* Records an empty payload while keeping the run, its timing, and its children.
* Use as `processInputs` and/or `processOutputs` in a {@link TracePolicy}.
*/
export declare function omitPayload(_payload: KVMap): KVMap;
//# sourceMappingURL=trace_policy.d.ts.map