AgentDefinition Configuration
AdvancedConfigure subagent invocation, context passing, and spawning · Difficulty 3/5
0%
agent-definitionconfigurationcontext-passing
Prerequisites
The AgentDefinition configures each subagent type in a multi-agent system, specifying its role, capabilities, and constraints.
Configuration Fields
Context Passing Best Practices
- Include source URLs, document names, page numbers alongside content
- Preserves attribution through the pipeline
- Don't summarize away details the subagent might need
- Pass web search results AND document analysis outputs to synthesis agents
- Avoid step-by-step procedural instructions
- Enable the subagent to adapt its approach to the specific query
Key Takeaways
- ✓AgentDefinition includes description, system prompt, and tool restrictions per subagent type
- ✓Use structured data formats to preserve attribution when passing context between agents
- ✓Include complete findings from prior agents -- don't summarize away needed details