Skip to main content
Wrapper for tool/function call spans with semantic convention helpers. Initialize tool span wrapper.

enter()

Enter context and set tool type.

Returns

FiddlerTool

set_tool_name()

Set the tool/function name (gen_ai.tool.name).

set_tool_input()

Set the tool input arguments (gen_ai.tool.input).

set_tool_output()

Set the tool output/result (gen_ai.tool.output).

set_tool_definitions()

Set available tool definitions (gen_ai.tool.definitions).
See the canonical reference for the full description and examples.