Skip to content

SessionDetailResponse

Namespace AgentPrism · Assembly AgentPrism.AspNetCore.dll

Detailed view of a single session: metadata and chat history.

public sealed record SessionDetailResponse : IEquatable<SessionDetailResponse>

objectSessionDetailResponse

IEquatable<SessionDetailResponse>

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

SessionDetailResponse.Messages is Microsoft Agent Framework’s ChatMessage array, produced with Microsoft.Extensions.AI serialization settings. AgentPrism does not layer its own parallel type hierarchy on top of this (the MAF pass-through rule); the JSON shape is therefore MAF’s documented shape.

SessionDetailResponse.State is the serialized form of the session and is opaque. Its content belongs to MAF; AgentPrism does not interpret it.

public SessionDetailResponse()

Agent the session belongs to.

public required string AgentName { get; init; }

string

Creation time.

public required DateTimeOffset CreatedAt { get; init; }

DateTimeOffset

Session identifier.

public required string Id { get; init; }

string

Chat history. Returns null if the history could not be read (e.g. the agent is no longer in the catalog).

public JsonElement? Messages { get; init; }

JsonElement?

Serialized session state.

public required JsonElement State { get; init; }

JsonElement

Tenant identifier.

public string? TenantId { get; init; }

string?

Last update time.

public required DateTimeOffset UpdatedAt { get; init; }

DateTimeOffset

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(SessionDetailResponse? other)

other SessionDetailResponse?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(SessionDetailResponse?, SessionDetailResponse?)

Section titled “ operator ==(SessionDetailResponse?, SessionDetailResponse?)”
public static bool operator ==(SessionDetailResponse? left, SessionDetailResponse? right)

left SessionDetailResponse?

right SessionDetailResponse?

bool

operator !=(SessionDetailResponse?, SessionDetailResponse?)

Section titled “ operator !=(SessionDetailResponse?, SessionDetailResponse?)”
public static bool operator !=(SessionDetailResponse? left, SessionDetailResponse? right)

left SessionDetailResponse?

right SessionDetailResponse?

bool