Change8

Migrating to AutoGen python-v0.4.7

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

Released: 2/17/2025

1
Breaking Changes
2
Migration Steps
10
Affected Symbols

⚠️ Check Your Code

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

ModelInfoOpenAIChatCompletionClientDockerCommandLineCodeExecutorGrpcWorkerAgentRuntimeBaseToolToolSchemaFunctionToolAgentInstantiationContextregister_factoryCodeExecutor

Breaking Changes

Issue #1

ModelInfo's required fields (vision, function_calling, json_output, family) are now strictly enforced. You must include all required fields when passing model_info to model clients or a validation error will occur.

Migration Steps

  1. 1
    Update all OpenAIChatCompletionClient (and other model client) instantiations to include a complete model_info dictionary with 'vision', 'function_calling', 'json_output', and 'family' keys.
  2. 2
    If running on Windows, review the updated event loop policy documentation to ensure subprocesses for web surfer or local executors function correctly.

Release Summary

This release enforces strict validation for ModelInfo fields and introduces 'strict' mode for tools to support structured outputs. It also enhances the Docker code executor and provides various bug fixes for agent instantiation and tool execution.

Need More Details?

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

View Full Changelog