DialogContextMemoryScope class
DialogContextMemoryScope maps 'dialogcontext' -> properties.
- Extends
Constructors
| Dialog |
Initializes a new instance of the |
Inherited Properties
| include |
Gets a value indicating whether this memory should be included in snapshot. |
| name | Gets or sets name of the scope |
Methods
| get |
Gets the backing memory for this scope. |
Inherited Methods
| delete(Dialog |
Deletes the backing memory for a scope. |
| load(Dialog |
Loads a scopes backing memory at the start of a turn. |
| save |
Saves a scopes backing memory at the end of a turn. |
| set |
Changes the backing object for the memory scope. |
Constructor Details
DialogContextMemoryScope()
Initializes a new instance of the DialogContextMemoryScope class.
new DialogContextMemoryScope()
Inherited Property Details
includeInSnapshot
Gets a value indicating whether this memory should be included in snapshot.
includeInSnapshot: boolean
Property Value
boolean
Inherited From MemoryScope.includeInSnapshot
name
Method Details
getMemory(DialogContext)
Gets the backing memory for this scope.
function getMemory(dc: DialogContext): Record<"stack" | "activeDialog" | "parent", unknown>
Parameters
The DialogContext object for this turn.
Returns
Record<"stack" | "activeDialog" | "parent", unknown>
Memory for the scope.
Inherited Method Details
delete(DialogContext)
Deletes the backing memory for a scope.
function delete(_dc: DialogContext): Promise<void>
Parameters
- _dc
- DialogContext
Current dialog context.
Returns
Promise<void>
Inherited From MemoryScope.delete
load(DialogContext)
Loads a scopes backing memory at the start of a turn.
function load(_dc: DialogContext): Promise<void>
Parameters
- _dc
- DialogContext
Current dialog context.
Returns
Promise<void>
Inherited From MemoryScope.load
saveChanges(DialogContext)
Saves a scopes backing memory at the end of a turn.
function saveChanges(_dc: DialogContext): Promise<void>
Parameters
- _dc
- DialogContext
Current dialog context.
Returns
Promise<void>
Inherited From MemoryScope.saveChanges
setMemory(DialogContext, object)
Changes the backing object for the memory scope.
function setMemory(_dc: DialogContext, _memory: object)
Parameters
- _dc
- DialogContext
Current dialog context
- _memory
-
object
memory to assign
Inherited From MemoryScope.setMemory