hashbrown

Hashbrown.AspNetCore · C# API reference

Hashbrown.AspNetCore.HashbrownRequestClient

Upcoming 0.1.0-preview.2 · Unreleased

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

Applies Hashbrown output semantics without modifying upstream request options.

Members

HashbrownRequestClient

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

Creates the existing stateless request adapter.

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))

ReadSchema

public static System.Text.Json.JsonElement? ReadSchema(AGUI.Abstractions.RunAgentInput input);

Reads the optional native output schema from AG-UI forwarded properties.