Skip to main content
The 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.
Parameters Returns: CaptureResultdocument_id, status, applied_tags, dropped_tags, available_tags

surface

Retrieve the most relevant memories for a query. Uses semantic search over your vault.
Parameters 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.
Parameters Returns: SynthesizeResultanswer, confidence, sources
Use budget="low" in chatbot loops where latency matters. Use budget="high" for one-shot synthesis where comprehensiveness is critical.

list

List stored memories, most recent first.
Parameters Returns: list[MemoryItem]

delete

Delete a memory document (the whole cluster, every unit) by ID.
Parameters

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.
Use wait() when you need a captured document to be immediately searchable — for example in tests or deterministic pipelines. Parameters Returns: StatusResultstatus, document_id, error_msg

Async usage

Every method has an async equivalent on AsyncXysq:

Organise

Upload files; their contents surface through memory automatically

Team Vaults

Scope memory to a shared team vault