Agent Tool
The Agent Tool enables your agents to invoke and collaborate with other agents, creating powerful multi-agent workflows and specialized task delegation. This tool transforms individual agents into a coordinated team of AI specialists.This tool has Default status, meaning itβs production-ready and available on all subscription plans.
Overview
The Agent Tool creates a powerful multi-agent architecture where agents can:Agent Orchestration
Coordinate multiple specialized agents for complex tasks
Task Delegation
Delegate specific subtasks to expert agents
Knowledge Sharing
Share context and information between agents
Workflow Automation
Build sophisticated multi-step agent workflows
Configuration Parameters
The agent to invoke when this tool is used
Options:
Options:
- Project agents - Agents created in your current project
- Core agents - System-wide specialized agents
Note: The target agent must be active and configured properly
Setup Instructions
Agent Types
Project Agents
Custom agents created within your project:- Characteristics
- Best For
- Examples
- Custom Configuration: Tailored to your specific needs
- Project-Scoped: Available only within the current project
- Full Control: Complete control over prompts and settings
- Flexible: Can be modified and optimized as needed
Core Agents
System-wide specialized agents available across projects:- Characteristics
- Best For
- Examples
- Pre-Configured: Ready to use with optimal settings
- System-Wide: Available across all projects
- Maintained: Regularly updated and improved
- Specialized: Designed for specific common tasks
Configuration Examples
Customer Support Escalation
Multi-Language Support
Data Analysis Pipeline
Content Generation Workflow
Multi-Agent Architectures
Hierarchical Architecture
Pattern: Single orchestrator delegates to specialized agents Benefits: Clear responsibility, easy to maintain Use Cases: Customer service workflows, content creation pipelinesCollaborative Architecture
Pattern: Agents pass work sequentially with feedback loops Benefits: Quality control, iterative improvement Use Cases: Document processing, data validation workflowsSpecialist Pool Architecture
Pattern: Router agent directs to appropriate specialist Benefits: Efficient routing, specialized expertise Use Cases: Customer support, ticketing systemsUse Cases & Applications
Customer Support Tiers
Content Creation Pipeline
Sales Qualification Workflow
Data Processing Pipeline
Context Passing & Data Flow
Input Context
When an agent invokes another agent through the Agent Tool:Response Format
The invoked agent returns:Best Practices
Agent Design
- Clear Objectives: Define precise goals for each agent
- Focused Expertise: Limit each agentβs scope to specific tasks
- Consistent Interfaces: Standardize how agents communicate
- Error Handling: Implement robust error handling and fallbacks
- Testing: Thoroughly test agent interactions
Context Management
Performance Optimization
Minimize Agent Hops
Minimize Agent Hops
Issue: Multiple agent invocations increase latency
Solution: Design direct paths to specialist agents
Example: Instead of AβBβC, allow A to directly invoke C when appropriate
Parallel Processing
Parallel Processing
Issue: Sequential agent calls are slow
Solution: Invoke independent agents in parallel
Example: Run data validation and enrichment agents simultaneously
Caching Strategies
Caching Strategies
Issue: Redundant agent invocations waste resources
Solution: Cache agent responses for common queries
Example: Cache translation results, frequently used analyses
Agent Selection Logic
Agent Selection Logic
Issue: Poor routing leads to multiple handoffs
Solution: Implement smart routing based on query analysis
Example: Analyze query intent before selecting specialist agent
Security Considerations
- Permission Boundaries: Define clear permission boundaries
- Audit Logging: Log all agent invocations for security audits
- Data Privacy: Ensure sensitive data is handled appropriately
- Rate Limiting: Prevent agent invocation abuse IN PROGRESS
- Monitoring: Monitor for unusual agent invocation patterns
Monitoring & Analytics
Key Metrics
Track important multi-agent performance indicators:Workflow Visualization
Monitor agent interaction patterns:Troubleshooting
Common Issues
Agent Not Found
Agent Not Found
Symptoms: Target agent cannot be invoked
Solutions:
- Verify target agent ID is correct
- Ensure target agent is active
- Check agent permissions
- Confirm agent exists in project or core agents
Context Loss
Context Loss
Symptoms: Invoked agent lacks necessary context
Solutions:
- Verify context is being passed correctly
- Check context size limits
- Ensure conversation history is maintained
- Review agent input configuration
Circular Invocations
Circular Invocations
Symptoms: Agents invoking each other in loops
Solutions:
- Implement invocation depth limits
- Add circular reference detection
- Review agent tool configuration
- Redesign agent workflow to prevent loops
Performance Issues
Performance Issues
Symptoms: Slow multi-agent workflows
Solutions:
- Optimize agent invocation paths
- Implement parallel processing
- Cache frequent agent responses
- Reduce unnecessary agent hops
Advanced Patterns
Consensus Building
Multiple agents collaborate to reach consensus:Dynamic Agent Selection
Smart routing based on query analysis:Agent Specialization Layers
Progressively specialized agents:Next Steps
Create Your First Agent Tool
Set up agent-to-agent communication
Multi-Agent Patterns
Learn advanced multi-agent architectures
Other Tools
Explore other available tools
API Reference
View the tools API documentation