RunJudgeContext
Namespace AgentPrism · Assembly
AgentPrism.Abstractions.dllThe context the judge sees.
public sealed record RunJudgeContext : IEquatable<RunJudgeContext>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
Section titled “Constructors”RunJudgeContext()
Section titled “ RunJudgeContext()”public RunJudgeContext()Properties
Section titled “Properties”AgentName
Section titled “ AgentName”The name of the agent that ran.
public required string AgentName { get; init; }Property Value
Section titled “Property Value”The run’s input.
public required IReadOnlyList<ChatMessage> Input { get; init; }Property Value
Section titled “Property Value”IReadOnlyList<ChatMessage>
Remarks
Section titled “Remarks”Read from run_inputs (IRunInputStore);
if no record exists, the run is not sampled and this type is never produced.
Output
Section titled “ Output”The run’s output text.
public required string Output { get; init; }Property Value
Section titled “Property Value”The identifier of the run being scored.
public required Guid RunId { get; init; }Property Value
Section titled “Property Value”TenantId
Section titled “ TenantId”The tenant the run belongs to.
public required string TenantId { get; init; }Property Value
Section titled “Property Value”ToolNames
Section titled “ ToolNames”The tool names called. Some metrics require this.
public IReadOnlyList<string> ToolNames { get; init; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Equals(object?)
Section titled “ Equals(object?)”public override bool Equals(object? obj)Parameters
Section titled “Parameters”obj object?
Returns
Section titled “Returns”Equals(RunJudgeContext?)
Section titled “ Equals(RunJudgeContext?)”public bool Equals(RunJudgeContext? other)Parameters
Section titled “Parameters”other RunJudgeContext?
Returns
Section titled “Returns”GetHashCode()
Section titled “ GetHashCode()”public override int GetHashCode()Returns
Section titled “Returns”ToString()
Section titled “ ToString()”public override string ToString()Returns
Section titled “Returns”Operators
Section titled “Operators”operator ==(RunJudgeContext?, RunJudgeContext?)
Section titled “ operator ==(RunJudgeContext?, RunJudgeContext?)”public static bool operator ==(RunJudgeContext? left, RunJudgeContext? right)Parameters
Section titled “Parameters”left RunJudgeContext?
right RunJudgeContext?
Returns
Section titled “Returns”operator !=(RunJudgeContext?, RunJudgeContext?)
Section titled “ operator !=(RunJudgeContext?, RunJudgeContext?)”public static bool operator !=(RunJudgeContext? left, RunJudgeContext? right)Parameters
Section titled “Parameters”left RunJudgeContext?
right RunJudgeContext?