SessionRecord
Namespace AgentPrism · Assembly
AgentPrism.Abstractions.dllA stored session.
public sealed record SessionRecord : IEquatable<SessionRecord>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
Section titled “Constructors”SessionRecord()
Section titled “ SessionRecord()”public SessionRecord()Properties
Section titled “Properties”AgentName
Section titled “ AgentName”The agent the session belongs to.
public required string AgentName { get; init; }Property Value
Section titled “Property Value”CreatedAt
Section titled “ CreatedAt”The creation time (UTC).
public required DateTimeOffset CreatedAt { get; init; }Property Value
Section titled “Property Value”The session identifier.
public required string Id { get; init; }Property Value
Section titled “Property Value”The serialized session state. Microsoft Agent Framework’s
SerializeSessionAsync output, treated as opaque.
public required JsonElement State { get; init; }Property Value
Section titled “Property Value”TenantId
Section titled “ TenantId”The tenant identifier.
public string? TenantId { get; init; }Property Value
Section titled “Property Value”UpdatedAt
Section titled “ UpdatedAt”The last-updated time (UTC).
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(SessionRecord?)
Section titled “ Equals(SessionRecord?)”public bool Equals(SessionRecord? other)Parameters
Section titled “Parameters”other SessionRecord?
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 ==(SessionRecord?, SessionRecord?)
Section titled “ operator ==(SessionRecord?, SessionRecord?)”public static bool operator ==(SessionRecord? left, SessionRecord? right)Parameters
Section titled “Parameters”left SessionRecord?
right SessionRecord?
Returns
Section titled “Returns”operator !=(SessionRecord?, SessionRecord?)
Section titled “ operator !=(SessionRecord?, SessionRecord?)”public static bool operator !=(SessionRecord? left, SessionRecord? right)Parameters
Section titled “Parameters”left SessionRecord?
right SessionRecord?