Skip to content

EvalCaseResult

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

The result of a single EvalCase within an EvalRun.

public sealed record EvalCaseResult : IEquatable<EvalCaseResult>

objectEvalCaseResult

IEquatable<EvalCaseResult>

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

EvalCaseResult.CaseId deliberately carries no foreign key: even if a case is later changed or deleted, the past result record stays intelligible (append-only spirit, same reason).

public EvalCaseResult()

The identifier of the case being measured.

public required Guid CaseId { get; init; }

Guid

The identifier of the run this result belongs to.

public required Guid EvalRunId { get; init; }

Guid

The failure reason. Populated only when Passed is false.

public string? FailureReason { get; init; }

string?

The result record identifier.

public Guid Id { get; init; }

Guid

The text output produced by the agent.

public string? Output { get; init; }

string?

Reports whether the case passed all of its checks.

public required bool Passed { get; init; }

bool

The identifier of the run record created while processing this case. This lets an eval failure jump straight to its transcript and span tree.

public Guid? RunId { get; init; }

Guid?

Per-check score list (free-form JSON).

public JsonElement Scores { get; init; }

JsonElement

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(EvalCaseResult? other)

other EvalCaseResult?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(EvalCaseResult?, EvalCaseResult?)

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

left EvalCaseResult?

right EvalCaseResult?

bool

operator !=(EvalCaseResult?, EvalCaseResult?)

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

left EvalCaseResult?

right EvalCaseResult?

bool