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.2

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.2
File Size Uploaded Provenance Actions
memorydb_langchain-0.2.2.tar.gz 3.2 kB With provenance Details for memorydb_langchain-0.2.2.tar.gz

Built distribution (wheel)

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

Total release size: 6.8 kB

Release files / memorydb_langchain-0.2.2.tar.gz

Download URL memorydb_langchain-0.2.2.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
46b3c7f7937c4a5984a178f6904344d17221658ac020ad59377e6b4839c4d449
BLAKE2b-256 checksum
How to use checksums
cd382631e08be848dbc0c49dc407df6456684ebf5429c5c1d81b933f5554c34f
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.2-py3-none-any.whl

Download URL memorydb_langchain-0.2.2-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2073a3f0ea4e321a48de4075c0702a8ef428de039d8425bded1f6238df31a937
BLAKE2b-256 checksum
How to use checksums
128630226b9e8a461a12fba4cfb124a74f593e6dc46809a09a1efed829db963a
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.2

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.2.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