Uploaded image for project: 'Python Integrations'
  1. Python Integrations
  2. INTPYTHON-377

LangChain: Add support for LangGraph Checkpointing

    • Python Drivers
    • Not Needed

      LangGraph is a new package from Langchain which allows building Agentic applications. For "checkpointing" LangGraph supports SqlLite and PostGresDB currently. We want to add support for MongoDB. This has been requested by a customer (Cisco)

      Interface required:

      • This would be implemented in the langchain_mongodb package and will take the langgraph as a dependency. (even though LangGraph is a separate package from Langchain all the MongoDB specific implementation is requested by the LangChain team to be put into the langchain_mongodb package for now. There is no plan from a langgraph_mongodb type package for now and we want to push that as much into the future as possible)
      • There should be a checkpoint.py file in the langchain_mongodb package
      • The following class and methods are required in langchain_mongodb/checkpoint.py

      class MongoDBSaver(BaseCheckpointSaver):
      Sync methods (required for getting started):
      def get_tuple(self, config: RunnableConfig) -> Optional[CheckpointTuple]:
      def list()
      def put()
      def put_writes()
      Async methods (Required for users going for parallelism in the implementation):
      async def aget_tuple(self, config: RunnableConfig) -> Optional[CheckpointTuple]:
      async def alist()
      async def aput()
      async def aput_writes()

            Assignee:
            casey.clements@mongodb.com Casey Clements
            Reporter:
            prakul.agarwal@mongodb.com Prakul Agarwal
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: