Set up Respan
Set up Respan
- Sign up — Create an account at platform.respan.ai
- Create an API key — Generate one on the API keys page
- Add credits or a provider key — Add credits on the Credits page or connect your own provider key on the Integrations page
Use AI
Use AI
Add the Docs MCP to your AI coding tool to get help building with Respan. No API key needed.
What is OpenAI Agents SDK?
The OpenAI Agents SDK is a lightweight framework for building multi-agent workflows with tools, handoffs, and guardrails. It provides a built-in tracing system that captures agent runs, LLM generations, tool calls, and agent-to-agent handoffs.Example projects
Example projects
Setup
- Tracing SDK (Recommended)
- Exporter
View your trace
Open the Traces page to see your workflow with auto-instrumented LLM spans.
Configuration
- Tracing SDK (Recommended)
- Exporter
| Parameter | Type | Default | Description |
|---|---|---|---|
app_name | str | "respan" | Application name attached to all spans. |
api_key | str | None | None | Falls back to RESPAN_API_KEY env var. |
block_instruments | Set[Instruments] | None | Instruments to disable (e.g., REQUESTS, URLLIB3). |
is_batching_enabled | bool | True | Enable batch span processing. |
Examples
Tool calls
Tool calls are automatically captured as spans with inputs, outputs, and timing.- Exporter
- Tracing SDK
Handoffs
Agent-to-agent handoffs are traced with full context.Agents as tools
Instead of handoffs (where the new agent takes over), you can use agents as tools — the tool agent runs independently and returns its result to the caller.Guardrails
Run input guardrails in parallel with the agent to quickly reject invalid inputs.Streaming
Stream agent responses with real-time text deltas.Parallelization
Run multiple agents concurrently and pick the best result.Deterministic flows
Sequential agent pipeline with validation gates.Dynamic system prompts
Use a function forinstructions to customize prompts based on runtime context.
Looking for the gateway integration? See Gateway > OpenAI Agents SDK.
