-
Type:
Build Failure
-
Resolution: Fixed
-
Priority:
Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
-
🔵 Done
-
Python Drivers
-
Not Needed
-
-
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"