Setup
- Python
- TypeScript
Usage
Once initialized, all agent runs and tool calls are captured automatically:- Python
- TypeScript
What Gets Captured
| Attribute | Description |
|---|---|
| Agent runs | Each Runner.run() / run() invocation |
| Agent steps | Individual turns within the agent loop |
| Tool calls | Each tool invocation with name, input, and output |
| Handoffs | Multi-agent transitions and handoff decisions |
| LLM calls | Raw completion requests to OpenAI |
| Tokens & Cost | Aggregated token usage and pricing |
| Latency | Duration per agent run and per span |
Run the example
Clone the repo and run a complete agent end-to-end.Python
Run the Python example
TypeScript
Run the TypeScript example