Skip to content

RunJudgeContext

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

The context the judge sees.

public sealed record RunJudgeContext : IEquatable<RunJudgeContext>

objectRunJudgeContext

IEquatable<RunJudgeContext>

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

public RunJudgeContext()

The name of the agent that ran.

public required string AgentName { get; init; }

string

The run’s input.

public required IReadOnlyList<ChatMessage> Input { get; init; }

IReadOnlyList<ChatMessage>

Read from run_inputs (IRunInputStore); if no record exists, the run is not sampled and this type is never produced.

The run’s output text.

public required string Output { get; init; }

string

The identifier of the run being scored.

public required Guid RunId { get; init; }

Guid

The tenant the run belongs to.

public required string TenantId { get; init; }

string

The tool names called. Some metrics require this.

public IReadOnlyList<string> ToolNames { get; init; }

IReadOnlyList<string>

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(RunJudgeContext? other)

other RunJudgeContext?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(RunJudgeContext?, RunJudgeContext?)

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

left RunJudgeContext?

right RunJudgeContext?

bool

operator !=(RunJudgeContext?, RunJudgeContext?)

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

left RunJudgeContext?

right RunJudgeContext?

bool