Skip to content

IExperimentCaseSource TCase

NexusLabs.Foundry.Evaluation

NexusLabs.Foundry.Evaluation.Experiments

IExperimentCaseSource<TCase> Interface

Materializes a finite ordered experiment case collection before execution begins.

public interface IExperimentCaseSource<TCase>

Type parameters

TCase

The caller-owned case value type.

Derived
LocalExperimentCaseSource<TCase>

Methods

IExperimentCaseSource<TCase>.LoadAsync() Method

Loads the complete finite case collection without caller cancellation.

System.Threading.Tasks.ValueTask<NexusLabs.Foundry.Evaluation.Experiments.ExperimentCaseSourceResult<TCase>> LoadAsync();

Returns

System.Threading.Tasks.ValueTask<NexusLabs.Foundry.Evaluation.Experiments.ExperimentCaseSourceResult<TCase>>
The source identity and ordered cases.

IExperimentCaseSource<TCase>.LoadAsync(CancellationToken) Method

Loads the complete finite case collection with caller cancellation.

System.Threading.Tasks.ValueTask<NexusLabs.Foundry.Evaluation.Experiments.ExperimentCaseSourceResult<TCase>> LoadAsync(System.Threading.CancellationToken cancellationToken);

Parameters

cancellationToken System.Threading.CancellationToken

A cancellation token.

Returns

System.Threading.Tasks.ValueTask<NexusLabs.Foundry.Evaluation.Experiments.ExperimentCaseSourceResult<TCase>>
The source identity and ordered cases.