Skip to main content

add_memory

Method
This is a method of the Session class in the session module.
Add information to session memory.

Signature

def add_memory(text: str, memory_type: str) -> None

Parameters

text
str
required
Text to store
memory_type
str
default:"'long'"
“short” or “long” term memory **metadata: Additional metadata