Skip to content

RunModelStatistics

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

A model’s run summary. The input to cost computation.

public sealed record RunModelStatistics : IEquatable<RunModelStatistics>

objectRunModelStatistics

IEquatable<RunModelStatistics>

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

public RunModelStatistics()

The total input tokens.

public long InputTokens { get; init; }

long

The model name.

public required string ModelId { get; init; }

string

The total output tokens.

public long OutputTokens { get; init; }

long

The total cost of runs made with this model. null if pricing is undefined.

public decimal? TotalCost { get; init; }

decimal?

The total number of runs made with this model.

public required long TotalRuns { get; init; }

long

The total tokens.

public long TotalTokens { get; init; }

long

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(RunModelStatistics? other)

other RunModelStatistics?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(RunModelStatistics?, RunModelStatistics?)

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

left RunModelStatistics?

right RunModelStatistics?

bool

operator !=(RunModelStatistics?, RunModelStatistics?)

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

left RunModelStatistics?

right RunModelStatistics?

bool