search_memories
Retrieve relevant and recent memories by blending semantic similarity with recency decay. Filter by memory type and control ranking with adjustable alpha weight.
Instructions
Search memories using semantic similarity + recency decay. Returns top-k
ranked results with scores.
Args:
agent_id: Agent whose memories to search.
user_id: User whose memories to search.
query: Natural language description of what to recall.
top_k: Number of memories to return (1–50). Default: 5.
alpha: Blend weight 0.0–1.0. 1.0 = pure semantic, 0.0 = pure recency.
Default: 0.7.
memory_type: Filter to 'episodic', 'semantic', or 'procedural'. Omit to search all.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | ||
| user_id | Yes | ||
| query | Yes | ||
| top_k | No | ||
| alpha | No | ||
| memory_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |