mirror of
https://github.com/hwchase17/langchain.git
synced 2026-01-25 22:49:59 +00:00
We want state schema as the input schema to middleware nodes because the conditional edges after these nodes need access to the full state. Also, we just generally want all state passed to middleware nodes, so we should be specifying this explicitly. If we don't, the state annotations used by users in their node signatures are used (so they might be missing fields).