Add a session to memory.
Flow:
The session to add to memory
Optionaloptions: { Additional options for the memory record
OptionalappOverride the app name (defaults to session.appName)
OptionaluserOverride the user ID (defaults to session.userId)
The created memory record
Search memories for a user.
Flow:
Search query parameters
Array of matching memories with relevance scores
Delete memories matching the filter.
Filter criteria for deletion
Number of memories deleted
Count memories matching the filter (if supported by storage).
Filter criteria for counting
Number of matching memories, or undefined if not supported
Get the configured embedding provider. Useful for generating embeddings externally.
Get the configured summary provider. Useful for generating summaries externally.
Get the configured storage provider. Useful for direct storage operations.
Main memory service - orchestrates storage, summarization, and search.
This is the primary entry point for memory operations. It coordinates:
Example