Documentation
Table of Contents

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

plan PromptPlan

The operation being verified: its intent, input and output requirements.

candidateOutput string

The model output, which has already passed the checks against the result type and the request's rules.

model string

The model to judge with (JudgeModel); null uses the provider's default model.

cancellationToken CancellationToken

Cancels the judge call.

Returns

Task<(JudgeVerdict verdict, AIResponse response)>