Configuration for how a node's run is traced.
Scope: this only transforms what the node's own run records. Child runs created
by a traced bound runnable and the root graph run are not affected. Plain
function nodes are traced with trace=False, so they have no such child runs.
Not intended to redact secrets. To redact inputs/outputs across all runs
(children included), use the LangSmith client's
hide_inputs/hide_outputs/anonymizer instead.
Each processor receives the node's raw input/output value (not a normalized kwargs dict) and returns the value to record.
Optional callable to transform the node's input before it is recorded on the node's trace run. Can be used to omit or summarize large payloads (e.g. message history). Not intended to affect the value passed to the node; avoid mutating arguments in place.
Optional callable to transform the node's output before it is recorded on the node's trace run. Can be used to omit or summarize large payloads (e.g. message history). Not intended to affect the value returned by the node; avoid mutating arguments in place.