Framework

OpenAI Agents SDK

Tools, handoffs, guardrails, tracing.

7 patterns supported.

Patterns this framework supports natively

  • Tool UseLet the LLM produce typed calls against an external toolkit instead of producing free-form text the surrounding system has to parse.
  • ReActInterleave a single thought, a single tool call, and a single observation per step so the agent reasons over fresh evidence.
  • HandoffTransfer the active conversation from one agent to another, carrying context across the switch.
  • Structured OutputConstrain the model's output to conform to a JSON Schema (or similar typed shape).
  • Step BudgetCap the number of tool calls or loop iterations the agent is allowed within a single request.
  • Input/Output GuardrailsValidate inputs before they reach the model and outputs before they reach the user.
  • Decision LogPersist the agent's reasoning trace alongside its actions so post-hoc review can explain why.