Documentation
Table of Contents

Class ProbeCaseEvaluator

Namespace
IntentSharp.Specialist
Assembly
IntentSharp.Specialist.dll

A fit check that runs cases the developer supplies through the normal pipeline on the offered specialist. The offer fits when the share of cases that pass reaches the required pass rate, all of them by default. A case passes when its result succeeds and, when it names an expected output, the result agrees with it. Each case is a model call on the specialist, so keep the cases few. Add it to FitEvaluators or to an intent's own list.

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

Constructors

ProbeCaseEvaluator(IEnumerable<ProbeCase>, double, string?)

Creates the evaluator.

Fields

DefaultName

The name this evaluator records on its findings unless another is given.

Properties

Cases

The cases, in the order they run.

Name

The evaluator's name, recorded on each of its findings.

RequiredPassRate

The share of cases that must pass for the offer to fit.

Methods

EvaluateAsync(FitContext, CancellationToken)

Judges the offer in context and returns the finding.