Documentation
Table of Contents

Namespace IntentSharp.Trials

Classes

ClientTrials

The client's side-by-side runs of intent versions: while a trial runs, every SampleEveryth call of an intent defined in the trial's document also runs the candidate version's definition of that intent with the same input, and the two results are compared. Start a trial with StartAsync(IntentTrial, CancellationToken), read how it is going with GetReportAsync(DocumentId, CancellationToken), and when the candidate has earned it, promote it with the document store's ActivateAsync(DocumentId, long, CancellationToken): the library never promotes a version on its own.

IntentTrial

A version of an intent document to run side by side with the running version: typically a candidate saved with Activate false. Start it with StartAsync(IntentTrial, CancellationToken); every SampleEveryth call of an intent defined in the document also runs the candidate's definition of that intent with the same input, and the two results are compared. The caller always gets the running version's result. Promote the candidate with ActivateAsync(DocumentId, long, CancellationToken); the library never promotes a version on its own.

TrialReport

How an IntentTrial is going: the calls counted, the calls sampled and how each sample compared. It names no input, value or reply, so it is safe to log and to keep.

TrialSample

What a runner records for one sampled call of an IntentTrial with Record(IntentTrial, TrialSample): how the candidate compared, and the tokens its run used.

Enums

TrialOutcome

How one sampled call of an IntentTrial compared, as a TrialSample records it.