github langchain-ai/langchainjs langchain@1.5.14

latest releases: @langchain/neo4j@0.1.22, @langchain/xai@1.4.15, @langchain/together-ai@0.2.15...
6 hours ago

Patch Changes

  • #11712 34edee1 Thanks @blove! - createAgent no longer ends the run when a returnDirect tool fails. A tool error, including arguments that fail the tool's schema, now goes back to the model so it can correct the call and retry; the run still ends on the first successful returnDirect result. Error ToolMessages produced by the tool node now carry status: "error", and a ToolMessage returned from a custom handleToolErrors function defaults to that status when it sets none.

Don't miss a new langchainjs release

NewReleases is sending notifications on new releases.