ExperimentVariantResult
AgentPrism.Abstractions.dllSummarizes run results for an experiment variant (calculated in the store).
public sealed record ExperimentVariantResult : IEquatable<ExperimentVariantResult>Inheritance
Section titled “Inheritance”object ← ExperimentVariantResult
Implements
Section titled “Implements”IEquatable<ExperimentVariantResult>
Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
Section titled “Constructors”ExperimentVariantResult()
Section titled “ ExperimentVariantResult()”public ExperimentVariantResult()Properties
Section titled “Properties”AverageDurationMs
Section titled “ AverageDurationMs”Gets the average duration of settled runs in milliseconds. Returns null when no run is settled.
public double? AverageDurationMs { get; init; }Property Value
Section titled “Property Value”AverageScore
Section titled “ AverageScore”Gets the average numeric score from 0 through 100 for runs assigned to this
variant. It uses the RunScoreKind.Numeric scores written by online evaluation.
Returns null when no run is scored. This is not
0; it means unknown, consistent with the existing RunCost
contract.
public double? AverageScore { get; init; }Property Value
Section titled “Property Value”CanceledRuns
Section titled “ CanceledRuns”Gets the number of cancelled runs.
public required long CanceledRuns { get; init; }Property Value
Section titled “Property Value”CompletedRuns
Section titled “ CompletedRuns”Gets the number of successfully completed runs.
public required long CompletedRuns { get; init; }Property Value
Section titled “Property Value”Currency
Section titled “ Currency”Gets the currency. It is populated when TotalCost is populated.
public string? Currency { get; init; }Property Value
Section titled “Property Value”ErrorRate
Section titled “ ErrorRate”Gets the error rate among settled runs, from 0 through 1. It uses the same
calculation as RunStatistics.ErrorRate.
public double? ErrorRate { get; }Property Value
Section titled “Property Value”FailedRuns
Section titled “ FailedRuns”Gets the number of runs that ended with an error.
public required long FailedRuns { get; init; }Property Value
Section titled “Property Value”InputTokens
Section titled “ InputTokens”Gets the total input tokens.
public long InputTokens { get; init; }Property Value
Section titled “Property Value”OutputTokens
Section titled “ OutputTokens”Gets the total output tokens.
public long OutputTokens { get; init; }Property Value
Section titled “Property Value”TotalCost
Section titled “ TotalCost”Gets the total cost for this variant. Returns null when pricing is undefined.
public decimal? TotalCost { get; init; }Property Value
Section titled “Property Value”TotalRuns
Section titled “ TotalRuns”Gets the total number of runs assigned to this variant.
public required long TotalRuns { get; init; }Property Value
Section titled “Property Value”TotalTokens
Section titled “ TotalTokens”Gets the total tokens.
public long TotalTokens { get; init; }Property Value
Section titled “Property Value”Variant
Section titled “ Variant”Gets the variant name.
public required string Variant { get; init; }Property Value
Section titled “Property Value”Version
Section titled “ Version”Gets the definition version served by the variant.
public required int Version { get; init; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Equals(object?)
Section titled “ Equals(object?)”public override bool Equals(object? obj)Parameters
Section titled “Parameters”obj object?
Returns
Section titled “Returns”Equals(ExperimentVariantResult?)
Section titled “ Equals(ExperimentVariantResult?)”public bool Equals(ExperimentVariantResult? other)Parameters
Section titled “Parameters”other ExperimentVariantResult?
Returns
Section titled “Returns”GetHashCode()
Section titled “ GetHashCode()”public override int GetHashCode()Returns
Section titled “Returns”ToString()
Section titled “ ToString()”public override string ToString()Returns
Section titled “Returns”Operators
Section titled “Operators”operator ==(ExperimentVariantResult?, ExperimentVariantResult?)
Section titled “ operator ==(ExperimentVariantResult?, ExperimentVariantResult?)”public static bool operator ==(ExperimentVariantResult? left, ExperimentVariantResult? right)Parameters
Section titled “Parameters”left ExperimentVariantResult?
right ExperimentVariantResult?
Returns
Section titled “Returns”operator !=(ExperimentVariantResult?, ExperimentVariantResult?)
Section titled “ operator !=(ExperimentVariantResult?, ExperimentVariantResult?)”public static bool operator !=(ExperimentVariantResult? left, ExperimentVariantResult? right)Parameters
Section titled “Parameters”left ExperimentVariantResult?
right ExperimentVariantResult?