2025-01-07 15:31:29 -08:00
|
|
|
# Chess Game Example
|
|
|
|
|
|
|
|
An example with two chess player agents that executes its own tools to demonstrate tool use and reflection on tool use.
|
|
|
|
|
2025-01-31 14:25:29 -08:00
|
|
|
## Prerequisites
|
2025-01-07 15:31:29 -08:00
|
|
|
|
|
|
|
First, you need a shell with AutoGen core and required dependencies installed.
|
|
|
|
|
|
|
|
```bash
|
2025-01-31 14:25:29 -08:00
|
|
|
pip install "autogen-ext[openai,azure]" "chess"
|
2025-01-07 15:31:29 -08:00
|
|
|
```
|
|
|
|
|
2025-01-31 14:25:29 -08:00
|
|
|
## Model Configuration
|
2025-01-07 15:31:29 -08:00
|
|
|
|
2025-01-31 14:25:29 -08:00
|
|
|
The model configuration should defined in a `model_config.yml` file.
|
|
|
|
Use `model_config_template.yml` as a template.
|
|
|
|
|
|
|
|
## Running the example
|
2025-01-07 15:31:29 -08:00
|
|
|
|
|
|
|
```bash
|
|
|
|
python main.py
|
2025-01-31 14:25:29 -08:00
|
|
|
```
|