github langchain-ai/langchainjs langchain@1.2.33

latest releases: @langchain/google-webauth@2.1.26, @langchain/openrouter@0.1.7, @langchain/google-vertexai@2.1.26...
9 hours ago

Patch Changes

  • #9862 5b250b1 Thanks @stellarrover! - fix(langchain/agents): Fix ReactAgent routing with returnDirect + beforeModel middleware

    This 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

Don't miss a new langchainjs release

NewReleases is sending notifications on new releases.