Skip to content

Commit

Permalink
[.Net] release v0.2.0 (#3483)
Browse files Browse the repository at this point in the history
* release 0.2.0

* update release noteb
  • Loading branch information
LittleLittleCloud committed Sep 5, 2024
1 parent a44b86f commit b97bca5
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dotnet/eng/MetaInfo.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<VersionPrefix>0.1.0</VersionPrefix>
<VersionPrefix>0.2.0</VersionPrefix>
<Authors>AutoGen</Authors>
<PackageProjectUrl>https://microsoft.github.io/autogen-for-net/</PackageProjectUrl>
<RepositoryUrl>https://github.com/microsoft/autogen</RepositoryUrl>
Expand Down
48 changes: 48 additions & 0 deletions dotnet/website/release_note/0.2.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# 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](https://github.com/microsoft/autogen/blob/main/dotnet/sample/AutoGen.OpenAI.Sample/Structural_Output.cs) ([#3482](https://github.com/microsoft/autogen/issues/3482)).
- **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)).

## Bug Fixes πŸ›
- **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)).

## Improvements πŸ”§
- **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)).
- **Deprecation of GPTAgent**: `GPTAgent` has been deprecated in favor of `OpenAIChatAgent` and `OpenAIMessageConnector` ([#3404](https://github.com/microsoft/autogen/issues/3404)).

## Documentation πŸ“š
- **Tool Call Instructions**: Added detailed documentation on using tool calls with `ollama` and `OpenAIChatAgent` ([#3248](https://github.com/microsoft/autogen/issues/3248)).

### Migration Guides πŸ”„

#### For the Deprecation of `GPTAgent` ([#3404](https://github.com/microsoft/autogen/issues/3404)):
**Before:**
```csharp
var agent = new GPTAgent(...);
```
**After:**
```csharp
var agent = new OpenAIChatAgent(...)
.RegisterMessageConnector();
```

#### For Using Azure.AI.OpenAI v2.0 ([#3193](https://github.com/microsoft/autogen/issues/3193)):
**Previous way of creating `OpenAIChatAgent`:**
```csharp
var openAIClient = new OpenAIClient(apiKey);
var openAIClientAgent = new OpenAIChatAgent(
openAIClient: openAIClient,
model: "gpt-4o-mini",
// Other parameters...
);
```

**New way of creating `OpenAIChatAgent`:**
```csharp
var openAIClient = new OpenAIClient(apiKey);
var openAIClientAgent = new OpenAIChatAgent(
chatClient: openAIClient.GetChatClient("gpt-4o-mini"),
// Other parameters...
);
```
3 changes: 3 additions & 0 deletions dotnet/website/release_note/toc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
- name: 0.2.0
href: 0.2.0.md

- name: 0.1.0
href: 0.1.0.md

Expand Down

0 comments on commit b97bca5

Please sign in to comment.