search_memories
Search stored memories using natural language queries and filters to find relevant information based on user, agent, or time criteria.
Instructions
Run a semantic search over existing memories.
Use filters to narrow results. Common filter patterns:
- Single user: {"AND": [{"user_id": "john"}]}
- Agent memories: {"AND": [{"agent_id": "agent_name"}]}
- Recent memories: {"AND": [{"user_id": "john"}, {"created_at": {"gte": "2024-01-01"}}]}
- Multiple users: {"AND": [{"user_id": {"in": ["john", "jane"]}}]}
- Cross-entity: {"OR": [{"user_id": "john"}, {"agent_id": "agent_name"}]}
user_id is automatically added to filters if not provided.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Natural language description of what to find. | |
| filters | No | Additional filter clauses (user_id injected automatically). | |
| limit | No | Maximum number of results to return. | |
| enable_graph | No | Set true only when the user explicitly wants graph-derived memories. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |