Skip to content

@langchain/core@1.3.7

Choose a tag to compare

@github-actions github-actions released this 10 Nov 18:39
· 16 commits to main since this release
a5f7f6a

Patch Changes

  • #12120 a4fb396 Thanks @thushanth-bengre-langchain! - feat(core): add a standard refusal content block and ModelRefusalError

    Model refusals from OpenAI, Anthropic, and Gemini now appear as a refusal content block in message.contentBlocks. JSON, tool-call, and structured output parsers throw ModelRefusalError (from @langchain/core/errors) when the model refuses, instead of a generic parsing error.