Method HandleAsync
- Namespace
- IntentSharp.Specialist
- Assembly
- IntentSharp.Specialist.dll
HandleAsync(NotFitContext, CancellationToken)
Returns the definition to request next, or null to end, in which case the run or the ensure throws SpecialistNotFitException. Every request counts toward MaxRequestsPerHour.
ValueTask<IntentDefinition?> HandleAsync(NotFitContext context, CancellationToken cancellationToken)
Parameters
contextNotFitContextThe request, the offer and the verdict.
cancellationTokenCancellationTokenCancels the call.
Returns
- ValueTask<IntentDefinition>