Skip to main content

Google Firestore checkpoint saver implementation for LangGraph

Project description

LangGraph Checkpoint Firestore

This project provides an implementation of a checkpoint saver for LangGraph using Google Firestore.

Features

  • Save and retrieve langgraph checkpoints in Google Firestore.
  • Supports sync and async versions

Installation

To install the package, ensure you have Python 3.9 or higher, and run:

pip install langgraph-checkpoint-firestore

Usage

Setting Up FirestoreSaver

To use the FirestoreSaver, you need to provide google default application authenmtication via environment

Example

python
from langgraph_checkpoint_firestore import FirestoreSaver

Initialize the saver

Collections - write and checkpoint - are created if it does not exists

#memory = FirestoreSaver(project_id=<project_id>, checkpoints_collection='langchain', writes_collection='langchain_writes')
with FirestoreSaver.from_conn_info(project_id=<project_id>, checkpoints_collection='langchain', writes_collection='langchain_writes') as memory:

Limitations

List function does not support filters. You can only pass config on thread id to get the list.

print(list(memory.list(config=config)))

License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langgraph_checkpoint_firestore-0.1.7.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file langgraph_checkpoint_firestore-0.1.7.tar.gz.

File metadata

File hashes

Hashes for langgraph_checkpoint_firestore-0.1.7.tar.gz
Algorithm Hash digest
SHA256 1b99e1399c9c2753330e2aef4fe9650956548f8bb43450381114c50f237324d5
MD5 8c3f192018757c489bf926b061907824
BLAKE2b-256 833f9775289a08c56f9eb0cf948d4f758e5565e11c492425c2dc78215b7b19df

See more details on using hashes here.

File details

Details for the file langgraph_checkpoint_firestore-0.1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for langgraph_checkpoint_firestore-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 ffa7cd68eadbcb5fffe37468ebffb8801d75f6dc8e851dfaae4d5ce5ed3327a0
MD5 5b2414afe5e9a3b3833c149da70dd4b0
BLAKE2b-256 d7dc5dc0e0a20710675656236a48f7d166364ed05bae7a5aadcbc9b0289f4279

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page