ReducingChatClient Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A chat client that reduces the size of a message list.
public ref class ReducingChatClient sealed : Microsoft::Extensions::AI::DelegatingChatClient
[System.Diagnostics.CodeAnalysis.Experimental("MEAI001")]
public sealed class ReducingChatClient : Microsoft.Extensions.AI.DelegatingChatClient
public sealed class ReducingChatClient : Microsoft.Extensions.AI.DelegatingChatClient
[<System.Diagnostics.CodeAnalysis.Experimental("MEAI001")>]
type ReducingChatClient = class
inherit DelegatingChatClient
type ReducingChatClient = class
inherit DelegatingChatClient
Public NotInheritable Class ReducingChatClient
Inherits DelegatingChatClient
- Inheritance
- Attributes
Constructors
ReducingChatClient(IChatClient, IChatReducer) |
Initializes a new instance of the ReducingChatClient class. |
Properties
InnerClient |
Gets the inner IChatClient. (Inherited from DelegatingChatClient) |
Methods
Dispose() |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from DelegatingChatClient) |
Dispose(Boolean) |
Provides a mechanism for releasing unmanaged resources. (Inherited from DelegatingChatClient) |
GetResponseAsync(IEnumerable<ChatMessage>, ChatOptions, CancellationToken) |
Sends chat messages and returns the response. |
GetService(Type, Object) |
Asks the IChatClient for an object of the specified type |
GetStreamingResponseAsync(IEnumerable<ChatMessage>, ChatOptions, CancellationToken) |
Sends chat messages and streams the response. |