Search memories for a specific user.
{
"code": 0,
"message": "<string>",
"data": {}
}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.
Enumeration for search modes.
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.
Optional dedup option for textual memories. Use 'no' for no dedup, 'sim' for similarity dedup. If None, default exact-text dedup is applied.
Number of preference memories to retrieve (top-K). Default: 6.
Whether 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.
Filter for the memory
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]
Successful Response
Response status code
Response message
Response data
{
"code": 0,
"message": "<string>",
"data": {}
}