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.1.0.tar.gz (19.4 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.1.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.1.0.tar.gz.

File metadata

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

File hashes

Hashes for sparsion-0.1.0.tar.gz
Algorithm Hash digest
SHA256 598c80835c1786d6ee6d71482e66bf206885631a8ed46b4cc5ac8e68aebcb44b
MD5 f93de75363920c6672249bebd9018727
BLAKE2b-256 89cadf3aea19b790740d1e5d52e9a07135f18d1b1f29f50408fb14fe7bf27763

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sparsion-0.1.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d674298f53058edf762a080f2163a7c5996688e1481ceb548383a49a7a826d85
MD5 0ceb30abcedf01d7a62b96fe539fc2ca
BLAKE2b-256 92c8d21fed8d163a4c22015f9088e741470f300306da05cafb38ca7934922825

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