Replies: 1 comment
-
cc @vbarda would be good to fix |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
As per python documentation, python allows usage of
Annotated
,NotRequired
,ReadOnly
, and other modifications in arbitrary nesting order.As far as I see, this isn't documented anywhere, but
LangGraph
completely breaks whenAnnotated
is not the outermost modifier:Performing fan-in by appending to
MyGoodState["foo_list"]
:No errors
Performing fan-in by appending to
MyBadState["foo_list"]
:langgraph.errors.InvalidUpdateError: At key 'foo_list': Can receive only one value per step. Use an Annotated key to handle multiple values. For troubleshooting, visit: https://python.langchain.com/docs/troubleshooting/errors/INVALID_CONCURRENT_GRAPH_UPDATE
In the same documentation fragment i linked before, they acknowledge that some libraries may break, that's why I'm not opening this as an issue, but as a feature request.
Beta Was this translation helpful? Give feedback.
All reactions