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
string
required
Workspace identifier
Request Body
string
required
Natural language search query
array of strings
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.array of strings
Limit search to memories associated with specific actors
array of strings
Limit search to memories belonging to specific agents.
array of strings
Filter results by memory type. Accepted values:
document, fact. When omitted, all types are searched.integer
default:"10"
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.string
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.Response
object