Skip to content

ExperimentRunOutcome TCase,TOutput

NexusLabs.Foundry.Evaluation

NexusLabs.Foundry.Evaluation.Experiments

ExperimentRunOutcome<TCase,TOutput> Class

Provides one canonical quality result plus independent provider publication outcomes.

public sealed record ExperimentRunOutcome<TCase,TOutput> : System.IEquatable<NexusLabs.Foundry.Evaluation.Experiments.ExperimentRunOutcome<TCase, TOutput>>

Type parameters

TCase

The caller-owned case value type.

TOutput

The caller-owned output type.

Inheritance System.Object 🡒 ExperimentRunOutcome\<TCase,TOutput>

Implements System.IEquatable<NexusLabs.Foundry.Evaluation.Experiments.ExperimentRunOutcome<TCase,TOutput>>

Constructors

ExperimentRunOutcome(ExperimentRunResult<TCase,TOutput>, IReadOnlyList<ExperimentSinkResult>) Constructor

Initializes a validated canonical experiment outcome.

public ExperimentRunOutcome(NexusLabs.Foundry.Evaluation.Experiments.ExperimentRunResult<TCase,TOutput> result, System.Collections.Generic.IReadOnlyList<NexusLabs.Foundry.Evaluation.Experiments.ExperimentSinkResult> sinkResults);

Parameters

result NexusLabs.Foundry.Evaluation.Experiments.ExperimentRunResult<TCase,TOutput>

The canonical quality result.

sinkResults System.Collections.Generic.IReadOnlyList<ExperimentSinkResult>

The final sink results in registration order.

Exceptions

System.ArgumentException
A sink name is duplicated.

System.ArgumentNullException
result, sinkResults, or one of its elements is null.

Fields

ExperimentRunOutcome<TCase,TOutput>.CurrentSchemaVersion Field

Gets the current canonical outcome schema version.

public const int CurrentSchemaVersion = 4;

Field Value

System.Int32

Properties

ExperimentRunOutcome<TCase,TOutput>.PublicationStatus Property

Gets aggregate publication health across item scopes and final sinks.

public NexusLabs.Foundry.Evaluation.Experiments.ExperimentPublicationStatus PublicationStatus { get; }

Property Value

ExperimentPublicationStatus

ExperimentRunOutcome<TCase,TOutput>.Result Property

Gets the canonical quality result.

public NexusLabs.Foundry.Evaluation.Experiments.ExperimentRunResult<TCase,TOutput> Result { get; }

Property Value

NexusLabs.Foundry.Evaluation.Experiments.ExperimentRunResult<TCase,TOutput>

ExperimentRunOutcome<TCase,TOutput>.SchemaVersion Property

Gets the canonical outcome schema version.

public int SchemaVersion { get; }

Property Value

System.Int32

ExperimentRunOutcome<TCase,TOutput>.SinkResults Property

Gets final sink results in registration order.

public System.Collections.Generic.IReadOnlyList<NexusLabs.Foundry.Evaluation.Experiments.ExperimentSinkResult> SinkResults { get; }

Property Value

System.Collections.Generic.IReadOnlyList<ExperimentSinkResult>