Tracing allows you to debug your AI agents and identify issues.
Example of a trace
The easiest way to get started with traces is to use our utility wrapper to automatically track your agents and tools.
By wrapping an agent, input, outputs and errors are automatically tracked.
Any query ran inside the agent will be tied to the agent.
If you prefer to use anonymous functions, make sure to pass a name as a 2nd argument to the
If your agents use tools, you can wrap them as well to track them.
If a wrapped tool is executed inside a wrapped agent, the tool will be automatically tied to the agent without the need to manually reconcialiate them.