Class IntentTrial
- Namespace
- IntentSharp.Trials
- Assembly
- IntentSharp.dll
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.
[Experimental("INTENTSHARP002")]
public sealed class IntentTrial
- Inheritance
-
objectIntentTrial
- Inherited Members
-
object.Equals(object)object.Equals(object, object)object.GetHashCode()object.GetType()object.ReferenceEquals(object, object)object.ToString()
- Extension Methods
Constructors
Properties
- Document
The intent document, by its path in the document store the catalog reads, such as
intents/orders.intent.yaml: theSourceof the definitions loaded from it.
- SampleEvery
How often a call also runs the candidate: every
SampleEveryth call of an intent in the document since the trial started (1 or more; 10 by default). Each sampled call makes the candidate's model calls as well, which the result's usage and the client's totals count.
- Sequence
The version of the document to run beside the running one, by its sequence in the store (1 or more).