search_memory
Search stored memories with hybrid keyword-vector retrieval, optional filters, and relevance thresholds to retrieve past decisions, preferences, and conventions across sessions.
Instructions
Search stored memories. mode defaults to 'hybrid' (keyword + vector via RRF); 'keyword' is text-only and 'semantic' is vector-only. Semantic/hybrid need an embedding provider — when embeddings are unavailable the query falls back to keyword and each result reports search_mode='keyword'. Supports namespace, type_filter, priority_filter, top_k (default 10), min_score, and optional expand_relations for one-hop relation context. Read-only; does not mutate memories.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Search mode: "hybrid" (default; keyword + vector via RRF), "keyword" (text-only), or "semantic" (vector-only). Semantic/hybrid fall back to keyword when embeddings are unavailable. | hybrid |
| query | Yes | Search query string | |
| top_k | No | Maximum number of results to return | |
| api_key | No | API key for agent authentication (required if agent has a registered key) | |
| agent_id | No | ID of the requesting agent | |
| min_score | No | Drop results whose final (post-rerank) relevance score is below this threshold. Unset = return the full top_k regardless of score, the pre-existing behavior. Lets callers distinguish "no confident match" (empty result) from "weak matches padded to top_k". | |
| namespace | No | Filter by namespace | |
| type_filter | No | Filter by memory type | |
| priority_filter | No | Filter by priority | |
| expand_relations | No | Attach each result's one-hop relation neighborhood (semantic graph expansion, C5). Default off. |