# How to Build Multi-Agent Systems with the OpenAI Agents SDK

DevFeed: [How to Build Multi-Agent Systems with the OpenAI Agents SDK](<https://devfeed.tech/articles/how-to-build-multi-agent-systems-with-the-openai-agents-sdk-122659.md>)

Original publisher: [Read original article](<https://towardsdatascience.com/how-to-build-multi-agent-systems-with-the-openai-agents-sdk/>)

Author: Shuai Guo

Published: 2026-11-08T15:00:00Z

Content type: tutorial

Language: en

Sources: [Towards Data Science](<https://devfeed.tech/sources/towards-data-science.md>)

Topics: [Multi Agent Systems](<https://devfeed.tech/topics/multi-agent-systems.md>), [agent orchestration](<https://devfeed.tech/topics/agent-orchestration.md>), [agent to agent communication](<https://devfeed.tech/topics/agent-to-agent-communication.md>), [hierarchical agent systems](<https://devfeed.tech/topics/hierarchical-agent-systems.md>), [supervisor agent pattern](<https://devfeed.tech/topics/supervisor-agent-pattern.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agentic-ai](<https://devfeed.tech/tags/agentic-ai.md>), [agents](<https://devfeed.tech/tags/agents.md>), [agents-sdk](<https://devfeed.tech/tags/agents-sdk.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [blocks](<https://devfeed.tech/tags/blocks.md>), [build](<https://devfeed.tech/tags/build.md>), [building](<https://devfeed.tech/tags/building.md>), [data](<https://devfeed.tech/tags/data.md>), [editor-s-picks](<https://devfeed.tech/tags/editor-s-picks.md>), [fan](<https://devfeed.tech/tags/fan.md>), [first](<https://devfeed.tech/tags/first.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [multi-agent](<https://devfeed.tech/tags/multi-agent.md>), [multi-agent-systems](<https://devfeed.tech/tags/multi-agent-systems.md>), [openai](<https://devfeed.tech/tags/openai.md>), [openai-agents](<https://devfeed.tech/tags/openai-agents.md>), [openai-agents-sdk](<https://devfeed.tech/tags/openai-agents-sdk.md>), [post](<https://devfeed.tech/tags/post.md>), [python](<https://devfeed.tech/tags/python.md>), [sdk](<https://devfeed.tech/tags/sdk.md>), [support](<https://devfeed.tech/tags/support.md>), [systems](<https://devfeed.tech/tags/systems.md>), [with](<https://devfeed.tech/tags/with.md>)

## AI overview

The excerpt distinguishes two OpenAI Agents SDK delegation patterns. With `specialist_agent.as_tool(...)`, a coordinating agent calls specialists for bounded subtasks, stays active, and combines their results; the EV purchase adviser uses vehicle, charging, and ownership-cost researchers this way. With `handoffs=[...]`, the initial agent routes a request and the specialist takes control and produces the final response; the EV support agent routes a public-charging question to a charging specialist. The excerpt presents fan-out/fan-in as centralized parallel work, pipelines as sequential chains, hierarchies as recursive agent-as-tool relationships, evaluator-optimizers as centralized loops, and swarms as dynamic peer-to-peer handoffs. These patterns combine delegation, topology, and execution choices.

## Source excerpt

Build an EV purchase adviser and a support agent in Python, then see how fan-out, pipelines, hierarchies, and swarms reuse the same building blocks. The post How to Build Multi-Agent Systems with the OpenAI Agents SDK appeared first on Towards Data Science.