Install
What’s included
| Class | Purpose |
|---|---|
SynapStorageBackend | Implements CrewAI’s StorageBackend protocol for persistent memory |
Quick start
How it works
SynapStorageBackend translates CrewAI’s memory calls to Synap’s API:
save(value, metadata)— ingests a memory fragment with optional metadata tagssearch(query, limit, score_threshold)— semantic search, returns ranked resultslist_records(limit)— returns recent memories (uses Synap search with a broad query)count()— returns an approximate count via a broad search
delete) are no-ops with a warning.
Async-first
CrewAI 0.100+ supports async task execution.SynapStorageBackend exposes asearch for use in async crews:
search method wraps asearch via an event loop bridge, so it works in both sync and async contexts.
Next steps
AutoGen
Tool implementations for AutoGen agents.
Pydantic AI
Deps and tools for Pydantic AI.