zerodb_synthesize_context
Search agent memory, retrieve top relevant results, and synthesize them into a concise context string—narrative, bullet, or structured—for grounding AI responses.
Instructions
Retrieve and LLM-synthesize relevant memories into a coherent context string. Searches memory for the query, retrieves top results, then uses Claude Haiku to synthesize a narrative, bullet list, or structured summary. Returns a ready-to-use context string for grounding AI responses.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The question or topic to retrieve context for | |
| top_k | No | Number of memory results to retrieve before synthesis (default: 10) | |
| agent_id | Yes | Agent or user identifier (used to scope memory retrieval) | |
| max_tokens | No | Maximum tokens in the synthesized context (default: 1000) | |
| synthesis_style | No | Output format: narrative prose, bullet points, or structured JSON-like summary | narrative |