openai-agents-python
View on GitHubA lightweight, powerful framework for multi-agent workflows
OpenAI's lightweight Python SDK for building multi-agent workflows: agents with tools, guardrails, handoffs, sessions and tracing. Provider-agnostic across OpenAI APIs and 100+ LLMs, with sandbox, realtime and voice agent support.
Use Cases
Build multi-agent workflows with handoffs and agents-as-toolsCreate low-latency realtime and voice agents over WebSocketAdd guardrails and human-in-the-loop approval to agent runsRun sandboxed coding agents that inspect files and apply patchesTrace, debug and visualize agent runsManage conversation history across runs with sessionsConnect agents to external tools via MCP serversPrototype agent apps quickly with the interactive REPL
Built With
- Language
- Python
- Frameworks
- Pydantic · MCP Python SDK · LiteLLM · any-llm · SQLAlchemy · websockets · Starlette · Redis · Docker · pytest · MkDocs · Pyright
Tags
multi-agent · agents · orchestration · handoffs · guardrails · tracing · tools · mcp · voice-agents · realtime · sandbox · human-in-the-loop · sessions · streaming · python · openai