Documentation
Table of Contents

Class SpecialistGuardrails

Namespace
IntentSharp.Specialist
Assembly
IntentSharp.Specialist.dll

The guardrail checkpoint, subjects and settings of a SpecialistRuntime. The runtime checks the Checkpoint checkpoint before every request it sends to a specialist service, when guardrail sets are named for it in GuardrailSets or an intent's GuardrailSets.

public static class SpecialistGuardrails
Inheritance
object
SpecialistGuardrails
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()

Remarks

The runtime declares Subjects to each check it makes, so a rule on them applies with no further step. None of them is required or a security subject, so a subject no rule names is not checked.

The Settings and the Subjects are declared on a client with AddSpecialistGuardrails(IntentClientBuilder), or under dependency injection with AddGuardrailDeclarations. Once the settings are declared, the settings document and a named rule set's settings: block can set them. The runtime resolves them on every ensure through the client's normal layers (ResolveSettings(IReadOnlyList<string>)), whether or not a set is named: a value a file gives beats the value in SpecialistOptions, as everywhere in the library, and with no file value the options' value applies.

Fields

AttemptSubject

The request's attempt number within one ensure: 1 for the first, 2 for the first request a not-fit handler asked for, and so on. A whole number.

CheckpointName

The name of the checkpoint the runtime checks before each request to a specialist service: specialist.

ContextCountSubject

The number of context items the request carries. A whole number.

ContextKindsSubject

The kinds of the context items the request carries, each once, in lower camel case: program, data, dataFlow, document, retrieval, other. A list of texts, empty when the request carries none.

IntentSubject

The intent's name. Text.

MaxRequestsPerHourSetting

The most requests for one intent in any hour. A whole number, at least 1; the code value is MaxRequestsPerHour.

ReRequestSubject

True when the request is a request again after an offer that did not fit. True or false.

ServiceSubject

The service's name, as Name gives it. Text.

WaitPollIntervalSetting

The pause between two asks within one wait. A duration greater than zero; the code value is WaitPollInterval.

WaitRetriesSetting

The further waits after the first. A whole number, 0 or more; the code value is WaitRetries.

WaitTimeoutSetting

The length of one wait. A duration greater than zero; the code value is WaitTimeout.

Properties

Checkpoint

The checkpoint checked before each request to a specialist service.

Settings

The specialist settings, ordinary settings whose library defaults are the defaults of SpecialistOptions. A new list of new descriptors on each call.

Subjects

The subjects of the Checkpoint checkpoint. A new list of new descriptors on each call.