Change8

Migrating to AutoGen python-v0.4.5

Version python-v0.4.5 introduces 1 breaking change. This guide details how to update your code.

Released: 2/1/2025

1
Breaking Changes
4
Migration Steps
9
Affected Symbols

⚠️ Check Your Code

If you use any of these symbols, you need to read this guide:

autogen_agentchat.agents.AssistantAgentautogen_agentchat.messages.ModelClientStreamingChunkEventautogen_agentchat.ui.Consoleautogen_core.models.CreateResult.thoughtautogen_core.models.ModelFamily.R1autogen_core.tools.FunctionToolautogen_agentchat.agents.CodeExecutorAgentautogen_ext.agents.openai.OpenAIAssistantAgentautogen_magentic_one

Breaking Changes

Issue #1

The autogen_magentic_one package has been removed. Users should migrate to the integrated agent implementations within the main autogen packages.

Migration Steps

  1. 1
    To enable streaming in AssistantAgent, set model_client_stream=True during initialization.
  2. 2
    To handle streaming output manually, listen for the autogen_agentchat.messages.ModelClientStreamingChunkEvent type.
  3. 3
    For R1 models, configure the model_info with 'family': ModelFamily.R1 to access the .thought field.
  4. 4
    Remove any dependencies on the deprecated autogen_magentic_one package.

Release Summary

This release introduces token streaming for AgentChat, support for R1-style reasoning 'thought' blocks, and the ability to create FunctionTools from partial functions.

Need More Details?

View the full release notes and all changes for AutoGen python-v0.4.5.

View Full Changelog