Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
|
|
1 year ago | |
|---|---|---|
| .. | ||
| agents | 1 year ago | |
| patterns | 1 year ago | |
| README.md | 1 year ago | |
| main.py | 1 year ago | |
| types.py | 1 year ago | |
| utils.py | 1 year ago | |
An example with two chess player agents that executes its own tools to demonstrate tool use and reflection on tool use.
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"
For Azure OpenAI API, you need to set the following environment variables:
export OPENAI_API_TYPE=azure
export AZURE_OPENAI_API_ENDPOINT=your_azure_openai_endpoint
export AZURE_OPENAI_API_VERSION=your_azure_openai_api_version
By default, we use Azure Active Directory (AAD) for authentication.
You need to run az login first to authenticate with Azure.
You can also
use API key authentication by setting the following environment variables:
export AZURE_OPENAI_API_KEY=your_azure_openai_api_key
This requires azure-identity installation:
pip install azure-identity
For OpenAI API, you need to set the following environment variables.
export OPENAI_API_TYPE=openai
export OPENAI_API_KEY=your_openai_api_key
This is a mirror of AutoGen from GitHub. AutoGen is a framework that enables the development of LLM applications using multiple agents that can converse with each other to solve tasks.
Python SVG Jupyter Notebook C# TSX other