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

latest releases: @langchain/neo4j@0.1.32, @langchain/xai@1.5.5, @langchain/together-ai@0.2.24...
46 minutes ago

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.

Don't miss a new langchainjs release

NewReleases is sending notifications on new releases.