Install
What’s included
| Class | Purpose |
|---|---|
SynapDb | Extends Agno’s InMemoryDb to persist user memories in Synap |
Quick start
How it works
SynapDb overrides the four memory methods of Agno’s InMemoryDb:
| Method | Behavior |
|---|---|
upsert_user_memory | Writes a new or updated memory to Synap |
get_user_memory | Fetches a specific memory by ID |
get_user_memories | Retrieves all memories for a user (semantic search) |
get_all_memory_topics | Returns unique memory topics via a broad search |
InMemoryDb behavior (including non-memory operations) is inherited unchanged.
Multi-user setup
Theuser_id is passed per-call by Agno’s agent runtime, so a single SynapDb instance serves all users:
Next steps
Google ADK
FunctionTool factory for Google ADK agents.
OpenAI Agents
Function tools for the OpenAI Agents SDK.