MemoryScope Klasa

Konstruktor

MemoryScope(name: str, include_in_snapshot: bool = True)

Parametry

Nazwa Opis
name
Wymagane
include_in_snapshot
Domyślna wartość: True

Metody

delete
get_memory
load
save_changes
set_memory

delete

async delete(dialog_context: DialogContext)

Parametry

Nazwa Opis
dialog_context
Wymagane

get_memory

abstract get_memory(dialog_context: DialogContext) -> object

Parametry

Nazwa Opis
dialog_context
Wymagane

load

async load(dialog_context: DialogContext, force: bool = False)

Parametry

Nazwa Opis
dialog_context
Wymagane
force
Domyślna wartość: False

save_changes

async save_changes(dialog_context: DialogContext, force: bool = False)

Parametry

Nazwa Opis
dialog_context
Wymagane
force
Domyślna wartość: False

set_memory

abstract set_memory(dialog_context: DialogContext, memory: object)

Parametry

Nazwa Opis
dialog_context
Wymagane
memory
Wymagane