github langchain-ai/langchainjs @langchain/core@1.4.0

latest releases: @langchain/neo4j@0.1.33, @langchain/xai@1.5.6, @langchain/typesafe@0.1.0...
one hour ago

Minor Changes

  • #12178 01e5f2d Thanks @thushanth-bengre-langchain! - feat(core): add decision models

    • Add @langchain/core/decisions with BaseDecisionModel, a Runnable that answers typed Noul, Choice, Score, and Box questions about text, messages, or JSON state
    • Add question and answer types, parseQuestions, and parseClassifierResponse for providers
    • Type invoke answers from the questions asked, including Choice labels, and reject provider responses that leave a question unanswered or answer it with the wrong type or label

Patch Changes

  • #12192 9920d4b Thanks @jkennedyvz! - Require Zod 4.6.6 or newer for installed dependencies to exclude versions affected by GHSA-mrhx-c7xc-m3w5. Zod v3 schemas remain supported through the bundled zod/v3 entry point.

Don't miss a new langchainjs release

NewReleases is sending notifications on new releases.