Documentation
Table of Contents

Class CatalogContextSource

Namespace
IntentSharp.Specialist
Assembly
IntentSharp.Specialist.dll

Sends the application's other intents with every request, as one item of kind Program named ItemName: the name, description and tags of each intent in the catalog except the requested one, in name order. Nothing else of a definition is sent. A change to the catalog changes the item, and so the request hash.

public sealed class CatalogContextSource : ISpecialistContextSource
Inheritance
object
CatalogContextSource
Implements
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Extension Methods

Constructors

CatalogContextSource(IIntentCatalog, Func<IntentDefinition, bool>?)

Creates the source.

Fields

ItemName

The name of the item this source sends.

Properties

Catalog

The catalog whose intents are listed.

Methods

GetContextAsync(IntentDefinition, CancellationToken)

Returns the items to send with a request for definition; an empty list sends none.