This example demonstrates how to use AutoGen's AgentChat in Coagent.
References:
-
Install
coagent
(see Installation). -
Start a NATS server (see Distributed).
-
Install
autogen-agentchat
andautogen-ext
:pip install 'autogen-agentchat==0.4.0.dev6' pip install 'autogen-ext[openai,azure]==0.4.0.dev6'
First, start a server in one terminal:
export AZURE_MODEL=csg-gpt4
export AZURE_API_BASE=https://opencsg-us.openai.azure.com
export AZURE_API_VERSION=2024-02-15-preview
export AZURE_API_KEY=<YOUR API KEY>
python examples/using-autogen/autogen.py
Then start a client in another terminal.
python examples/rich_client.py autogen