Skip to content

RunAgentStatistics

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

An agent’s run summary.

public sealed record RunAgentStatistics : IEquatable<RunAgentStatistics>

objectRunAgentStatistics

IEquatable<RunAgentStatistics>

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

public RunAgentStatistics()

The agent name.

public required string AgentName { get; init; }

string

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

public required long FailedRuns { get; init; }

long

This agent’s total number of runs.

public required long TotalRuns { get; init; }

long

This agent’s total token usage.

public long TotalTokens { get; init; }

long

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(RunAgentStatistics? other)

other RunAgentStatistics?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(RunAgentStatistics?, RunAgentStatistics?)

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

left RunAgentStatistics?

right RunAgentStatistics?

bool

operator !=(RunAgentStatistics?, RunAgentStatistics?)

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

left RunAgentStatistics?

right RunAgentStatistics?

bool