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

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

Built distribution (wheel)

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

Total release size: 6.9 kB

Release files / memorydb_langchain-0.2.6.tar.gz

Download URL memorydb_langchain-0.2.6.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e40afe16deeaf4f6846c1e600e57731e5ee350e4b07aa24c6b8181219f3d25fd
BLAKE2b-256 checksum
How to use checksums
f2d9cb5fba1e7a4e351004a7f679cd90807e7560e94982a83e4a91c208da7913
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 5, 2026.

Transparency log

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

Download URL memorydb_langchain-0.2.6-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
12dcd3333f72898f45b5384623ef47865bc162d8737cc9906282277a22a4ad65
BLAKE2b-256 checksum
How to use checksums
2cad9a1d7f73bae5df3032721bb0b9aa80bdf2feeeceaadbbae20951cc798708
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 5, 2026.

Transparency log

Security for memorydb-langchain 0.2.6

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.6.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 5, 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