Sovant Memory-as-a-Service Python SDK
Project description
Sovant Python SDK
AI Infrastructure: Memory-as-a-Service for AI systems.
The official Python client for the Sovant Memory API.
What is Sovant?
Sovant is an AI infrastructure company providing the memory layer for AI systems.
Our platform makes it simple to persist, search, and manage conversational/context data securely across sessions, channels, and applications.
- Problem: Most AI systems forget once a session ends → compliance risk, knowledge loss, poor UX.
- Solution: Sovant provides a Memory-as-a-Service API — store, retrieve, and search memories with audit-ready controls.
- Built for: Developers & enterprises building AI agents, copilots, or compliance-driven apps that need persistent context.
Installation
pip install sovant
60-Second Quickstart
from sovant import Sovant, MemoryCreate, SearchQuery
client = Sovant(api_key="YOUR_API_KEY")
# Create a memory (SDK uses 'data' field, automatically converts to 'content' for API)
created = client.memory_create(MemoryCreate(
data="User prefers morning meetings", # Note: 'data' field (not 'content')
type="preference",
tags=["customer:123"],
# metadata={"source": "crm"},
# thread_id="00000000-0000-0000-0000-000000000000",
))
print(created)
# Search memories
results = client.memory_search(SearchQuery(
query="meeting preferences",
topK=3,
# tags=["customer:123"],
# thread_id="...",
))
print(results)
Features
- Memory CRUD — create, retrieve, update (PATCH/PUT), delete
- Semantic Search — full-text/semantic with topK and filters
- Threads — group related memories via thread_id (REST API)
- Batch Operations (Beta) — atomic multi-operation requests
- Compliance-ready — audit trails, PDPA/GDPR-friendly design
- SDKs — official Python & TypeScript clients + REST reference
SDKs & Documentation
- Python (this package) on PyPI: https://pypi.org/project/sovant/
- TypeScript on npm: https://www.npmjs.com/package/@sovant/sdk
- REST API Reference: https://sovant.ai/docs/api
- Full Documentation: https://sovant.ai/docs
API Overview
Endpoints Summary
POST /api/v1/memory— Create memoryGET /api/v1/memory— List memoriesGET /api/v1/memories/{id}— Get by IDPATCH | PUT /api/v1/memories/{id}— UpdateDELETE /api/v1/memories/{id}— DeleteGET /api/v1/memory/search— SearchPOST /api/v1/memory/batch— Batch (Beta)
Auth: Bearer token in the Authorization header.
Field Mapping Note
- SDK uses:
datafield in MemoryCreate (more intuitive for developers) - API expects:
contentfield (SDK automatically convertsdata→content) - Deprecated:
subjectis ignored by the API. Usethread_id,tags, ormetadatafor grouping.
Status of Advanced Features
- Batch API: Available, marked Beta (contract may evolve).
- Threads: Fully supported via REST API.
- Webhooks / Personalization / Multi-Channel Sync: Coming soon.
Versioning & Changelog
- Stable baseline: 1.0.3
- See CHANGELOG.md in the repo for details.
License
MIT © Sovant AI
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 Distribution
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 sovant-1.0.4.tar.gz.
File metadata
- Download URL: sovant-1.0.4.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d385615c7f82fae1c6b0184ddc32072db15fb4ca360c3782778003b363831b1
|
|
| MD5 |
68d4c7d7bfb21072776b68ef68b3bd91
|
|
| BLAKE2b-256 |
1474a42a474ffd96f4e3c6962ad34d6b6e7be032534d9b712c519d98fe173c6b
|
File details
Details for the file sovant-1.0.4-py3-none-any.whl.
File metadata
- Download URL: sovant-1.0.4-py3-none-any.whl
- Upload date:
- Size: 13.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9cdf84dcd56aea1aff879c01f86762eed0cd14c9aa9fd6e36b74287004f2addd
|
|
| MD5 |
39a21eaec6b8c8302935c4f982c2c3c6
|
|
| BLAKE2b-256 |
dc84376deaafbc5a80e6d639527b323eeff2e0b95a4927dc1daeebfc57d1ff58
|