Method JudgeAsync
- Namespace
- IntentSharp.Verification
- Assembly
- IntentSharp.dll
JudgeAsync(PromptPlan, string, string?, CancellationToken)
Reviews candidateOutput and returns the verdict with the provider response it came from; the
client adds that response's token usage to the request's totals.
Task<(JudgeVerdict verdict, AIResponse response)> JudgeAsync(PromptPlan plan, string candidateOutput, string? model, CancellationToken cancellationToken)
Parameters
planPromptPlanThe operation being verified: its intent, input and output requirements.
candidateOutputstringThe model output, which has already passed the checks against the result type and the request's rules.
modelstringThe model to judge with (JudgeModel); null uses the provider's default model.
cancellationTokenCancellationTokenCancels the judge call.
Returns
- Task<(JudgeVerdict verdict, AIResponse response)>