project_ids; the other optional filters choose actors, agents, or memory types.
Permission required:
workspace:memory_search on the workspace, plus one per thing you name — on each project in project_ids: project:mem_search and project:doc_search; on each actor in actor_ids: workspace_actor:fact_search; on each agent in agent_ids: workspace_agent:fact_search. Naming something you may not search refuses the whole request.Path Parameters
Request Body
Projects to search. Documents are searched only in the projects listed here: when omitted, no project is searched and
documents comes back empty. Facts are still searched for the actors and agents in the request, or for your own actor when neither actor_ids nor agent_ids is set.Filter results by memory type. Accepted values:
document, fact. When omitted, all types are searched.Maximum number of results to return in total (1–1000). One budget is shared by all searched memory types, not a limit per type:
top_k=5 may come back as five documents, or as three documents and two facts, depending only on what best answers the query. Fewer results may be returned.How thoroughly to search, trading result quality for speed:
max— run the full search.high— do not expand the query from stored facts, and use a lighter final ranking. Typically answers noticeably faster thanmax.low— likehigh, and also skip model-based understanding of the query and narrow recall, for the fastest answers.
400.