Eric Zhu f113c9a959
Move core samples to /python/samples (#4911)
* Move core samples to /python/samples

* Fix proto check

* Add sample code check workflow

* Update pyright settings; fix types
2025-01-07 23:31:29 +00: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.

Running the example

Prerequisites

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

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

python main.py