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
Entity |
Initializes a new instance of the EntityAssignments class. |
Properties
assignments | |
next |
Gets the next entity event to surface. |
Methods
dequeue(Action |
Remove the current event and update the memory. |
read(Action |
Read entity event queue from memory. |
write(Action |
Write state into memory. |
Constructor Details
EntityAssignments(EntityAssignment[])
Initializes a new instance of the EntityAssignments class.
new EntityAssignments(assignments?: EntityAssignment[])
Parameters
- assignments
A list of EntityAssignments to use.
Property Details
assignments
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.