Skip to content
Tracon

StateSample

Namespace Tracon · Assembly Tracon.Abstractions.dll

One sampled row, read for a decode attempt.

public sealed record StateSample : IEquatable<StateSample>

objectStateSample

IEquatable<StateSample>

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

public StateSample()

The row identifier — a session id, or a checkpoint’s row id.

public required string Id { get; init; }

string

The Microsoft Agent Framework version the row was written with, or null if it was written before version stamping existed.

public string? MafVersion { get; init; }

string?

The stored Tracon schema generation, or null if never stamped.

public required int? SchemaGeneration { get; init; }

int?

The stored state payload, exactly as persisted.

public required JsonElement State { get; init; }

JsonElement

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(StateSample? other)

other StateSample?

bool

public override int GetHashCode()

int

public override string ToString()

string

public static bool operator ==(StateSample? left, StateSample? right)

left StateSample?

right StateSample?

bool

public static bool operator !=(StateSample? left, StateSample? right)

left StateSample?

right StateSample?

bool