Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 1.28 KB

File metadata and controls

45 lines (29 loc) · 1.28 KB

Integration with AutoGen

This example demonstrates how to integrate AutoGen's AgentChat into Coagent.

References:

Prerequisites

  • Install coagent (see Installation).

  • Start a NATS server (see Distributed).

  • Install autogen-agentchat and autogen-ext:

    pip install 'autogen-agentchat==0.4.0.dev6'
    pip install 'autogen-ext[openai,azure]==0.4.0.dev6'

Quick Start

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?"}'