Skip to content

Swarm Agent

🤖 AI Drafted (Not reviewed)

Agent that dynamically routes to other agents based on task requirements

Tool id swarm_agent
Category agent
Uses a language model yes
Needs a generative model no
Runs over many items no
Item handling batch
Structured output no
Human-verified not yet

What it reads

Port Type Required What it is
Task (task) text yes Task to process
Context (context) any no Shared context between agents

What it emits

Port Type Required What it is
Result (result) text Final result after agent chain
Handoff Chain (handoff_chain) array Chain of agent handoffs
Shared Context (shared_context) json Final shared context

Options

Option Type Default What it does
agents array [] Available agents in the swarm.
entry_agent string Name of the starting agent.
handoff_keyword string HANDOFF: Keyword agents use to initiate handoff.
max_handoffs integer 10 Maximum number of agent handoffs.

The prompt it sends

This tool does not send a prompt — it does its work in code.