You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

0.2.0.md 2.6 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Release Notes for AutoGen.Net v0.2.0 🚀
  2. ## New Features 🌟
  3. - **OpenAI Structural Format Output**: Added support for structural output format in the OpenAI integration. You can check out the example [here](https://github.com/microsoft/autogen/blob/main/dotnet/samples/AutoGen.OpenAI.Sample/Structural_Output.cs) ([#3482](https://github.com/microsoft/autogen/issues/3482)).
  4. - **Structural Output Configuration**: Introduced a property for overriding the structural output schema when generating replies with `GenerateReplyOption` ([#3436](https://github.com/microsoft/autogen/issues/3436)).
  5. ## Bug Fixes 🐛
  6. - **Fixed Error Code 500**: Resolved an issue where an error occurred when the message history contained multiple different tool calls with the `name` field ([#3437](https://github.com/microsoft/autogen/issues/3437)).
  7. ## Improvements 🔧
  8. - **Leverage OpenAI V2.0 in AutoGen.OpenAI package**: The `AutoGen.OpenAI` package now uses OpenAI v2.0, providing improved functionality and performance. In the meantime, the original `AutoGen.OpenAI` is still available and can be accessed by `AutoGen.OpenAI.V1`. This allows users who prefer to continue to use `Azure.AI.OpenAI v1` package in their project. ([#3193](https://github.com/microsoft/autogen/issues/3193)).
  9. - **Deprecation of GPTAgent**: `GPTAgent` has been deprecated in favor of `OpenAIChatAgent` and `OpenAIMessageConnector` ([#3404](https://github.com/microsoft/autogen/issues/3404)).
  10. ## Documentation 📚
  11. - **Tool Call Instructions**: Added detailed documentation on using tool calls with `ollama` and `OpenAIChatAgent` ([#3248](https://github.com/microsoft/autogen/issues/3248)).
  12. ### Migration Guides 🔄
  13. #### For the Deprecation of `GPTAgent` ([#3404](https://github.com/microsoft/autogen/issues/3404)):
  14. **Before:**
  15. ```csharp
  16. var agent = new GPTAgent(...);
  17. ```
  18. **After:**
  19. ```csharp
  20. var agent = new OpenAIChatAgent(...)
  21. .RegisterMessageConnector();
  22. ```
  23. #### For Using Azure.AI.OpenAI v2.0 ([#3193](https://github.com/microsoft/autogen/issues/3193)):
  24. **Previous way of creating `OpenAIChatAgent`:**
  25. ```csharp
  26. var openAIClient = new OpenAIClient(apiKey);
  27. var openAIClientAgent = new OpenAIChatAgent(
  28. openAIClient: openAIClient,
  29. model: "gpt-4o-mini",
  30. // Other parameters...
  31. );
  32. ```
  33. **New way of creating `OpenAIChatAgent`:**
  34. ```csharp
  35. var openAIClient = new OpenAIClient(apiKey);
  36. var openAIClientAgent = new OpenAIChatAgent(
  37. chatClient: openAIClient.GetChatClient("gpt-4o-mini"),
  38. // Other parameters...
  39. );
  40. ```