mirror of
https://github.com/microsoft/autogen.git
synced 2025-10-12 00:20:50 +00:00
23 lines
562 B
Markdown
23 lines
562 B
Markdown
![]() |
# Chess Game Example
|
||
|
|
||
|
An example with two chess player agents that executes its own tools to demonstrate tool use and reflection on tool use.
|
||
|
|
||
|
## Running the example
|
||
|
|
||
|
### Prerequisites
|
||
|
|
||
|
First, you need a shell with AutoGen core and required dependencies installed.
|
||
|
|
||
|
```bash
|
||
|
pip install "autogen-core==0.4.0.dev13" "autogen-ext[openai,azure]==0.4.0.dev13" "chess"
|
||
|
```
|
||
|
### Model Configuration
|
||
|
|
||
|
The model configuration should defined in a `model_config.json` file.
|
||
|
Use `model_config_template.json` as a template.
|
||
|
|
||
|
### Running the example
|
||
|
|
||
|
```bash
|
||
|
python main.py
|
||
|
```
|