Skip to content

ExperimentItemScopeContext TCase

NexusLabs.Foundry.Evaluation

NexusLabs.Foundry.Evaluation.Experiments

ExperimentItemScopeContext<TCase> Class

Provides stable identity and case data when entering one per-trial item scope.

public sealed record ExperimentItemScopeContext<TCase> : System.IEquatable<NexusLabs.Foundry.Evaluation.Experiments.ExperimentItemScopeContext<TCase>>

Type parameters

TCase

The caller-owned case value type.

Inheritance System.Object 🡒 ExperimentItemScopeContext\<TCase>

Implements System.IEquatable<NexusLabs.Foundry.Evaluation.Experiments.ExperimentItemScopeContext<TCase>>

Properties

ExperimentItemScopeContext<TCase>.Case Property

Gets the materialized case.

public NexusLabs.Foundry.Evaluation.Experiments.ExperimentCase<TCase> Case { get; }

Property Value

NexusLabs.Foundry.Evaluation.Experiments.ExperimentCase<TCase>

ExperimentItemScopeContext<TCase>.RunId Property

Gets the caller-supplied run identifier.

public string RunId { get; }

Property Value

System.String

ExperimentItemScopeContext<TCase>.Sequence Property

Gets the zero-based stable item sequence.

public int Sequence { get; }

Property Value

System.Int32

ExperimentItemScopeContext<TCase>.TrialIndex Property

Gets the one-based statistical trial index.

public int TrialIndex { get; }

Property Value

System.Int32