[LangGraph] Checkpointer does NOT persist custom properties from configurable in LangGraph 6.x

XMLWordPrintableJSON

    • Type: Build Failure
    • Resolution: Fixed
    • Priority: Unknown
    • Affects Version/s: None
    • Component/s: None
    • None
    • 🔵 Done
    • Python Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Reported by user in https://github.com/langchain-ai/langchain-mongodb/issues/191.

              checkpointer = AsyncMongoDBSaver(
                  client=async_mongodb_client, db_name=settings.MEMORY_DB_NAME
              )
      
      
              # Create the state graph
              state_graph: StateGraph = state_graph()
      
              # Compile the state graph with the provided checkpointing mechanism
              compiled_state_graph = state_graph.compile(checkpointer=checkpointer)
      
              # Define configuration with thread ID and assistant ID
              config: RunnableConfig = {
                  "configurable": {
                      "thread_id": thread_id,
                      "assistant_id": assistant_id,
                      "user_id": user_id,
                  }
              }
      
              messages = [human_message]
      
              # Invoke the compiled state graph with user input
              message_data = await compiled_state_graph.ainvoke(
                  input={"messages": messages},
                  config=config,
                  stream_mode="values",
                  debug=False,
              )
      

      "since upgrade to LangGraph 0.6.*, AsyncMongoDBSaver no longer persist custom props coming from configurable in meta"

              Assignee:
              Steve Silvester
              Reporter:
              Steve Silvester
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: