Skip to content

SessionBranchRequest

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

A request to branch a conversation from a specific point.

public sealed record SessionBranchRequest : IEquatable<SessionBranchRequest>

objectSessionBranchRequest

IEquatable<SessionBranchRequest>

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

public SessionBranchRequest()

The identifier of the new session to open. Generated if not given.

public string? NewSessionId { get; init; }

string?

If the identifier comes from the caller, an existing session with the same identifier is not overwritten; the request is rejected.

The sequence number of the last item to include (inclusive). If not given, the whole conversation is copied.

public long? UpToSequence { get; init; }

long?

0 is a valid value and opens a branch carrying only the first item. A negative value is rejected.

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(SessionBranchRequest? other)

other SessionBranchRequest?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(SessionBranchRequest?, SessionBranchRequest?)

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

left SessionBranchRequest?

right SessionBranchRequest?

bool

operator !=(SessionBranchRequest?, SessionBranchRequest?)

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

left SessionBranchRequest?

right SessionBranchRequest?

bool