Memory Extraction Schema
Contains Pydantic data models that are used for structured memory extraction from the model (LLM).
memora.schema.extraction_schema.ExtractedMemory
memora.schema.extraction_schema.MemoryExtractionResponse
Bases: BaseModel
Attributes
memories_first_pass
class-attribute
instance-attribute
memories_first_pass: Optional[list[ExtractedMemory]] = (
Field(
default_factory=list,
description="First pass of useful info written for memory (remember use of #user_#id# or #agent_#id#) with their source message ids.",
)
)
memora.schema.extraction_schema.NewGleanedMemory
Bases: BaseModel
Attributes
memory
class-attribute
instance-attribute
memora.schema.extraction_schema.ContraryMemory
Bases: BaseModel
Attributes
contradicted_memory_id
class-attribute
instance-attribute
contradicted_memory_id: str = Field(
description="The ID of the existing memory that was contradicted."
)