OpenAI Agents SDK
Tools, handoffs, guardrails, tracing.
7 patterns supported.
Patterns this framework supports natively
- Tool Use — Let the LLM produce typed calls against an external toolkit instead of producing free-form text the surrounding system has to parse.
- ReAct — Interleave a single thought, a single tool call, and a single observation per step so the agent reasons over fresh evidence.
- Handoff — Transfer the active conversation from one agent to another, carrying context across the switch.
- Structured Output — Constrain the model's output to conform to a JSON Schema (or similar typed shape).
- Step Budget — Cap the number of tool calls or loop iterations the agent is allowed within a single request.
- Input/Output Guardrails — Validate inputs before they reach the model and outputs before they reach the user.
- Decision Log — Persist the agent's reasoning trace alongside its actions so post-hoc review can explain why.