Skip to content

memories

Classes

MemoryModel

Bases: BaseModel

Represents a memory item stored for a user.

Attributes

id
id: str

Unique identifier for the memory.

user_id
user_id: str

ID of the user who owns this memory.

content
content: str

The actual text content of the memory.

updated_at
updated_at: int

Unix timestamp (epoch) of when the memory was last updated.

created_at
created_at: int

Unix timestamp (epoch) of when the memory was created.

AddMemoryForm

Bases: BaseModel

Form for adding a new memory.

Attributes

content
content: str

The text content to be stored as memory.

MemoryUpdateModel

Bases: BaseModel

Form for updating an existing memory.

Attributes

content
content: Optional[str] = None

The new text content for the memory. If provided, replaces the existing content.

QueryMemoryForm

Bases: BaseModel

Form for querying memories using vector search.

Attributes

content
content: str

The search query text.

k
k: Optional[int] = 1

The number of results to return. Defaults to 1.