hashbrown

Hashbrown.AspNetCore · C# API reference

Hashbrown.AspNetCore.StatelessResponsesClient

Upcoming 0.1.0-preview.2 · Unreleased

public sealed class StatelessResponsesClient : Microsoft.Extensions.AI.DelegatingChatClient, Microsoft.Extensions.AI.IChatClient, System.IDisposable

Keeps native Responses history application-owned using fresh per-call options.

Members

StatelessResponsesClient

public StatelessResponsesClient(Microsoft.Extensions.AI.IChatClient innerClient);

Keeps native Responses history application-owned using fresh per-call options.

GetResponseAsync

public System.Threading.Tasks.Task<Microsoft.Extensions.AI.ChatResponse> GetResponseAsync(System.Collections.Generic.IEnumerable<Microsoft.Extensions.AI.ChatMessage> messages, Microsoft.Extensions.AI.ChatOptions? options = null, System.Threading.CancellationToken cancellationToken = default);

See also

  • Inherited documentation (M:Microsoft.Extensions.AI.DelegatingChatClient.GetResponseAsync(System.Collections.Generic.IEnumerable{Microsoft.Extensions.AI.ChatMessage},Microsoft.Extensions.AI.ChatOptions,System.Threading.CancellationToken))

GetStreamingResponseAsync

public System.Collections.Generic.IAsyncEnumerable<Microsoft.Extensions.AI.ChatResponseUpdate> GetStreamingResponseAsync(System.Collections.Generic.IEnumerable<Microsoft.Extensions.AI.ChatMessage> messages, Microsoft.Extensions.AI.ChatOptions? options = null, System.Threading.CancellationToken cancellationToken = default);

See also

  • Inherited documentation (M:Microsoft.Extensions.AI.DelegatingChatClient.GetStreamingResponseAsync(System.Collections.Generic.IEnumerable{Microsoft.Extensions.AI.ChatMessage},Microsoft.Extensions.AI.ChatOptions,System.Threading.CancellationToken))