autogen/python/samples/core_chess_game
Federico Villa 262c74fd41
Properly close model clients in documentation and samples (#5898)
Closes #5873
---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2025-03-20 07:50:14 +00:00
..
.gitignore Add a new sample to show streaming and R1 usage (#5285) 2025-01-31 22:25:29 +00:00
README.md Add a new sample to show streaming and R1 usage (#5285) 2025-01-31 22:25:29 +00:00
main.py Properly close model clients in documentation and samples (#5898) 2025-03-20 07:50:14 +00:00
model_config_template.yml Add a new sample to show streaming and R1 usage (#5285) 2025-01-31 22:25:29 +00:00

README.md

Chess Game Example

An example with two chess player agents that executes its own tools to demonstrate tool use and reflection on tool use.

Prerequisites

First, you need a shell with AutoGen core and required dependencies installed.

pip install "autogen-ext[openai,azure]" "chess"

Model Configuration

The model configuration should defined in a model_config.yml file. Use model_config_template.yml as a template.

Running the example

python main.py