> ## Documentation Index
> Fetch the complete documentation index at: https://developer.eka.care/llms.txt
> Use this file to discover all available pages before exploring further.

# Configuration

> Configure LLMs, tools, and agent settings

## LLMConfig

Configure which LLM provider and model to use:

```python theme={null}
from echo import LLMConfig

llm_config = LLMConfig(
    provider="openai",      # "openai", "anthropic", or "gemini"
    model="gpt-4o-mini",    # Model identifier
    temperature=0.2,        # 0.0-1.0, lower = more focused
    max_tokens=2000,        # Max response length
    max_iterations=5,       # Max tool use iterations
)
```

See [LLM Providers](https://developer.eka.care/docs/agents/agent-kit/llm-providers.md) for provider-specific details.

## AgentConfig

Combines **PersonaConfig** + **TaskConfig** to form the system prompt:

```python theme={null}
from echo import AgentConfig, PersonaConfig, TaskConfig

agent_config = AgentConfig(
    persona=PersonaConfig(
        role="Medical Assistant",           # Agent's identity
        goal="Help with medical queries",   # What agent tries to achieve
        backstory="A helpful medical AI",   # Background context
    ),
    task=TaskConfig(
        description="Answer health questions using available tools",
        expected_output="Accurate, helpful medical information",
    ),
)
```

**Generated System Prompt:**

```
You are a Medical Assistant.
Your goal is: Help with medical queries
Background: A helpful medical AI
Task: Answer health questions using available tools
Expected output: Accurate, helpful medical information
```

## Environment Variables

**OpenAI**

```bash theme={null}
export OPENAI_API_KEY=sk-...
```

**Anthropic**

```bash theme={null}
export ANTHROPIC_API_KEY=sk-ant-...
```

**Gemini**

```bash theme={null}
export GOOGLE_API_KEY=...
```

## Next Steps

> **[Tools](https://developer.eka.care/docs/agents/agent-kit/tools.md)**
>
> Create and configure tools

> **[LLM Providers](https://developer.eka.care/docs/agents/agent-kit/llm-providers.md)**
>
> Provider-specific configuration


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.