Patch Changes
-
#9862
5b250b1Thanks @stellarrover! - fix(langchain/agents): Fix ReactAgent routing with returnDirect + beforeModel middlewareThis fixes a routing error when an agent has both tools with returnDirect: true and middleware with beforeModel hooks (e.g., summarizationMiddleware). Before this fix, non-returnDirect tools would fail with "Branch condition returned unknown or null destination".
-
Updated dependencies [
6db417b,d69dfcc]:- @langchain/core@1.1.33