Optional
__finalTracedIteratorKey?: stringOptional
aggregator?: (args: any[]) => anyOptional
argsConfigPath?: [number] | [number, string]Optional
extractAttachments?: (...args: Parameters<Func>) => [Attachments | undefined, KVMap]Optional
getInvocationParams?: (...args: Parameters<Func>) => InvocationParamsSchema | undefinedExtract invocation parameters from the arguments of the traced function. This is useful for LangSmith to properly track common metadata like provider, model name and temperature.
Optional
processInputs?: (inputs: Readonly<KVMap>) => KVMapApply transformations to the inputs before logging.
This function should NOT mutate the inputs.
processInputs
is not inherited by nested traceable functions.
Optional
processOutputs?: (outputs: Readonly<KVMap>) => KVMap | Promise<KVMap>Apply transformations to the outputs before logging.
This function should NOT mutate the outputs.
processOutputs
is not inherited by nested traceable functions.
Optional
tracer?: OTELTracer
Extract attachments from args and return remaining args.