UNPKG

@langchain/core

Version:
17 lines • 712 B
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.cts.map