SessionDetailResponse
AgentPrism.AspNetCore.dllDetailed view of a single session: metadata and chat history.
public sealed record SessionDetailResponse : IEquatable<SessionDetailResponse>Inheritance
Section titled “Inheritance”object ← SessionDetailResponse
Implements
Section titled “Implements”IEquatable<SessionDetailResponse>
Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”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.
Constructors
Section titled “Constructors”SessionDetailResponse()
Section titled “ SessionDetailResponse()”public SessionDetailResponse()Properties
Section titled “Properties”AgentName
Section titled “ AgentName”Agent the session belongs to.
public required string AgentName { get; init; }Property Value
Section titled “Property Value”CreatedAt
Section titled “ CreatedAt”Creation time.
public required DateTimeOffset CreatedAt { get; init; }Property Value
Section titled “Property Value”Session identifier.
public required string Id { get; init; }Property Value
Section titled “Property Value”Messages
Section titled “ Messages”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; }Property Value
Section titled “Property Value”Serialized session state.
public required JsonElement State { get; init; }Property Value
Section titled “Property Value”TenantId
Section titled “ TenantId”Tenant identifier.
public string? TenantId { get; init; }Property Value
Section titled “Property Value”UpdatedAt
Section titled “ UpdatedAt”Last update time.
public required DateTimeOffset UpdatedAt { get; init; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Equals(object?)
Section titled “ Equals(object?)”public override bool Equals(object? obj)Parameters
Section titled “Parameters”obj object?
Returns
Section titled “Returns”Equals(SessionDetailResponse?)
Section titled “ Equals(SessionDetailResponse?)”public bool Equals(SessionDetailResponse? other)Parameters
Section titled “Parameters”other SessionDetailResponse?
Returns
Section titled “Returns”GetHashCode()
Section titled “ GetHashCode()”public override int GetHashCode()Returns
Section titled “Returns”ToString()
Section titled “ ToString()”public override string ToString()Returns
Section titled “Returns”Operators
Section titled “Operators”operator ==(SessionDetailResponse?, SessionDetailResponse?)
Section titled “ operator ==(SessionDetailResponse?, SessionDetailResponse?)”public static bool operator ==(SessionDetailResponse? left, SessionDetailResponse? right)Parameters
Section titled “Parameters”left SessionDetailResponse?
right SessionDetailResponse?
Returns
Section titled “Returns”operator !=(SessionDetailResponse?, SessionDetailResponse?)
Section titled “ operator !=(SessionDetailResponse?, SessionDetailResponse?)”public static bool operator !=(SessionDetailResponse? left, SessionDetailResponse? right)Parameters
Section titled “Parameters”left SessionDetailResponse?
right SessionDetailResponse?