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.3.0.tar.gz (31.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.3.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.3.0.tar.gz.

File metadata

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

File hashes

Hashes for sparsion-0.3.0.tar.gz
Algorithm Hash digest
SHA256 2ba58c794a6c2f352f3fa8faf0bd2f774d6ad0e008e8d9598b6ff1c9744d3116
MD5 209bba3bc36e86a82ddb90aa7c3ed8f7
BLAKE2b-256 913e0c6f46ae6c6678cbc2500f3fe5eb211fea595a27fd31b3ec80e59ad03af1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sparsion-0.3.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1c1f04c7e51b4ddb376ac347b9721b2b534c56e0fc1cec463d8787ffb66cf210
MD5 9ec8e9fccd54911468c4f686d05ccb94
BLAKE2b-256 ee486f173fd1ed4097bede455ef9d0186b2b614d15b0543e063c475a6c6b5b3b

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