EntityAssignments class

Tracks entity related events to surface.

Remarks

When processing entities possible ambiguities are identified and when resolved they turn into assign events. This tracking persists across multiple input utterances.

Constructors

EntityAssignments(EntityAssignment[])

Initializes a new instance of the EntityAssignments class.

Properties

assignments
nextAssignment

Gets the next entity event to surface.

Methods

dequeue(ActionContext)

Remove the current event and update the memory.

read(ActionContext)

Read entity event queue from memory.

write(ActionContext)

Write state into memory.

Constructor Details

EntityAssignments(EntityAssignment[])

Initializes a new instance of the EntityAssignments class.

new EntityAssignments(assignments?: EntityAssignment[])

Parameters

assignments

EntityAssignment[]

A list of EntityAssignments to use.

Property Details

assignments

assignments: EntityAssignment[]

Property Value

nextAssignment

Gets the next entity event to surface.

EntityAssignment nextAssignment

Property Value

The next entity event to surface.

Method Details

dequeue(ActionContext)

Remove the current event and update the memory.

function dequeue(actionContext: ActionContext): EntityAssignment

Parameters

actionContext
ActionContext

Memory context.

Returns

Removed event.

read(ActionContext)

Read entity event queue from memory.

static function read(actionContext: ActionContext): EntityAssignments

Parameters

actionContext
ActionContext

Memory context.

Returns

Entity event queue.

write(ActionContext)

Write state into memory.

function write(actionContext: ActionContext)

Parameters

actionContext
ActionContext

Memory context.