Skip to main content

Module schema

Module schema 

Source
Expand description

Database schema definitions for the memory system

Structs§

DatabaseStats
Database statistics
Detail
Represents a preserved detail from a message
Embedding
Represents an embedding vector for semantic search
KvSnapshot
Represents KV snapshot for cache management
SearchResult
Represents search result
Session
Represents a conversation session
SessionMetadata
SessionSummary
Cumulative summary of a session’s full conversation history. There is exactly one row per session. It is replaced (not appended) on every KV cache clear, so it always covers everything from the start of the session.
StoredMessage
Represents a single message in a conversation
Summary
Represents a conversation summary

Enums§

SearchSource

Constants§

SCHEMA_SQL
SQL statements for table creation