Bitemporal long-term memory for AI agents with point-in-time recall, tamper-evident audit trails, and GDPR crypto-erasure
Project description
Lians
Bitemporal long-term memory for AI agents. Keep current facts clean, reconstruct what an agent knew at a past time, and retain tamper-evident audit records.
Install
pip install lians-sdk
pip install lians-sdk[local] # SQLite plus real local semantic embeddings
pip install lians-sdk[mcp] # Local MCP server
pip install lians-sdk[langchain] # LangChain
pip install lians-sdk[langgraph] # LangGraph
pip install lians-sdk[crewai] # CrewAI
pip install lians-sdk[openai-agents] # OpenAI Agents SDK
pip install lians-sdk[autogen] # AutoGen v0.4
pip install lians-sdk[all] # Everything
Quickstart
from datetime import datetime, timezone
from lians import LocalLiansClient
mem = LocalLiansClient() # No server, Docker, or API key
mem.add(
agent_id="analyst-1",
content="NVDA FY2026 revenue guidance raised to $40B",
event_time=datetime(2025, 11, 19, 16, tzinfo=timezone.utc),
metadata={"ticker": "NVDA", "metric": "revenue_guidance"},
importance=0.9,
)
# Superseded facts are excluded before they reach the model
current = mem.recall(agent_id="analyst-1", query="NVDA revenue guidance")
# Reconstruct what was known on a past date
past = mem.recall_at(
agent_id="analyst-1",
query="NVDA revenue guidance",
as_of=datetime(2025, 3, 1, tzinfo=timezone.utc),
)
Why Lians
- Bitemporal facts with event time and ingestion time
- Deterministic supersession before memories reach the model
- Point-in-time recall and lookahead-bias checks
- Tamper-evident audit history and a crypto-erasure workflow
- Local SQLite mode with no server or API key
- Hosted and self-hosted deployment paths
See the published benchmark results, regulated-memory evaluation, and public correction ledger. The evaluation includes runnable adapters so results can be reproduced and challenged.
Framework integrations
from lians.langchain_integration import LiansChatHistory, build_tools
from lians.langgraph_integration import create_recall_node, create_remember_node
from lians.crewai_integration import build_crewai_tools
from lians.openai_agents_integration import build_openai_agent_tools
from lians.autogen_integration import build_autogen_tools
Hosted or self-hosted API
from lians import LiansClient
mem = LiansClient(base_url="https://mem.yourfirm.internal", api_key="...")
Full documentation: github.com/Lians-ai/Lians
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lians_sdk-0.4.2.tar.gz.
File metadata
- Download URL: lians_sdk-0.4.2.tar.gz
- Upload date:
- Size: 198.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
806c0f65f3070b13b5825c461098f2f90817dde972e499eb5c871614589a6fe7
|
|
| MD5 |
77cd57f170a910a7c1052c4647c43a20
|
|
| BLAKE2b-256 |
092d57f3c012f214a6721172a53840d752a369b2ca602906e68e8bfffbb2ecb7
|
Provenance
The following attestation bundles were made for lians_sdk-0.4.2.tar.gz:
Publisher:
publish-lian.yml on Lians-ai/Lians
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lians_sdk-0.4.2.tar.gz -
Subject digest:
806c0f65f3070b13b5825c461098f2f90817dde972e499eb5c871614589a6fe7 - Sigstore transparency entry: 2193225789
- Sigstore integration time:
-
Permalink:
Lians-ai/Lians@30e4c63ccc0bbb2af4f16aa9e963e58dd2c1025f -
Branch / Tag:
refs/tags/lians-v0.4.2 - Owner: https://github.com/Lians-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-lian.yml@30e4c63ccc0bbb2af4f16aa9e963e58dd2c1025f -
Trigger Event:
push
-
Statement type:
File details
Details for the file lians_sdk-0.4.2-py3-none-any.whl.
File metadata
- Download URL: lians_sdk-0.4.2-py3-none-any.whl
- Upload date:
- Size: 238.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c51142cd4883277e7cd2c948baaab9de72e7302314dd1800a16f7470ff4c3761
|
|
| MD5 |
c395bbe641bec2e6d4c53ed138f290cd
|
|
| BLAKE2b-256 |
cfe52ab221608711aa7e7f2801caf91ddf1bad7aaabb68dd9c44e1a7fcfd9e10
|
Provenance
The following attestation bundles were made for lians_sdk-0.4.2-py3-none-any.whl:
Publisher:
publish-lian.yml on Lians-ai/Lians
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lians_sdk-0.4.2-py3-none-any.whl -
Subject digest:
c51142cd4883277e7cd2c948baaab9de72e7302314dd1800a16f7470ff4c3761 - Sigstore transparency entry: 2193225796
- Sigstore integration time:
-
Permalink:
Lians-ai/Lians@30e4c63ccc0bbb2af4f16aa9e963e58dd2c1025f -
Branch / Tag:
refs/tags/lians-v0.4.2 - Owner: https://github.com/Lians-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-lian.yml@30e4c63ccc0bbb2af4f16aa9e963e58dd2c1025f -
Trigger Event:
push
-
Statement type: