Skip to main content

Temporal memory engine for AI agents

Project description

Sparsion

Temporal memory engine for AI agents. Python SDK backed by a Rust core.

from sparsion import Runtime

rt = Runtime("./agent.db")
rt.record("user", "decision", "Switch to Svelte", importance="critical")
rt.record("user", "observation", "Build takes 12s")

memories = rt.query(limit=5)
for m in memories:
    print(f"[{m['tier']}] {m['content']} (salience: {m['salience']:.2f})")

result = rt.sweep()
print(f"Swept {result['total_processed']} memories, forgot {result['forgotten']}")

See the main repo for full docs.

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

sparsion-0.2.0.tar.gz (24.5 kB view details)

Uploaded Source

Built Distribution

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

sparsion-0.2.0-cp311-cp311-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.11Windows x86-64

File details

Details for the file sparsion-0.2.0.tar.gz.

File metadata

  • Download URL: sparsion-0.2.0.tar.gz
  • Upload date:
  • Size: 24.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.12.6

File hashes

Hashes for sparsion-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3c5e0a25826ddbece2b8e44182dfffdc6235b9d97c817f6a3ae96f27f0f94302
MD5 e9be8ff40c12021d94bf658f9e89f7d6
BLAKE2b-256 a282a3e2c54d82c4e01ae4ad9f21a80205b17540b8788638e30a3452c24211da

See more details on using hashes here.

File details

Details for the file sparsion-0.2.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for sparsion-0.2.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ec32b6ae5d6e57d895e7e08afcb85ea8e844a951b722cd03f0c6e9abea44cc8d
MD5 bf575410a6245fff61231b6e4ecd1d12
BLAKE2b-256 21245b3fa1ecef9862c4ce4a436b6c6fe906b64fc305df574736e3fd95a5a1b3

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