TOOLS
Setups that use the OpenAI Agents SDK
These pages use the OpenAI Agents SDK. The kit shows a first agent and a write tool that waits for your approval. Later notes appear here when their dates arrive.
Setups
Build a first agent with the OpenAI Agents SDK
Install the OpenAI Agents SDK for Python, run a first agent, add a tool that waits for your approval and check the pause without spending a token.
Approval boundary:
needs_approval=Trueon close_ticket pauses the run until your code approves or rejects. lookup_ticket and any tool without needs_approval run as soon as the model calls them. Instructions in the prompt are not enforcement. Tracing is on by default and can include tool inputs and outputs unless you disable it, as the kit security notes say.based on OpenAI Agents SDK, by OpenAI, MIT
OpenAI Agents SDK With Temporal Approval Steps
/guides/temporal-openai-agents-approval/
To hold a risky agent action for a person in Temporal, mark the tool with
needs_approval=Truein the OpenAI Agents SDK, then have the workflow wait for a reviewer's signal withworkflow.wait_condition()and a timeout. Approve or reject the paused tool call from that signal, and resume the run.Approval boundary: Human approval: a signed-in reviewer sees the pending refund and your backend sends a
reviewsignal with their decision and name.based on the Temporal Python SDK, by Temporal and contributors, and the OpenAI Agents SDK, by OpenAI and contributors.
AI Agent Orchestration: Handoffs vs a Manager Agent
/guides/ai-agent-orchestration-handoffs-vs-manager/
The OpenAI Agents SDK offers two ways to split work between agents: a handoff, where a specialist takes over the conversation, and a manager that calls specialists as tools and keeps the last word. We built both around a refund that needs a person's yes, ran them on a local model, and said yes and no. Approval worked in both. What the agents did after a no is the part to plan for.
Approval boundary: The human-in-the-loop page says approval works across both: a tool marked
needs_approval=Truepauses the run "when the tool belongs to the current agent, to an agent reached through a handoff, or to a nestedAgent.as_tool()execution." Pending calls appear inresult.interruptions. You callstate.approve(...)orstate.reject(...)onresult.to_state()and run again from the top-level agent.based on the OpenAI Agents SDK, by OpenAI and contributors. MIT licence per GitHub on 2026-10-30.