Skip to content

RunComparisonSide

Namespace AgentPrism · Assembly AgentPrism.AspNetCore.dll

One side of the comparison.

public sealed record RunComparisonSide : IEquatable<RunComparisonSide>

objectRunComparisonSide

IEquatable<RunComparisonSide>

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

public RunComparisonSide()

Agent name.

public required string AgentName { get; init; }

string

Definition version. null if unknown.

public int? AgentVersion { get; init; }

int?

Cost.

public RunCost? Cost { get; init; }

RunCost?

Duration (milliseconds). null if the run has not finished.

public long? DurationMs { get; init; }

long?

Error class. null for a successful run.

public RunErrorClass? ErrorClass { get; init; }

RunErrorClass?

Error message. null for a successful run.

public string? ErrorMessage { get; init; }

string?

Model used.

public string? ModelId { get; init; }

string?

Text produced by the model.

public string? Output { get; init; }

string?

The non-streaming path writes MessageCompleted, the streaming path produces only MessageDelta. The two are not summed: if MessageCompleted is present it is used, otherwise the chunks are concatenated — otherwise the text would be counted twice on the non-streaming path.

Source of this run, if it is a replay.

public Guid? ReplayOfRunId { get; init; }

Guid?

Run identifier.

public required Guid RunId { get; init; }

Guid

Scores written against this run.

public IReadOnlyList<RunScore> Scores { get; init; }

IReadOnlyList<RunScore>

Final status.

public required RunStatus Status { get; init; }

RunStatus

Number of tool calls.

public required int ToolCallCount { get; init; }

int

Token usage.

public RunUsage? Usage { get; init; }

RunUsage?

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(RunComparisonSide? other)

other RunComparisonSide?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(RunComparisonSide?, RunComparisonSide?)

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

left RunComparisonSide?

right RunComparisonSide?

bool

operator !=(RunComparisonSide?, RunComparisonSide?)

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

left RunComparisonSide?

right RunComparisonSide?

bool