@langchain/core
Version:
Core LangChain.js abstractions and schemas
17 lines (16 loc) • 513 B
JavaScript
// src/tracers/trace_policy.ts
/**
* Key a run's `extra` carries its policy under. A symbol, so the policy is
* never serialized with the run.
* @internal
*/
const TRACE_POLICY_KEY = Symbol.for("langchain.trace_policy");
/**
* Records an empty payload while keeping the run, its timing, and its children.
* Use as `processInputs` and/or `processOutputs` in a {@link TracePolicy}.
*/
function omitPayload(_payload) {
return {};
}
export { TRACE_POLICY_KEY, omitPayload };
//# sourceMappingURL=trace_policy.js.map