synap-agno
Synap integration for Agno — backs Agno's user memories with Synap's semantic memory store.
Install
pip install synap-agno
Requires agno>=2.0, maximem-synap>=0.2.0.
Quickstart
from agno.agent import Agent
from agno.models.openai import OpenAIChat
from maximem_synap import MaximemSynapSDK
from synap_agno import SynapDb
sdk = MaximemSynapSDK(api_key="sk-...")
agent = Agent(
db=SynapDb(sdk, customer_id="acme"),
model=OpenAIChat(id="gpt-4o-mini"),
enable_user_memories=True,
)
agent.run("Remember that I prefer tea over coffee", user_id="alice")
agent.run("What do you remember about me?", user_id="alice")
Scope
Agno 2.x unifies every persistence concern (sessions, traces, evals, metrics, knowledge, culture, memories) under a single BaseDb with 46+ abstract methods. Synap natively backs only user memories, so SynapDb:
- Extends Agno's
InMemoryDb - Overrides user-memory methods (
upsert_user_memory,get_user_memory,get_user_memories,get_all_memory_topics) to route through Synap - Leaves sessions, traces, evals, metrics, knowledge, and culture in-process (inherited from
InMemoryDb)
Need durable sessions or traces? Use SqliteDb / PostgresDb from Agno directly — this package is scoped to memory specifically.
Error policy
- Reads (
get_user_memory,get_user_memories,get_all_memory_topics) degrade gracefully — SDK failures log atERRORand return empty results. - Writes (
upsert_user_memory,upsert_memories) surfaceSynapIntegrationErrorso ingestion outages are observable. - Deletes (
delete_user_memory,delete_user_memories,clear_memories) warn once and no-op — Synap has no public delete API. Same contract used by synap-crewai. - Stats (
get_user_memory_stats) warns once and returns([], 0)— Synap doesn't expose aggregate counts.
Release files for maximem-synap-agno 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| maximem_synap_agno-0.2.0.tar.gz | 8.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| maximem_synap_agno-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.7 kB
Release files / maximem_synap_agno-0.2.0.tar.gz
| Download URL | maximem_synap_agno-0.2.0.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d7d6c5b837c5af9695bd45e3f8f7969e8ef38a7f380350c56f13be0cc0cf4361
|
|
BLAKE2b-256 checksum How to use checksums |
b4bb7f46891e03be20dc5a2acdad1bab6a244d943f919e959450ad430a8dce6b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / maximem_synap_agno-0.2.0-py3-none-any.whl
| Download URL | maximem_synap_agno-0.2.0-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
69b1f54ec542d693f66f3af8a2795732f5d97167bfa724d64bdccd782c5d0a60
|
|
BLAKE2b-256 checksum How to use checksums |
b95be7602096f6ffc6fa3b6d4cc44bbd42a3212df318042246eea67de9b394dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|