Skip to content

ConversationBranch

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

A conversation branch’s store-level result.

public readonly struct ConversationBranch : IEquatable<ConversationBranch>

IEquatable<ConversationBranch>

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

A conversation branch’s store-level result.

public ConversationBranch(Guid ConversationId, long BranchFromSequence, int CopiedItemCount)

ConversationId Guid

The new conversation’s identifier.

BranchFromSequence long

The sequence number of the last item copied; -1 if no item was copied.

CopiedItemCount int

The number of items copied.

The sequence number of the last item copied; -1 if no item was copied.

public long BranchFromSequence { get; init; }

long

The new conversation’s identifier.

public Guid ConversationId { get; init; }

Guid

The number of items copied.

public int CopiedItemCount { get; init; }

int

public void Deconstruct(out Guid ConversationId, out long BranchFromSequence, out int CopiedItemCount)

ConversationId Guid

BranchFromSequence long

CopiedItemCount int

public override bool Equals(object obj)

obj object

bool

public bool Equals(ConversationBranch other)

other ConversationBranch

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(ConversationBranch, ConversationBranch)

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

left ConversationBranch

right ConversationBranch

bool

operator !=(ConversationBranch, ConversationBranch)

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

left ConversationBranch

right ConversationBranch

bool