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)["results"]   # versions 1..n, 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.1

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

Built distribution (wheel)

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

Total release size: 6.8 kB

Release files / memorydb_langchain-0.2.1.tar.gz

Download URL memorydb_langchain-0.2.1.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
723b8927adec429ab37f66d7b93c82f3d77791a613c04ece09b739e45c24e7fa
BLAKE2b-256 checksum
How to use checksums
f8cd501ca6208a72d314fd8aa2b7bfcb07a99233100d3442b7816e6daf283f69
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 Oct 31, 2026.

Transparency log

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

Download URL memorydb_langchain-0.2.1-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fdee84e3ad76a5dc345b4e6e07379156e0dff320e4a6f7ca90d15e94e05214f2
BLAKE2b-256 checksum
How to use checksums
3ccb47b740fae8e23ecdc7159b002c32a814c9d1e847875616709622c571ea7f
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 Oct 31, 2026.

Transparency log

Security for memorydb-langchain 0.2.1

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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for memorydb_langchain-0.2.1.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 Oct 31, 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.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files Full provenance

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