Save Memory Schema
Contains Pydantic data models that are used to ease memory storage in stores (e.g. vector and graph databases).
memora.schema.storage_schema.MemoryToStore
memora.schema.storage_schema.ContraryMemoryToStore
Bases: MemoryToStore
memora.schema.storage_schema.MemoriesAndInteraction
Bases: BaseModel
Contains both the interaction, its date and the associated memories to store in memory stores.
Attributes
contrary_memories
class-attribute
instance-attribute
contrary_memories: list[ContraryMemoryToStore] = Field(
default=[],
description="The memory extracted from the interaction with the above but also the memory id of the existing memory they contradicted.",
)
interaction
class-attribute
instance-attribute
interaction: list[dict[str, str]] = Field(
default=[],
description="The messages in the interaction [{'role': 'user', 'content': 'hello'}, ...]",
)