- Install
coagent
(see Installation). - Start a NATS server (see Distributed).
First, start a server in one terminal:
export AZURE_MODEL="your-model-name"
export AZURE_API_BASE="your-api-base"
export AZURE_API_VERSION="your-api-version"
export AZURE_API_KEY="your-api-key"
python examples/translator/translator.py
Then communicate with the agent using the coagent
CLI:
coagent translator -H type:ChatHistory -d '{"messages":[{"role":"user","content":"你好"}]}' --chat
Or start a more-friendly rich client in another terminal:
python examples/rich_client.py translator