Skip to content

Latest commit

 

History

History

autogen

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Using AutoGen

This example demonstrates how to use AutoGen's AgentChat in 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 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