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 release: 1.0.5
  • 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.5.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.5-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file sovant-1.0.5.tar.gz.

File metadata

  • Download URL: sovant-1.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 93fd5b144a6d99b2ff190a45a2c300e83665a5d65a27946c096ec33fa9dfa5ef
MD5 26f3a96ad650f231ca36137d43aba75e
BLAKE2b-256 67ff90c948daada5d7e8b9ea27ea269f424be856b4678f2928221aa787d85fc6

See more details on using hashes here.

File details

Details for the file sovant-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: sovant-1.0.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 712efc38f248f6d5705a4d4701d1a3e2bb26f204ed12d261c3291d43afc1026e
MD5 58ab2afc46cd5a3efcebbddf73e2c61f
BLAKE2b-256 b07d3835b130b43bb4da835d09ac0cf0480a5055331659d8b87a1818a968e9ec

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