Skip to main content

Bitemporal long-term memory for AI agents with point-in-time recall, tamper-evident audit trails, and GDPR crypto-erasure

Project description

Lians logo

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]         # Zero-setup SQLite mode
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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lians_sdk-0.4.1.tar.gz (198.1 kB view details)

Uploaded Source

Built Distribution

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

lians_sdk-0.4.1-py3-none-any.whl (238.8 kB view details)

Uploaded Python 3

File details

Details for the file lians_sdk-0.4.1.tar.gz.

File metadata

  • Download URL: lians_sdk-0.4.1.tar.gz
  • Upload date:
  • Size: 198.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lians_sdk-0.4.1.tar.gz
Algorithm Hash digest
SHA256 25515ba733fe4c125e73f674a385d32d02d1b6556b94b0f85e8c9f8e0bb116c6
MD5 1234f3b81535a6ff2fad5d349576246f
BLAKE2b-256 3761b8189d74a1257cb8bcfb10123090dc0098528cb484fc0cce75acf4857004

See more details on using hashes here.

Provenance

The following attestation bundles were made for lians_sdk-0.4.1.tar.gz:

Publisher: publish-lian.yml on Lians-ai/Lians

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lians_sdk-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: lians_sdk-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 238.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lians_sdk-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a33a6a2701a759b354ebff655b3ee60898d018a7b06cedfdb5da0acd6acff169
MD5 b5a71c3a75523a05c0b158e98faae7b7
BLAKE2b-256 22e5f526bdb50c7efa121c181141291e58139fc4c35b91000b52622d50f97cd3

See more details on using hashes here.

Provenance

The following attestation bundles were made for lians_sdk-0.4.1-py3-none-any.whl:

Publisher: publish-lian.yml on Lians-ai/Lians

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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