Multi-Agent Teams
Specialized agents collaborating via a chosen pattern.
from neuroagent import Agent, Team, TeamMember
researcher = TeamMember("researcher", Agent(provider="openai"), "gathers facts")
writer = TeamMember("writer", Agent(provider="openai"), "writes prose")
reviewer = TeamMember("reviewer", Agent(provider="openai"), "checks quality")
team = Team([researcher, writer, reviewer], pattern="pipeline")
result = team.run("Write a launch post about our new feature.")
print(result.content) # final answer
print(result.contributions) # each member's output
pattern= | Behavior |
|---|---|
"pipeline" | Sequential hand-off: researcher → writer → reviewer |
"router" | A coordinator picks the single best member to handle the task |
"debate" | All members answer in parallel, then a coordinator synthesizes |
"hierarchical" | A lead delegates to workers, then synthesizes the result |
Agents can also message each other directly via the in-process
Channel (from neuroagent import Channel) — the foundation for
agent-to-agent communication.
NeuroAgent AI