OpenAI Agents Python
ActiveDescription
A lightweight, powerful framework from OpenAI for building multi-agent workflows with tool calling, agent handoffs, and guardrails.
Key Features
- Multi-agent workflow orchestration — Agent-to-agent task delegation via Handoffs and Agents-as-tools patterns
- Sandbox Agent — Pre-configured containerized agents with filesystem, commands, patches for long-running tasks
- Guardrails — Configurable input/output validation to ensure agent behavior is safe and controlled
- Built-in tracing — Automatic tracking of agent runs for viewing, debugging, and optimizing workflows
- Realtime voice agents — Build voice interaction agents with gpt-realtime-2 and full agent capabilities
- Provider agnostic — Supports OpenAI Responses/Chat Completions APIs plus 100+ other LLMs
Use Cases
Categories
Quick Start
pip install openai-agents
export OPENAI_API_KEY={your-key}
from agents import Agent, Runner
agent = Agent(
name="assistant",
instructions="You are a helpful assistant."
)
result = Runner.run_sync(agent, "What are multi-agent systems?")
print(result.final_output)