Change8

Migrating to AutoGen python-v0.4.9.2

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

Released: 3/14/2025

1
Breaking Changes
1
Migration Steps
7
Affected Symbols

⚠️ Check Your Code

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

SKChatCompletionAdapterFileSurferOpenAIChatCompletionClientAzureOpenAIChatCompletionClientAnthropicChatCompletionClientmodel_client.dump_componentmodel_client.model_dump_json

Breaking Changes

Issue #1

API keys in model clients are now stored as SecretStr and will no longer be exported when calling model_dump_json() or dump_component(). To fix, ensure your deployment environment provides keys via environment variables or token-based auth rather than relying on serialized configs.

Migration Steps

  1. 1
    Update code that relies on serialized model client configurations to provide API keys via environment variables or external secret managers, as keys are no longer included in JSON exports.

Release Summary

This patch release focuses on security hardening by preventing API key exposure during serialization and fixes bugs in FileSurfer, SKChatCompletionAdapter, and reflection logic.

Need More Details?

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

View Full Changelog