You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

langgraph-checkpoint-firestore

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

langgraph-checkpoint-firestore

Google Firestore checkpoint saver implementation for LangGraph

0.1.6
pipPyPI
Maintainers
1

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.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.