Skip to content

ExperimentMetricSnapshot

NexusLabs.Foundry.Evaluation

NexusLabs.Foundry.Evaluation.Experiments

ExperimentMetricSnapshot Class

Provides an immutable Foundry-owned projection of one MEAI evaluation metric.

public sealed record ExperimentMetricSnapshot : System.IEquatable<NexusLabs.Foundry.Evaluation.Experiments.ExperimentMetricSnapshot>

Inheritance System.Object 🡒 ExperimentMetricSnapshot

Implements System.IEquatable<ExperimentMetricSnapshot>

Remarks

Instances are constructed only by NexusLabs.Foundry.Evaluation.Experiments.ExperimentMetricSnapshotFactory from a MEAI Microsoft.Extensions.AI.Evaluation.EvaluationResult. External evaluators return MEAI evaluation results and never construct snapshots directly.

Properties

ExperimentMetricSnapshot.BooleanValue Property

Gets the boolean value when Kind is boolean.

public System.Nullable<bool> BooleanValue { get; }

Property Value

System.Nullable<System.Boolean>

ExperimentMetricSnapshot.ContextCount Property

Gets the number of MEAI context objects omitted from the canonical snapshot.

public int ContextCount { get; }

Property Value

System.Int32

ExperimentMetricSnapshot.Diagnostics Property

Gets the copied diagnostic collection.

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

Property Value

System.Collections.Generic.IReadOnlyList<ExperimentMetricDiagnosticSnapshot>

ExperimentMetricSnapshot.Interpretation Property

Gets the optional normalized interpretation.

public NexusLabs.Foundry.Evaluation.Experiments.ExperimentMetricInterpretationSnapshot? Interpretation { get; }

Property Value

ExperimentMetricInterpretationSnapshot

ExperimentMetricSnapshot.Kind Property

Gets the normalized metric value kind.

public NexusLabs.Foundry.Evaluation.Experiments.ExperimentMetricKind Kind { get; }

Property Value

ExperimentMetricKind

ExperimentMetricSnapshot.Metadata Property

Gets copied string metadata in ordinal key order.

public System.Collections.Generic.IReadOnlyDictionary<string,string> Metadata { get; }

Property Value

System.Collections.Generic.IReadOnlyDictionary<System.String,System.String>

ExperimentMetricSnapshot.Name Property

Gets the metric name.

public string Name { get; }

Property Value

System.String

ExperimentMetricSnapshot.NonFiniteNumericValue Property

Gets the explicit non-finite numeric value classification, when present.

public System.Nullable<NexusLabs.Foundry.Evaluation.Experiments.ExperimentMetricNonFiniteValue> NonFiniteNumericValue { get; }

Property Value

System.Nullable<ExperimentMetricNonFiniteValue>

ExperimentMetricSnapshot.NumericValue Property

Gets the numeric value when Kind is numeric.

public System.Nullable<double> NumericValue { get; }

Property Value

System.Nullable<System.Double>

ExperimentMetricSnapshot.Reason Property

Gets the optional metric reason.

public string? Reason { get; }

Property Value

System.String

ExperimentMetricSnapshot.StringValue Property

Gets the string value when Kind is string.

public string? StringValue { get; }

Property Value

System.String