This example demonstrates how to integrate AutoGen's AgentChat into 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 MODEL_ID="your-model-id"
export MODEL_BASE_URL="your-base-url"
export MODEL_API_VERSION="your-api-version"
export MODEL_API_KEY="your-api-key"
python examples/framework-integration/autogen/agent.py
Then communicate with the agent using the coagent
CLI:
coagent agent -H type:ChatMessage --chat -d '{"role":"user","content":"What is the weather like in Beijing?"}'