Setup
- Python
- TypeScript
Usage
- Python
- TypeScript
Once initialized, all OpenAI calls are captured automatically:
What Gets Captured
| Attribute | Description |
|---|---|
| Model | gpt-4o, gpt-4o-mini, o3, etc. |
| Messages | Input messages array |
| Response | Completion content |
| Tokens | Prompt, completion, and total tokens |
| Cost | Calculated from token usage and model pricing |
| Latency | Request duration |
Run the example
Clone the repo and run a complete agent end-to-end.Python
Run the Python example
TypeScript
Run the TypeScript example