Decorators
decorators.ToolCall
Tool_Call utilities for decorators for automatic logging and instrumentation of functions and methods.
View module source on GitHub
Get the current tool call from the context variable.
Decorator for tracking tool calls.
This decorator wraps functions to automatically create and manage ToolCall
objects for tracking tool calls, including inputs, outputs, and metadata.
The decorated function must be called within a @trace or @span decorated context.