Skip to content

IExperimentRunPolicy TCase,TOutput

NexusLabs.Foundry.Evaluation

NexusLabs.Foundry.Evaluation.Experiments

IExperimentRunPolicy<TCase,TOutput> Interface

Produces a structured decision from complete experiment measurements.

public interface IExperimentRunPolicy<TCase,TOutput>

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.

bool IsRequired { get; }

Property Value

System.Boolean

IExperimentRunPolicy<TCase,TOutput>.Kind Property

Gets the evidence model used by the policy.

NexusLabs.Foundry.Evaluation.Experiments.ExperimentPolicyKind Kind { get; }

Property Value

ExperimentPolicyKind

IExperimentRunPolicy<TCase,TOutput>.Name Property

Gets the stable policy name.

string Name { get; }

Property Value

System.String

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.