Constructor SpecialistRequest
- Namespace
- IntentSharp.Specialist
- Assembly
- IntentSharp.Specialist.dll
SpecialistRequest(IntentDefinition, IEnumerable<SpecialistContextItem>?, JsonObject?)
Creates a request. The definition, the context and the requirements are copied, so later changes to the objects passed in change neither the request nor its hash.
public SpecialistRequest(IntentDefinition definition, IEnumerable<SpecialistContextItem>? context = null, JsonObject? requirements = null)
Parameters
definitionIntentDefinitionThe intent definition a specialist is wanted for.
contextIEnumerable<SpecialistContextItem>The context items to send; null sends none.
requirementsJsonObjectWhat the specialist must meet, in a form the service understands; null sends an empty object.
Exceptions
- ArgumentNullException
definitionis null.- ArgumentException
A context item is null or has no name.