What is Sub-agent?
A specialized agent that receives instructions from an orchestrator and executes a specific subtask — the worker of the team.
// Explanation
In a multi-agent system, sub-agents are the ones doing the fieldwork. Each one specializes in something: searching for information, writing text, analyzing data, generating code, etc. They receive instructions from the orchestrator, execute their task, and return the result. They operate under supervision — they don't decide what to do, but how to do well what they were asked. They're like the musicians in an orchestra: each one masters their instrument.
// Example
The orchestrator says: 'I need a summary of this 200-page PDF'. The reading sub-agent processes it, extracts the key points, and returns the summary to the orchestrator — which combines it with the work of other sub-agents.