Skip to content

RunLabelStatistics

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

A label’s run summary; one entry per distinct key/value pair.

public sealed record RunLabelStatistics : IEquatable<RunLabelStatistics>

objectRunLabelStatistics

IEquatable<RunLabelStatistics>

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

public RunLabelStatistics()

This label’s number of runs that ended in an error.

public required long FailedRuns { get; init; }

long

The label key.

public required string Key { get; init; }

string

This label’s total cost. null if no run carrying it was ever priced.

public decimal? TotalCost { get; init; }

decimal?

The number of runs carrying this exact key/value pair.

public required long TotalRuns { get; init; }

long

This label’s total token usage.

public long TotalTokens { get; init; }

long

The label value.

public required string Value { get; init; }

string

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(RunLabelStatistics? other)

other RunLabelStatistics?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(RunLabelStatistics?, RunLabelStatistics?)

Section titled “ operator ==(RunLabelStatistics?, RunLabelStatistics?)”
public static bool operator ==(RunLabelStatistics? left, RunLabelStatistics? right)

left RunLabelStatistics?

right RunLabelStatistics?

bool

operator !=(RunLabelStatistics?, RunLabelStatistics?)

Section titled “ operator !=(RunLabelStatistics?, RunLabelStatistics?)”
public static bool operator !=(RunLabelStatistics? left, RunLabelStatistics? right)

left RunLabelStatistics?

right RunLabelStatistics?

bool