Single Agent Pattern
A streamlined orchestration model where one agent handles all requests.Overview
The single agent pattern routes all user requests directly to one agent without multi-agent coordination. This agent independently manages:- Intent understanding
- Knowledge retrieval
- Tool invocation
- Response generation
When to Use
Single agent is the right choice when:- Your app has one primary capability or domain
- Tasks are straightforward and don’t require specialists
- Tasks involve closely related actions within one scope
- Low latency is critical
- You want minimal complexity
Good Fit Examples
| Use Case | Why Single Agent Works |
|---|---|
| Leave management | All requests (check balance, apply, cancel) fall within one domain |
| FAQ bot | Questions map to a single knowledge base |
| Order lookup | All actions relate to order data |
| Appointment scheduling | Booking, rescheduling, cancellation are related tasks |
Architecture
Execution Flow
Step-by-Step
- User submits request to the application
- Request routes directly to the single agent (no orchestrator selection)
- Agent processes the request:
- Parses user intent
- Determines required actions
- Retrieves relevant knowledge
- Selects and invokes tools
- Generates contextual response
- Response returns to user
Example Conversation
Configuration
Benefits
Simplicity
No orchestration complexity. One agent, direct execution.Low Latency
No agent selection overhead. Requests process immediately.Easy Maintenance
Single point of configuration and debugging.Predictable Behavior
Clear scope boundaries make testing straightforward.Limitations
Single Point of Failure
If the agent can’t handle a request, there’s no fallback.Scope Creep
As requirements grow, the agent can become overloaded with responsibilities.No Specialization
Can’t leverage domain experts for complex sub-tasks.When to Upgrade
Consider moving to multi-agent patterns when:- Requests frequently fall outside the agent’s scope
- Response quality suffers from broad responsibilities
- You need parallel execution for complex tasks
- Different tasks require different model capabilities
- You want specialized agents for specific domains