Skip to main content

Module memory

Module memory 

Source
Expand description

Memory entry types for typed remember() dispatch. Discriminated-union memory entries for remember() typed dispatch.

Mirrors Python’s cognee/memory/entries.py. Typed payloads let callers pass rich structured data to cognee.remember() — Q&A turns, agent trace steps, feedback attachments — in addition to the legacy “blob of text/files” shape. Each entry carries a literal type discriminator so the remember_entry() dispatch can route to the right SessionManager method.

Wire shape (Decision 10): the type discriminator stays snake_case ("qa" / "trace" / "feedback") per Python’s Literal["qa"|"trace"|"feedback"], while every multi-word inner field name is camelCase on the wire (feedbackText, originFunction, methodParams, etc.). Snake-case serde(alias) attributes accept the legacy snake_case form on input (Python populate_by_name=True parity).

Structs§

FeedbackEntry
Feedback attached to an existing QA entry.
QAEntry
A Q&A turn stored in the session cache.
TraceEntry
One step of an agent trace.

Enums§

MemoryEntry
Tagged union of typed memory payloads dispatched by remember_entry().