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
-
objectModelJudge
- 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
providerfor each verdict.
Methods
- JudgeAsync(PromptPlan, string, string?, CancellationToken)
Asks the provider whether
candidateOutputsatisfies the intent for the input, in one model call. A reply that is not JSON passes, with aWarninglogged, so a faulty judge never blocks a result.