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

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

Built distribution (wheel)

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

Total release size: 6.8 kB

Release files / memorydb_langchain-0.2.3.tar.gz

Download URL memorydb_langchain-0.2.3.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d83ae377067ce202c2bfbe591c1a72c7579ce933de1138ce0390d6420ab8ca65
BLAKE2b-256 checksum
How to use checksums
efa4f8c0329777a8e0996a34761e522bc9cb374e1834815435876ad09e36cda5
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.3-py3-none-any.whl

Download URL memorydb_langchain-0.2.3-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b5d6bfb7bd507d887c2c937ccf89b42151e37eae6e0fcb70571559772f11a1a7
BLAKE2b-256 checksum
How to use checksums
8581ca0a919a9b3238346ad18a496a95470df1452ea9c10a21d4f3351cde4d23
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.3

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