AG2
AG2 1.x, the successor to AutoGen, supports OpenAI-compatible endpoints throughOpenAIConfig. This guide uses the current async ag2.Agent API.
Before you start
You need Python 3.10 or newer, a Radium API key, and a terminal or PowerShell window.1. Create a project and install AG2
2. Set your Radium credentials
3. Create main.py
This connection example does not enable code-execution tools.
4. Run it
Choose a model
Migrate an existing AG2 agent
Create a Radium configuration and pass it to the agent:autogen.AssistantAgent interface. If an older project imports autogen, it uses AG2 Classic and needs either the classic configuration format or a migration to the current API shown here.
Troubleshooting
Validation
These instructions were verified with Python 3.12.7 and
ag2[openai]==1.0.2 on August 20, 2026. You do not need that exact package version.hal-1.0, clarke-1.0, and tycho-1.0.
Next steps
API quickstart
Call Radium directly
Tool calling
The tool_use and tool_result contract