mirror of
https://github.com/microsoft/autogen.git
synced 2025-10-24 14:29:06 +00:00
2.5 KiB
2.5 KiB
Release Notes for AutoGen.Net v0.2.0 🚀
New Features 🌟
- OpenAI Structural Format Output: Added support for structural output format in the OpenAI integration. You can check out the example here (#3482).
- Structural Output Configuration: Introduced a property for overriding the structural output schema when generating replies with
GenerateReplyOption(#3436).
Bug Fixes 🐛
- Fixed Error Code 500: Resolved an issue where an error occurred when the message history contained multiple different tool calls with the
namefield (#3437).
Improvements 🔧
- Leverage OpenAI V2.0 in AutoGen.OpenAI package: The
AutoGen.OpenAIpackage now uses OpenAI v2.0, providing improved functionality and performance. In the meantime, the originalAutoGen.OpenAIis still available and can be accessed byAutoGen.OpenAI.V1. This allows users who prefer to continue to useAzure.AI.OpenAI v1package in their project. (#3193). - Deprecation of GPTAgent:
GPTAgenthas been deprecated in favor ofOpenAIChatAgentandOpenAIMessageConnector(#3404).
Documentation 📚
- Tool Call Instructions: Added detailed documentation on using tool calls with
ollamaandOpenAIChatAgent(#3248).
Migration Guides 🔄
For the Deprecation of GPTAgent (#3404):
Before:
var agent = new GPTAgent(...);
After:
var agent = new OpenAIChatAgent(...)
.RegisterMessageConnector();
For Using Azure.AI.OpenAI v2.0 (#3193):
Previous way of creating OpenAIChatAgent:
var openAIClient = new OpenAIClient(apiKey);
var openAIClientAgent = new OpenAIChatAgent(
openAIClient: openAIClient,
model: "gpt-4o-mini",
// Other parameters...
);
New way of creating OpenAIChatAgent:
var openAIClient = new OpenAIClient(apiKey);
var openAIClientAgent = new OpenAIChatAgent(
chatClient: openAIClient.GetChatClient("gpt-4o-mini"),
// Other parameters...
);