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

# Learning agent

# Learning Agent Example

Simple example showing how to set up a learning agent with PilottAI framework.

## Setup

```bash theme={null}
pip install pilott
```

## Example Usage

```python theme={null}
from pilottai import Serve
from pilottai.core import AgentConfig, LLMConfig

# Initialize
pilott = Serve(name="LearningAgent")

# Create agent
learning_agent = await pilott.add_agent(
    title="learner",
    goal="Acquire and organize knowledge",
    tools=["knowledge_base", "pattern_recognizer"]
)

# Learn new topic
job = {
    "type": "learn_topic",
    "content": "Machine Learning Basics",
    "store_results": True
}

result = await pilott.execute([job])
```

## Tools

* knowledge\_base: Store and retrieve knowledge
* pattern\_recognizer: Identify patterns in data

## Features

* Knowledge acquisition
* Pattern recognition
* Data organization
* Learning tracking

## Code

Ready to use code [learning\_agent.py](../../pilott/agents/learning_agent.py)
