# {{name}}

{{description}}

## Overview

This project contains an AI Lab agent created with PyGEAI.

**Agent Details:**
- **Name:** {{name}}
- **Model:** {{model}}
- **Temperature:** {{temperature}}
- **Max Tokens:** {{max_tokens}}

## Setup

1. Ensure PyGEAI is installed and configured:
   ```bash
   pip install pygeai
   geai configure --key YOUR_API_KEY --url YOUR_API_URL
   ```

2. Create the agent:
   ```bash
   python create_{{name}}.py
   ```

## Usage

Run the agent interactively:
```bash
python run_{{name}}.py
```

## Customization

### Modify Agent Instructions

Edit the `instructions` in `create_{{name}}.py`:
```python
prompt=Prompt(
    instructions="Your custom instructions here",
    inputs=["user_input"],
    outputs=[]
)
```

### Add Structured Outputs

Define output schema in the Prompt:
```python
from pygeai.lab.models import PromptOutput

outputs=[
    PromptOutput(key="result", description="The main result"),
    PromptOutput(key="confidence", description="Confidence score")
]
```

### Add Examples

Include few-shot examples:
```python
from pygeai.lab.models import PromptExample

examples=[
    PromptExample(
        input_data="Sample input",
        output='{"result": "Sample output"}'
    )
]
```

### Adjust Sampling Parameters

Modify the `LlmConfig` settings:
```python
llm_config=LlmConfig(
    max_tokens={{max_tokens}},
    timeout=60,
    sampling=Sampling(
        temperature={{temperature}},  # 0.0-1.0 (lower = more focused)
        top_k=0,
        top_p=0
    )
)
```

## Next Steps

- Add custom tools to extend agent capabilities
- Implement structured outputs for integration with other systems
- Create agent processes for multi-step workflows
- Publish agent for team access

## Documentation

- [PyGEAI Lab Documentation](https://pygeai.readthedocs.io/)
- [AI Lab Concepts](https://pygeai.readthedocs.io/en/latest/lab/)
