github langchain-ai/langchainjs @langchain/aws@1.5.2

3 hours ago

Patch Changes

  • #12100 dc74e55 Thanks @hntrl! - Replay signed Bedrock reasoning blocks whose text is empty or missing instead of dropping them, so models that omit the thinking summary (e.g. Claude Sonnet 5, which defaults to display: "omitted") no longer fail with an HTTP 400 on the turn after a tool call. A missing text is sent as "", and an empty signature counts as unsigned. Whitespace-only text after reasoning is no longer merged into the reasoning block, and a standard reasoning block split into parts is joined before replay.

  • #12052 8635df6 Thanks @hntrl! - Fix ChatBedrockConverse retry classification for AWS HTTP errors and content-filter failures while keeping ThrottlingException and ModelNotReadyException retryable. Internally created Bedrock clients now default to maxAttempts: 1 so SDK retries do not stack with LangChain retries; explicit clientOptions.maxAttempts values and injected clients remain unchanged.

  • #11905 e81c689 Thanks @mbarinov! - Preserve reasoning signatures in native Bedrock Converse stream events so streamed messages can be replayed in subsequent requests.

  • #11368 55c4edc Thanks @LizunovSergey! - fix(aws): preserve Bedrock text block indices when streaming

Don't miss a new langchainjs release

NewReleases is sending notifications on new releases.