Documentation
Table of Contents

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

definition IntentDefinition

The intent definition a specialist is wanted for.

context IEnumerable<SpecialistContextItem>

The context items to send; null sends none.

requirements JsonObject

What the specialist must meet, in a form the service understands; null sends an empty object.

Exceptions

ArgumentNullException

definition is null.

ArgumentException

A context item is null or has no name.