Overview
This release contains various bug fixes and feature improvements for the Python API.
Related news: our .NET API website is up and running: https://microsoft.github.io/autogen/dotnet/dev/. Our .NET Core API now has dev releases. Check it out!
Important
Starting from v0.4.7, ModelInfo
's required fields will be enforced. So please include all required fields when you use model_info
when creating model clients. For example,
from autogen_core.models import UserMessage
from autogen_ext.models.openai import OpenAIChatCompletionClient
model_client = OpenAIChatCompletionClient(
model="llama3.2:latest",
base_url="http://localhost:11434/v1",
api_key="placeholder",
model_info={
"vision": False,
"function_calling": True,
"json_output": False,
"family": "unknown",
},
)
response = await model_client.create([UserMessage(content="What is the capital of France?", source="user")])
print(response)
See ModelInfo for more details.
New Features
- DockerCommandLineCodeExecutor support for additional volume mounts, exposed host ports by @andrejpk in #5383
- Remove and get subscription APIs for Python GrpcWorkerAgentRuntime by @jackgerrits in #5365
- Add
strict
mode support toBaseTool
,ToolSchema
andFunctionTool
to allow tool calls to be used together with structured output mode by @ekzhu in #5507 - Make CodeExecutor components serializable by @victordibia in #5527
Bug Fixes
- fix: Address tool call execution scenario when model produces empty tool call ids by @ekzhu in #5509
- doc & fix: Enhance AgentInstantiationContext with detailed documentation and examples for agent instantiation; Fix a but that caused value error when the expected class is not provided in register_factory by @ekzhu in #5555
- fix: Add model info validation and improve error messaging by @ekzhu in #5556
- fix: Add warning and doc for Windows event loop policy to avoid subprocess issues in web surfer and local executor by @ekzhu in #5557
Doc Updates
- doc: Update API doc for MCP tool to include installation instructions by @ekzhu in #5482
- doc: Update AgentChat quickstart guide to enhance clarity and installation instructions by @ekzhu in #5499
- doc: API doc example for langchain database tool kit by @ekzhu in #5498
- Update Model Client Docs to Mention API Key from Environment Variables by @victordibia in #5515
- doc: improve tool guide in Core API doc by @ekzhu in #5546
Other Python Related Changes
- Update website version v0.4.6 by @ekzhu in #5481
- Reduce number of doc jobs for old releases by @jackgerrits in #5375
- Fix class name style in document by @weijen in #5516
- Update custom-agents.ipynb by @yosuaw in #5531
- fix: update 0.2 deployment workflow to use tag input instead of branch by @ekzhu in #5536
- fix: update help text for model configuration argument by @gagb in #5533
- Update python version to v0.4.7 by @ekzhu in #5558
New Contributors
Full Changelog: python-v0.4.6...python-v0.4.7