Expand description
send_message tool — coordinator ↔ worker (or task) messaging.
§Resolution order
Callers can address the target in two ways:
task_id— preferred, used when the worker was spawned via the Phase Dagenttool withteam_name+name(orrun_in_background). The message is pushed into the task’s output channel, which the worker’s prompt loop can poll between steps (or, more practically, which the human can read on the nexttask_outputcall).worker_id— legacy, addresses a worker registered inWorkerRegistry(from pre-Phase-Dspawn_worker).
If both are present, task_id wins. If neither resolves, the tool
returns a helpful message listing active workers and tasks.
Structs§
- List
Workers Tool - List all currently active workers and tasks registered.
- Send
Message Tool - The
send_messagetool — push a follow-up message to a running worker (task or legacy worker). - Worker
Mailbox - A FIFO queue of pending messages for a single worker agent.
- Worker
Registry - Global registry mapping
worker_id→WorkerMailbox.