Persistent memory OS for AI agents
Project description
Synapse SDK
Persistent memory OS for AI agents.
Install
pip install synapse-sdk
Quickstart
from synapse import Synapse
syn = Synapse(api_key="syn-your-key")
# Create a session for your agent
session = syn.create_session("Extract invoices from Gmail and upload to Sheets")
# Save memory after each step
syn.update_step(session, "fetch_emails", "completed", "Fetched 50 emails")
syn.save(session, "emails_fetched", "50")
# Get compressed context for your LLM
context = syn.context(session)
# → [SYNAPSE MEMORY CONTEXT]
# Goal: Extract invoices...
# Completed: fetch_emails
# Next step: parse_invoices
# After any restart — resume exactly where you stopped
result = syn.resume(session)
print(result["resume_from"]) # → {"step_name": "parse_invoices", ...}
Use with any agent framework
# LangChain
from synapse import Synapse
syn = Synapse(api_key="syn-your-key")
session = syn.create_session(task)
# inject context into every LLM call
context = syn.context(session)
response = llm.invoke(context + your_prompt)
# CrewAI, AutoGen, custom — same pattern
API Reference
| Method | Description |
|---|---|
syn.create_session(task) |
Create new agent session |
syn.save(session, key, value) |
Save memory |
syn.update_step(session, step, status) |
Track workflow step |
syn.resume(session) |
Resume after restart |
syn.context(session) |
Get compressed LLM context |
syn.get_memory(session) |
Get all session memory |
syn.run_step(session, step, fn) |
Auto-tracked step execution |
Links
- Dashboard: https://synapse-aii.netlify.app
- API Docs: https://synapse-backend-b5k1.onrender.com/docs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file synapseai_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: synapseai_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b646e2472f88a77bf2dd8a70ff0aa6be8b682b2507bd40b1db4f2e1a94e44e14
|
|
| MD5 |
5d1fe45a3350d3503529a5399e5f2c55
|
|
| BLAKE2b-256 |
917e5181589b72131a78ffb703d57df7baa06e9a7e8e9a9570abae9a70de6186
|