Change8

python-v0.6.2

📦 autogenView on GitHub →
11 features🐛 7 fixes🔧 10 symbols

Summary

This release introduces streaming tool support, inner tool calling loops for AssistantAgent, and OpenTelemetry GenAI tracing. It also adds a Mem0 memory extension and several improvements to workflow handling and model compatibility.

Migration Steps

  1. To create streaming tools, subclass autogen_core.tools.BaseStreamTool and implement run_stream.
  2. To create a streaming workbench, subclass autogen_core.tools.StreamWorkbench and implement call_tool_stream.
  3. Enable the new tool calling loop in AssistantAgent by passing max_tool_iterations to the constructor.
  4. Set AUTOGEN_DISABLE_RUNTIME_TRACING=true if you wish to opt-out of the new OTel tracing.

✨ New Features

  • Introduced streaming tools with run_json_stream support for AgentTool and TeamTool.
  • Added tool_choice parameter to ChatCompletionClient.create and create_stream methods.
  • Implemented inner tool calling loop in AssistantAgent via max_tool_iterations parameter.
  • Added OpenTelemetry GenAI semantic convention traces (create_agent, invoke_agent, execute_tool).
  • Added AUTOGEN_DISABLE_RUNTIME_TRACING environment variable to disable agent runtime traces.
  • Added output_task_messages flag to run and run_stream to control emission of input task messages.
  • Added Mem0 memory extension for AutoGen agents.
  • Added activation group support for GraphFlow workflows with multiple cycles.
  • Added support for Gemini 2.5 flash stable.
  • Added message ID field to AgentChat messages.
  • Added ChromaDB embedding functions support.

🐛 Bug Fixes

  • Fixed self-loop issues in workflows.
  • Fixed serialization issue in streamable HTTP MCP tools.
  • Fixed issue where completion tokens could be None.
  • Fixed broad exception handling in specific modules.
  • Fixed mutable default value in ListMemoryConfig.
  • Fixed shell command documentation for pip install with escaped brackets.
  • Switched to yaml.safe_load for improved security.

🔧 Affected Symbols

autogen_core.tools.BaseStreamToolautogen_core.tools.StreamWorkbenchAgentToolTeamToolAssistantAgentChatCompletionClient.createChatCompletionClient.create_streamGraphFlowListMemoryConfigMem0