Skip to main content

memorydb-langchain

LangChain chat message history backed by MemoryDB, so agent conversations survive process restarts and stay searchable alongside the facts you ingest from them.

pip install memorydb-langchain
export MEMORYDB_URL=memorydb://TOKEN@127.0.0.1:8080
from memorydb import MemoryDB
from memorydb_langchain import MemoryDBChatMessageHistory
from langchain_core.messages import HumanMessage, AIMessage

history = MemoryDBChatMessageHistory(session_id="user-42", client=MemoryDB())
history.add_message(HumanMessage("What is the capital of Rajasthan?"))
history.add_message(AIMessage("Jaipur."))
history.messages          # [HumanMessage, AIMessage]
history.clear()

Every append writes a new immutable revision of one record rather than rewriting a table, so the server keeps the full trail:

db = MemoryDB()
db.objects.history(pk=history.record_id)   # versions 1..n, oldest first, a free audit log

Use one principal (token) per deployed product so sessions of different products land in different workspaces, and give each end-user their own session_id. Search the whole history with db.objects.search("Jaipur"), including hybrid BM25 + vector ranking.

Metadata

Release files for memorydb-langchain 0.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for memorydb-langchain 0.2.5
File Size Uploaded Provenance Actions
memorydb_langchain-0.2.5.tar.gz 3.2 kB With provenance Details for memorydb_langchain-0.2.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for memorydb-langchain 0.2.5
File Interpreter ABI Platform Actions
memorydb_langchain-0.2.5-py3-none-any.whl Python 3 none any Details for memorydb_langchain-0.2.5-py3-none-any.whl

Total release size: 6.8 kB

Release files / memorydb_langchain-0.2.5.tar.gz

Download URL memorydb_langchain-0.2.5.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4f78196e1b5cb2847b9744e76ec1f392f860cf0d5613a431b4ebab8c5302b461
BLAKE2b-256 checksum
How to use checksums
d6cecc48b60a3015eda7960c731e41636615f4f6f68120073d71b85d5968fe34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Release files / memorydb_langchain-0.2.5-py3-none-any.whl

Download URL memorydb_langchain-0.2.5-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be8112cb4847e54d362083d4d7646dd1dc41775a97969ad4cbbd98ffac73fef0
BLAKE2b-256 checksum
How to use checksums
8e058beb46c29d70c4a7cc2b65743996647b9df20f6f825f209710492aa6ae6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Security for memorydb-langchain 0.2.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for memorydb_langchain-0.2.5.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page