# Single-Agent System

> A single AI model with tools and a comprehensive system prompt handles tasks autonomously.

- **Category**: Language Models
- **Subcategory**: Agent Architecture
- **Canonical URL**: https://designpattern.fyi/patterns/single_agent/

---

## Description
**Context**: Start simple, scale intelligently. Single-purpose agents that do one thing well are cheaper to run, easier to debug, and provide clear metrics tied to business outcomes.


## Use Cases
Customer support agents handling routine queries or straightforward form data extraction.



## Implementation Example

```python
# Single Agent
agent = Agent(model="claude-3", tools=[api_tool, db_tool])
```



## Trade-offs


### Advantages

- - Simple to implement

- - Lower cost

- - Easier to debug

- - Clear metrics




### Considerations & Drawbacks

- - Limited to simpler tasks

- - May not handle complex reasoning

- - Single point of failure







---
**Reference**: [Original Source](https://docs.cloud.google.com/architecture/choose-design-pattern-agentic-ai-system)

