Documentation
Table of Contents

Class SpecialistRequest

Namespace
IntentSharp.Specialist
Assembly
IntentSharp.Specialist.dll

What a SpecialistRuntime asks a specialist service for: a specialist for one intent definition, with context about how the intent is used and the requirements the specialist must meet. The request hash identifies the request's content, so the same definition and context always give the same hash.

public sealed class SpecialistRequest
Inheritance
object
SpecialistRequest
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Extension Methods

Constructors

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.

Properties

Context

The context items sent with the request, in the order given.

Definition

The intent definition a specialist is wanted for. A copy: changing it changes neither the request nor its hash.

IntentName

The intent's name, as the definition gives it.

RequestHash

An opaque text that identifies the definition and the context. Two requests with the same content have the same hash, whatever the order of keys in their JSON and whatever the order of the context items; any change to the definition or to a context item gives a different hash.

Requirements

What the specialist must meet, in a form the service understands. Not part of the request hash.

Methods

HashOf(IntentDefinition)

The request hash of a definition with no context, which is what a request built with no context sources carries.