- Install
coagent(see Installation). - Start a NATS server (see Distributed).
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/translator/translator.pyThen communicate with the agent using the coagent CLI:
coagent translator -H type:ChatMessage -d '{"role":"user","content":"你好"}' --chatOr start a more-friendly rich client in another terminal:
python examples/rich_client.py translator