> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pawa-ai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Agents Best Practices

> Recommended strategies and design patterns for building reliable, efficient, and effective agents with Pawa AI.

## Overview

Building agents in Pawa AI goes beyond just setting up models. To ensure reliability, efficiency, and great user experiences, it’s important to follow certain best practices.

This guide covers practical tips for:

* Structuring agent instructions
* Managing context and memory
* Orchestrating multiple agents
* Controlling model outputs
* Ensuring safety and reliability

***

## 1. Define Clear Agent Roles

* **Be specific**: Give each agent a clear purpose (e.g., *“Research Assistant”*, *“Translation Agent”*).
* **Avoid overlap**: Minimize redundant functionality across agents to reduce confusion.
* **Use a RouterAgent**: When multiple agents exist, let a router orchestrate queries instead of exposing all agents directly.

Example:

* RouterAgent → Decides where to send the request
* TranslationAgent → Handles language tasks
* FinanceAgent → Handles financial queries

***

## 2. Write Effective Instructions

* Use **concise but detailed instructions** to guide behavior.
* Add constraints like *“always cite sources”* or *“keep responses under 100 words”*.
* Use **intents** (`["Be gentle", "Be detailed"]`) to fine-tune tone and style.

Example:

```json theme={null}
"instruction": "Always provide accurate, concise summaries. If information is uncertain, state that clearly."
```
