memory namespace is the core of the xysq SDK. It stores captures from conversations, decisions, preferences, and external sources, and makes them retrievable across sessions, agents, and time.
capture
Store a memory permanently.
Returns:
CaptureResult — document_id, status, applied_tags, dropped_tags, available_tags
surface
Retrieve the most relevant memories for a query. Uses semantic search over your vault.
Returns:
list[MemoryItem] — id, text, tags, metadata, occurred_at
synthesize
Answer a natural language question from your memory bank. Uses your stored memories as the source of truth.
Returns:
SynthesizeResult — answer, confidence, sources
list
List stored memories, most recent first.
Returns:
list[MemoryItem]
delete
Delete a memory document (the whole cluster, every unit) by ID.status
Check the indexing status of a memory document.wait
Block until a document reaches a terminal status (completed or failed) or the timeout elapses.wait() when you need a captured document to be immediately searchable — for example in tests or deterministic pipelines.
Parameters
Returns:
StatusResult — status, document_id, error_msg
Async usage
Every method has an async equivalent onAsyncXysq:
Related
Organise
Upload files; their contents surface through memory automatically
Team Vaults
Scope memory to a shared team vault