Documentation
Table of Contents

Class ModelJudge

Namespace
IntentSharp.Verification
Assembly
IntentSharp.dll

Model-as-judge: asks a model whether the candidate output satisfies the intent for the given input and to list concrete problems. Problems are fed back to the generating model on the next attempt. Costs one model call; enable through JudgeMode.

public sealed class ModelJudge : IResultJudge
Inheritance
object
ModelJudge
Implements
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Extension Methods

Constructors

ModelJudge(IAIProvider, ILogger?)

Creates a judge that asks provider for each verdict.

Methods

JudgeAsync(PromptPlan, string, string?, CancellationToken)

Asks the provider whether candidateOutput satisfies the intent for the input, in one model call. A reply that is not JSON passes, with a Warning logged, so a faulty judge never blocks a result.