IExperimentRunPolicy TCase,TOutput
NexusLabs.Foundry.Evaluation¶
NexusLabs.Foundry.Evaluation.Experiments¶
IExperimentRunPolicy<TCase,TOutput> Interface¶
Produces a structured decision from complete experiment measurements.
Type parameters¶
TCase
The caller-owned case value type.
TOutput
The caller-owned output type.
Derived
↳ ExperimentBinarySuccessPolicy<TCase,TOutput>
↳ ExperimentRunEvaluationThresholdPolicy<TCase,TOutput>
Properties¶
IExperimentRunPolicy<TCase,TOutput>.IsRequired Property¶
Gets a value indicating whether this policy contributes to the run decision.
Property Value¶
IExperimentRunPolicy<TCase,TOutput>.Kind Property¶
Gets the evidence model used by the policy.
Property Value¶
IExperimentRunPolicy<TCase,TOutput>.Name Property¶
Gets the stable policy name.
Property Value¶
Methods¶
IExperimentRunPolicy<TCase,TOutput>.EvaluateAsync(ExperimentPolicyContext<TCase,TOutput>, CancellationToken) Method¶
Evaluates complete experiment measurements.
System.Threading.Tasks.ValueTask<NexusLabs.Foundry.Evaluation.Experiments.ExperimentPolicyVerdict> EvaluateAsync(NexusLabs.Foundry.Evaluation.Experiments.ExperimentPolicyContext<TCase,TOutput> context, System.Threading.CancellationToken cancellationToken);
Parameters¶
context NexusLabs.Foundry.Evaluation.Experiments.ExperimentPolicyContext<TCase,TOutput>
The complete policy context.
cancellationToken System.Threading.CancellationToken
The caller cancellation token.
Returns¶
System.Threading.Tasks.ValueTask<ExperimentPolicyVerdict>
The structured policy evaluation.