Search memories for a specific user.
This endpoint uses the class-based SearchHandler for better code organization.
Request model for searching memories.
User search query
User ID
List of cube IDs that are readable for this request. Required for algorithm-facing API; optional for developer-facing API.
Search mode: fast, fine, or mixture.
fast, fine, mixture Session ID used as a soft signal to prioritize more relevant memories. Only used for weighting, not as a hard filter.
Number of textual memories to retrieve (top-K). Default: 10.
x >= 1Number of preference memories to retrieve (top-K). Default: 6.
x >= 0Whether to retrieve preference memories along with general memories. If enabled, the system will automatically recall user preferences relevant to the query. Default: True.
Whether to retrieve tool memories along with general memories. If enabled, the system will automatically recall tool memories relevant to the query. Default: True.
Number of tool memories to retrieve (top-K). Default: 6.
x >= 0Filter for the memory, example:
{
"`and` or `or`": [
{"id": "uuid-xxx"},
{"created_at": {"gt": "2024-01-01"}},
]
}Whether to enable internet search in addition to memory search. Primarily used by internal algorithms. Default: False.
Internal similarity threshold for searching plaintext memories. If None, default thresholds will be applied.
Type of memory to search: All, WorkingMemory, LongTermMemory, UserMemory, OuterMemory, ToolSchemaMemory, ToolTrajectoryMemory
Historical chat messages used internally by algorithms. If None, internal stored history may be used; if provided (even an empty list), this value will be used as-is.
(Deprecated) Single cube ID to search in. Prefer readable_cube_ids for multi-cube search.
(Deprecated / internal) Whether to use legacy MemOSCube path.
(Internal) Operation definitions for multi-cube read permissions.
Source of the search query [plugin will router diff search]