|
1 | 1 | # Release History
|
2 | 2 |
|
| 3 | +## 9.3.0-preview.1.25114.11 |
| 4 | + |
| 5 | +- Renamed `IChatClient.Complete{Streaming}Async` to `IChatClient.Get{Streaming}ResponseAsync`. This is to avoid confusion with "Complete" being about stopping an operation, as well as to avoid tying the methods to a particular implementation detail of how responses are generated. Along with this, renamed `ChatCompletion` to `ChatResponse`, `StreamingChatCompletionUpdate` to `ChatResponseUpdate`, `CompletionId` to `ResponseId`, `ToStreamingChatCompletionUpdates` to `ToChatResponseUpdates`, and `ToChatCompletion{Async}` to `ToChatResponse{Async}`. |
| 6 | +- Removed `IChatClient.Metadata` and `IEmbeddingGenerator.Metadata`. The `GetService` method may be used to retrieve `ChatClientMetadata` and `EmbeddingGeneratorMetadata`, respectively. |
| 7 | +- Added overloads of `Get{Streaming}ResponseAsync` that accept a single `ChatMessage` (in addition to the other overloads that accept a `List<ChatMessage>` or a `string`). |
| 8 | +- Added `ChatThreadId` properties to `ChatOptions`, `ChatResponse`, and `ChatResponseUpdate`. `IChatClient` can now be used in both stateful and stateless modes of operation, such as with agents that maintain server-side chat history. |
| 9 | +- Made `ChatOptions.ToolMode` nullable and added a `None` option. |
| 10 | +- Changed `UsageDetails`'s properties from `int?` to `long?`. |
| 11 | +- Removed `DataContent.ContainsData`; `DataContent.Data.HasValue` may be used instead. |
| 12 | +- Removed `ImageContent` and `AudioContent`; the base `DataContent` should now be used instead, with a new `DataContent.MediaTypeStartsWith` helper for routing based on media type. |
| 13 | +- Removed setters on `FunctionCallContent` and `FunctionResultContent` properties where the value is supplied to the constructor. |
| 14 | +- Removed `FunctionResultContent.Name`. |
| 15 | +- Augmented the base `AITool` with `Name`, `Description`, and `AdditionalProperties` virtual properties. |
| 16 | +- Added a `CodeInterpreterTool` for use with services that support server-side code execution. |
| 17 | +- Changed `AIFunction`'s schema representation to be for the whole function rather than per parameter, and exposed corresponding methods on `AIJsonUtilities`, e.g. `CreateFunctionJsonSchema`. |
| 18 | +- Removed `AIFunctionParameterMetadata` and `AIFunctionReturnParameterMetadata` classes and corresponding properties on `AIFunction` and `AIFunctionFactoryCreateOptions`, replacing them with a `MethodInfo?`. All relevant metadata, such as the JSON schema for the function, are moved to properties directly on `AIFunction`. |
| 19 | +- Renamed `AIFunctionFactoryCreateOptions` to `AIFunctionFactoryOptions` and made all its properties nullable. |
| 20 | +- Changed `AIJsonUtilities.DefaultOptions` to use relaxed JSON escaping. |
| 21 | +- Made `IEmbeddingGenerator<TInput, TEmbedding>` contravariant on `TInput`. |
| 22 | + |
3 | 23 | ## 9.1.0-preview.1.25064.3
|
4 | 24 |
|
5 | 25 | - Added `AdditionalPropertiesDictionary<TValue>` and changed `UsageDetails.AdditionalProperties` to be named `AdditionalCounts` and to be of type `AdditionalPropertiesDictionary<long>`.
|
|
0 commit comments