RunUserStatistics
Namespace AgentPrism · Assembly
AgentPrism.Abstractions.dllA user’s run summary.
public sealed record RunUserStatistics : IEquatable<RunUserStatistics>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”The identity is opaque: AgentPrism repeats the value the consumer’s IRunAttributionContext gave it and resolves nothing about it.
Constructors
Section titled “Constructors”RunUserStatistics()
Section titled “ RunUserStatistics()”public RunUserStatistics()Properties
Section titled “Properties”FailedRuns
Section titled “ FailedRuns”This user’s number of runs that ended in an error.
public required long FailedRuns { get; init; }Property Value
Section titled “Property Value”TotalCost
Section titled “ TotalCost”This user’s total cost. null if no run of theirs was ever priced.
public decimal? TotalCost { get; init; }Property Value
Section titled “Property Value”TotalRuns
Section titled “ TotalRuns”This user’s total number of runs.
public required long TotalRuns { get; init; }Property Value
Section titled “Property Value”TotalTokens
Section titled “ TotalTokens”This user’s total token usage.
public long TotalTokens { get; init; }Property Value
Section titled “Property Value”UserId
Section titled “ UserId”The user identity.
public required string UserId { 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(RunUserStatistics?)
Section titled “ Equals(RunUserStatistics?)”public bool Equals(RunUserStatistics? other)Parameters
Section titled “Parameters”other RunUserStatistics?
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 ==(RunUserStatistics?, RunUserStatistics?)
Section titled “ operator ==(RunUserStatistics?, RunUserStatistics?)”public static bool operator ==(RunUserStatistics? left, RunUserStatistics? right)Parameters
Section titled “Parameters”left RunUserStatistics?
right RunUserStatistics?
Returns
Section titled “Returns”operator !=(RunUserStatistics?, RunUserStatistics?)
Section titled “ operator !=(RunUserStatistics?, RunUserStatistics?)”public static bool operator !=(RunUserStatistics? left, RunUserStatistics? right)Parameters
Section titled “Parameters”left RunUserStatistics?
right RunUserStatistics?