Skip to main content

AutoGen

还没翻译译自英文(docs.vllm.ai)本页 9 段都还没译

AutoGen

AutoGen is a framework for creating multi-agent AI applications that can act autonomously or work alongside humans.

Prerequisites

Set up the vLLM and AutoGen environment:

pip install vllm

# Install AgentChat and OpenAI client from Extensions
# AutoGen requires Python 3.10 or later.
pip install -U "autogen-agentchat" "autogen-ext[openai]"

Deploy

  1. Start the vLLM server with the supported chat completion model, e.g.

    vllm serve mistralai/Mistral-7B-Instruct-v0.2
  2. Call it with AutoGen:

Code

For details, see the tutorial: