Skip to content

ExperimentTask TCase,TOutput (ExperimentTaskContext TCase ,CancellationToken)

NexusLabs.Foundry.Evaluation

NexusLabs.Foundry.Evaluation.Experiments

ExperimentTask<TCase,TOutput>(ExperimentTaskContext<TCase>, CancellationToken) Delegate

Executes one operational attempt for one experiment case trial.

public delegate System.Threading.Tasks.ValueTask<TOutput> ExperimentTask<TCase,TOutput>(NexusLabs.Foundry.Evaluation.Experiments.ExperimentTaskContext<TCase> context, System.Threading.CancellationToken cancellationToken);

Type parameters

TCase

The caller-owned case value type.

TOutput

The caller-owned output type.

Parameters

context NexusLabs.Foundry.Evaluation.Experiments.ExperimentTaskContext<TCase>

The stable run, case, trial, sequence, and attempt context.

cancellationToken System.Threading.CancellationToken

The caller and optional attempt-timeout token.

Returns

System.Threading.Tasks.ValueTask<TOutput>
The attempt output.