Skip to main content
Install:
AG2 is the actively-maintained fork of AutoGen. If you’re on AG2, install ag2 instead of pyautogen; the autogen import name and API shown below are the same either way.

Usage

Returning metadata: {"model": ...} records which model produced each response, powering the Sovereignty & Portability breakdown in the report. For a full Execution Timeline, use the AutoGen tracing integration (steps named by the speaking agent, tool calls captured), or wrap calls in tracer.trace(..., sync=True) yourself, the same way the OpenAI example does. A complete working example, including a multi-agent GroupChat variant with a researcher/writer split, is available as autogen_eval.py in the AgentX-Python repository.