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.