OpenAI Agents SDK
The OpenAI Agents SDK (openai-agents) is a lightweight framework for building multi-agent workflows with tools, handoffs, and guardrails. Respan gives you full observability over every agent run, LLM generation, tool call, and handoff — and gateway routing to 250+ models.
Set up Respan
Create an account at platform.respan.ai and grab an API key. For gateway, also add credits or a provider key.
Run npx @respan/cli setup to set up with your coding agent.
Example projects
Tracing
Gateway
Setup
View your trace
Open the Traces page to see your workflow with agent spans, LLM generations, tool calls, and handoffs.
Configuration
Attributes
In Respan()
Set defaults at initialization — these apply to all spans.
With propagate_attributes
Override per-request using a context scope.
Decorators (optional)
Decorators are not required. All agent runs, LLM calls, tool calls, and handoffs are auto-traced by the instrumentor. Use @workflow and @task to add structure when you want to group agent runs into named workflows with nested tasks.
Examples
Tool calls
Tool calls are automatically captured as spans with inputs, outputs, and timing.
Handoffs
Agent-to-agent handoffs are traced with full context.
Streaming
Stream agent responses with real-time text deltas.