Skip to main content

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.

PyPI version Documentation GitHub


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

API Overview

Endpoints Summary

  • POST /api/v1/memory — Create memory
  • GET /api/v1/memory — List memories
  • GET /api/v1/memories/{id} — Get by ID
  • PATCH | PUT /api/v1/memories/{id} — Update
  • DELETE /api/v1/memories/{id} — Delete
  • GET /api/v1/memory/search — Search
  • POST /api/v1/memory/batch — Batch (Beta)

Auth: Bearer token in the Authorization header.

Field Mapping Note

  • SDK uses: data field in MemoryCreate (more intuitive for developers)
  • API expects: content field (SDK automatically converts datacontent)
  • Deprecated: subject is ignored by the API. Use thread_id, tags, or metadata for 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sovant-1.0.4.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sovant-1.0.4-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

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

Hashes for sovant-1.0.4.tar.gz
Algorithm Hash digest
SHA256 4d385615c7f82fae1c6b0184ddc32072db15fb4ca360c3782778003b363831b1
MD5 68d4c7d7bfb21072776b68ef68b3bd91
BLAKE2b-256 1474a42a474ffd96f4e3c6962ad34d6b6e7be032534d9b712c519d98fe173c6b

See more details on using hashes here.

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

Hashes for sovant-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9cdf84dcd56aea1aff879c01f86762eed0cd14c9aa9fd6e36b74287004f2addd
MD5 39a21eaec6b8c8302935c4f982c2c3c6
BLAKE2b-256 dc84376deaafbc5a80e6d639527b323eeff2e0b95a4927dc1daeebfc57d1ff58

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page