Skip to content

SessionBranchResult

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

The result of branching.

public sealed record SessionBranchResult : IEquatable<SessionBranchResult>

objectSessionBranchResult

IEquatable<SessionBranchResult>

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

public SessionBranchResult()

The branch point: the sequence number of the last item copied to the new conversation. -1 if no item was copied.

public required long BranchFromSequence { get; init; }

long

The new conversation’s identifier.

public required Guid ConversationId { get; init; }

Guid

The number of items copied.

public required int CopiedItemCount { get; init; }

int

The source conversation’s identifier.

public required Guid ParentConversationId { get; init; }

Guid

The source session’s identifier.

public required string ParentSessionId { get; init; }

string

The new session’s identifier.

public required string SessionId { get; init; }

string

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(SessionBranchResult? other)

other SessionBranchResult?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(SessionBranchResult?, SessionBranchResult?)

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

left SessionBranchResult?

right SessionBranchResult?

bool

operator !=(SessionBranchResult?, SessionBranchResult?)

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

left SessionBranchResult?

right SessionBranchResult?

bool