Migrating to AutoGen python-v0.6.0
Version python-v0.6.0 introduces 1 breaking change. This guide details how to update your code.
Released: 6/5/2025
1
Breaking Changes
2
Migration Steps
13
Affected Symbols
⚠️ Check Your Code
If you use any of these symbols, you need to read this guide:
BaseGroupChatManager.select_speakerGraphFlowDiGraphBuilderOpenAIAgentAssistantAgentLocalCommandLineCodeExecutorOpenAIChatCompletionClientOllamaChatCompletionClientAnthropicBedrockChatCompletionClientMagenticOneGroupChatBaseChatMessageBaseAgentEventCodeExecutorAgentBreaking Changes
●Issue #1
The return type of BaseGroupChatManager.select_speaker has changed from 'str' to 'List[str] | str'. Custom implementations of this method must be updated to support returning a list of agent names to enable concurrent execution.
Migration Steps
- 1Update any custom subclasses of BaseGroupChatManager to ensure the select_speaker method signature matches 'async def select_speaker(self, thread: Sequence[BaseAgentEvent | BaseChatMessage]) -> List[str] | str:'.
- 2If using GraphFlow with callable conditions, note that these are currently experimental and cannot be serialized.
Release Summary
This release introduces concurrent agent execution in GraphFlow and a new OpenAIAgent. It also features experimental callable edge conditions and various improvements to model clients and code executors.
Need More Details?
View the full release notes and all changes for AutoGen python-v0.6.0.
View Full Changelog