SessionBranchRequest
AgentPrism.Abstractions.dllA request to branch a conversation from a specific point.
public sealed record SessionBranchRequest : IEquatable<SessionBranchRequest>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”IEquatable<SessionBranchRequest>
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”SessionBranchRequest()
Section titled “ SessionBranchRequest()”public SessionBranchRequest()Properties
Section titled “Properties”NewSessionId
Section titled “ NewSessionId”The identifier of the new session to open. Generated if not given.
public string? NewSessionId { get; init; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”If the identifier comes from the caller, an existing session with the same identifier is not overwritten; the request is rejected.
UpToSequence
Section titled “ UpToSequence”The sequence number of the last item to include (inclusive). If not given, the whole conversation is copied.
public long? UpToSequence { get; init; }Property Value
Section titled “Property Value”long?
Remarks
Section titled “Remarks”0 is a valid value and opens a branch carrying only the first
item. A negative value is rejected.
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(SessionBranchRequest?)
Section titled “ Equals(SessionBranchRequest?)”public bool Equals(SessionBranchRequest? other)Parameters
Section titled “Parameters”other SessionBranchRequest?
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 ==(SessionBranchRequest?, SessionBranchRequest?)
Section titled “ operator ==(SessionBranchRequest?, SessionBranchRequest?)”public static bool operator ==(SessionBranchRequest? left, SessionBranchRequest? right)Parameters
Section titled “Parameters”left SessionBranchRequest?
right SessionBranchRequest?
Returns
Section titled “Returns”operator !=(SessionBranchRequest?, SessionBranchRequest?)
Section titled “ operator !=(SessionBranchRequest?, SessionBranchRequest?)”public static bool operator !=(SessionBranchRequest? left, SessionBranchRequest? right)Parameters
Section titled “Parameters”left SessionBranchRequest?
right SessionBranchRequest?