Skip to main content

Documentation Index

Fetch the complete documentation index at: https://handbook.fiddler.ai/llms.txt

Use this file to discover all available pages before exploring further.

Decorator for automatic function tracing with input/output capture. Uses the global FiddlerClient when client= is not passed. Supports async functions with proper trace isolation per task.

Parameters

ParameterTypeRequiredDefaultDescription
func`CallableNone`None
name`strNone`function name
as_typeLiteral['span', 'generation', 'chain', 'tool']spanSpan type (‘span’, ‘generation’, ‘chain’, ‘tool’).
capture_inputboolTrueCapture function arguments as input.
capture_outputboolTrueCapture return value as output.
client`FiddlerClientNone`get_client()
model`strNone`None
user_id`strNone`None
version`strNone`None
system`strNone`None

Returns

Decorated function. Return type: Callable