Skip to content

OpenAI Agents SDK Advanced Multi‑Agent (Python)

OpenAI Agents SDK Advanced Multi‑Agent (Python)

Section titled “OpenAI Agents SDK Advanced Multi‑Agent (Python)”

Last verified: 2025-11 Upstream: https://github.com/openai/openai-python | https://github.com/openai/openai-agents (if available)

  • Role routing and capability routing
  • Handoff to human or specialized agent
  • Guardrails before/after steps
class Router:
def pick(self, msg: str) -> str:
if "search" in msg: return "researcher"
return "writer"