Run hooks (recommended)
Create Apie run hooks and pass them to your agent run:Agent step wrapper
Wrap individual agent steps with explicit metadata:Tool call wrapper
For individual tool calls with guard metadata:What you’ll see
Agent steps and tool calls in the run timeline with workflow and tool events.Example
- javascript-sdk/examples/openai-agents-instrumented.ts
- python-sdk/examples/openai_agents_instrumented.py
Next steps
LLM tool calls
OpenAI native tool call wrappers.
Integrations hub
All framework integrations.
