You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently working on defining a graph with separate schemas for input, output, and additional state using StateGraph. Below is a simplified flow illustrating the issue:
START -> FirstNode -> [dummy-conditional-edge] -> LastNode -> END
The graph contains InputDefinition, OutputDefinition, and an additional state field in InnerNodesDefinition, all merged into GraphDefinition.
It seems like the state isn't passed correctly to the route function when splitting input, output, and state schemas. Could this be a bug, or am I missing something in the schema definition? Any insights would be appreciated!
The text was updated successfully, but these errors were encountered:
langgraph version 0.2.8
I'm currently working on defining a graph with separate schemas for input, output, and additional state using
StateGraph
. Below is a simplified flow illustrating the issue:The graph contains
InputDefinition
,OutputDefinition
, and an additional state field inInnerNodesDefinition
, all merged intoGraphDefinition
.Expected console output:
I expect the console output to look like this:
However, the actual output is:
As shown above, the state in the
route
function is empty.Interestingly, when I change the line:
to:
I get the expected output in the
route
node.It seems like the state isn't passed correctly to the route function when splitting input, output, and state schemas. Could this be a bug, or am I missing something in the schema definition? Any insights would be appreciated!
The text was updated successfully, but these errors were encountered: