Hi, I am playing around with LangGraph templates, and I’ve noticed some issues with runtime.context
. As a default since langgraph>0.6.1, this context is None
so it can’t be accessed without being set (in version 0.6.0 which introduced this feature, it seems that it was initialized to an empty dictionary but not in later versions.
This will lead the basic template to fail with an error, I’ve documented the issue here: Runtime context is not initialized as a default · Issue #14 · langchain-ai/new-langgraph-project · GitHub
My problem is that setting context seems to be done at invokation time: however, when using langgraph dev
, I don’t have control on the invoke
call.
Documentation about context showing the invoke
call with a context
param : Context overview - Docs by LangChain and Runtime.
How can I initialize the context when using LangGraph CLI?