hashbrown

Hashbrown.AspNetCore · C# API reference

Hashbrown.AspNetCore.NativeSessionSnapshot

Upcoming 0.1.0-preview.2 · Unreleased

public sealed record NativeSessionSnapshot : System.IEquatable<Hashbrown.AspNetCore.NativeSessionSnapshot>

Read-only independently materialized durable payload owned by an admitted request.

Members

NativeSessionSnapshot

public NativeSessionSnapshot(string? nativeJson, string publicRequest, System.Collections.Generic.IReadOnlyList<Hashbrown.AspNetCore.NativeToolCall> pendingCalls, System.Collections.Generic.IReadOnlyList<string> expectedBrowserCallIds, bool turnCompleted);

Clones all collections at the storage boundary.

NativeSessionSnapshot

public NativeSessionSnapshot(string? nativeJson, string publicRequest, System.Collections.Generic.IReadOnlyList<Hashbrown.AspNetCore.NativeToolCall> pendingCalls, System.Collections.Generic.IReadOnlyList<string> expectedBrowserCallIds, bool turnCompleted, Hashbrown.AspNetCore.NativeApprovalSnapshot approvals);

Requires explicit independently owned approval state when reading serialized payloads.

Approvals

public Hashbrown.AspNetCore.NativeApprovalSnapshot Approvals { get; }

Explicit saved approval state, never inferred from public history.

ExpectedBrowserCallIds

public System.Collections.Generic.IReadOnlyList<string> ExpectedBrowserCallIds { get; }

Exact visible browser calls awaiting caller results.

NativeJson

public string? NativeJson { get; }

Private opaque native JSON; null is allowed only for a known virgin.

PendingCalls

public System.Collections.Generic.IReadOnlyList<Hashbrown.AspNetCore.NativeToolCall> PendingCalls { get; }

Still-captured model-emitted server descriptors.

PublicRequest

public string PublicRequest { get; }

One current canonical AGUI request prefix.

TurnCompleted

public bool TurnCompleted { get; }

Whether one subsequent user message may be admitted.