Skip to content

@langchain/core@1.4.0

Choose a tag to compare

@github-actions github-actions released this 11 Nov 22:02
609cc46

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.