Skip to content

EvalRun

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

A single execution record and summary of an EvalSuite.

public sealed record EvalRun : IEquatable<EvalRun>

objectEvalRun

IEquatable<EvalRun>

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

EvalRun.AgentVersion and EvalRun.ModelId are critical: regression tracking compares the same suite’s result across different versions. Both are filled in when the run actually starts (on the transition to EvalRunStatus.Running) — not at trigger time, because the agent definition can change while the job waits in the queue.

public EvalRun()

The agent definition version being measured. null before the run starts.

public int? AgentVersion { get; init; }

int?

The completion time (UTC). null while the run is in progress.

public DateTimeOffset? CompletedAt { get; init; }

DateTimeOffset?

The number of remaining (failed) cases.

public int Failed { get; init; }

int

The run identifier.

public required Guid Id { get; init; }

Guid

The total input token count.

public long? InputTokens { get; init; }

long?

The identifier of the job record responsible for executing this run. The run is executed through the job queue (IJobStore).

public Guid? JobId { get; init; }

Guid?

The model identifier being measured. null before the run starts.

public string? ModelId { get; init; }

string?

The total output token count.

public long? OutputTokens { get; init; }

long?

The number of cases that passed.

public int Passed { get; init; }

int

The start time (UTC).

public required DateTimeOffset StartedAt { get; init; }

DateTimeOffset

The current status of the run.

public required EvalRunStatus Status { get; init; }

EvalRunStatus

The identifier of the suite being measured.

public required Guid SuiteId { get; init; }

Guid

The tenant the run belongs to.

public required string TenantId { get; init; }

string

The total number of cases.

public int Total { get; init; }

int

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(EvalRun? other)

other EvalRun?

bool

public override int GetHashCode()

int

public override string ToString()

string

public static bool operator ==(EvalRun? left, EvalRun? right)

left EvalRun?

right EvalRun?

bool

public static bool operator !=(EvalRun? left, EvalRun? right)

left EvalRun?

right EvalRun?

bool