unstale

npm / @langchain/aws

@langchain/aws

What changed in @langchain/aws 0.1 to 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

4 breaking3 security14 new APIs and options3 behavior and defaults21 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

@langchain/aws 138 changes

Breaking changes 4

  • Internally created Bedrock clients now default to maxAttempts: 1 to avoid stacking SDK retries with LangChain retries; explicit values and injected clients are unchanged.

    1.5.2release notes

  • Tool-call id, name and index are sent on content-block-start, which carries no args; an id or name arriving later reaches consumers on content-block-finish.

    1.5.0release notes

  • Tool-call args stream as new tool-call-delta slices instead of block-delta snapshots; consumers reading raw events or transforming agent streams must handle the new event.

    1.5.0release notes

  • When aborted during streaming with streaming callback handlers, invoke() throws ModelAbortError with accumulated partialOutput; an already-aborted signal is checked before generation.

    1.2.2release notes

Security 2

  • LangChain: MongoDBChatMessageHistory query injection can allow cross-session access

    1.3.1security advisory

  • LangChain: RediSearch Filter Injection via Unescaped Tag/Text Values

    1.1.1security advisory

New APIs and options 9

  • Accepts additionalModelResponseFieldPaths as a constructor and call option, forwarding it to Converse and ConverseStream.

    1.4.7release notes

  • Maps Anthropic's thinking-token count to this field for invoke(), .stream() and streamEvents() when the native usage field is present; output_tokens remains unchanged.

    1.4.7release notes

  • Add direct routing for Bedrock Converse and Vertex AI chat models through LANGSMITH_GATEWAY.

    1.4.6release notes

  • Bedrock Converse now supports native streamEvents events.

    1.4.0release notes

  • Adds defaultHeaders to ChatBedrockConverse.

    1.3.3release notes

  • Adds bedrockApiKey, bedrockApiSecret, and bedrockApiSessionToken constructor fields for passing AWS credentials directly, with environment-variable fallbacks; an explicit credentials field retains highest priority.

    1.3.2release notes

  • Structured output now supports standard schemas.

    1.3.1release notes

  • The Converse API now supports the Priority, Standard, and Flex AWS Bedrock service tiers.

    1.2.0release notes

  • Adds support for using a Bedrock Application Inference Profile.

    1.1.0release notes

Behavior and default changes 3

  • File names are imputed for document content blocks.

    1.3.4release notes

  • Input messages support standard multimodal video and audio blocks, converted to Bedrock's native format, and native Bedrock blocks pass through unchanged.

    1.3.0release notes

  • Each package stamps its version into runnable metadata at construction time, making version information available in LangSmith trace metadata.

    1.3.0release notes

Fixes and other changes 20

  • Signed reasoning blocks with empty or missing text are replayed instead of dropped; whitespace-only text is kept separate, and split reasoning parts are joined before replay.

    1.5.2release notes

  • Text block indices are preserved when streaming.

    1.5.2release notes

  • Retry classification is fixed for AWS HTTP errors and content-filter failures, while ThrottlingException and ModelNotReadyException remain retryable.

    1.5.2release notes

  • Native Bedrock Converse stream events preserve reasoning signatures so streamed messages can be replayed in subsequent requests.

    1.5.2release notes

  • Uses this.caller so maxRetries, timeout, and onFailedAttempt are supported.

    1.5.1release notes

  • Adds claude-sonnet-5, claude-opus-5, and claude-haiku-5 to the model values supported for tool choice.

    1.4.5release notes

  • Stream-idle timeout errors now set lc_error_code directly on the error, so a plain error.lc_error_code check can detect them.

    1.4.4release notes

  • The streamIdleTimeout watchdog now covers the wait before the initial response, as well as gaps between stream chunks.

    1.4.4release notes

  • Standard reasoning blocks preserve signatures; replay omits incomplete signature-only reasoning while retaining compatibility with legacy and redacted Bedrock reasoning.

    1.4.3release notes

  • A default idle timeout prevents stalled Bedrock Converse response bodies from hanging forever.

    1.4.2release notes

  • Adds support for Bedrock bearer token authentication.

    1.4.1release notes

  • Adds claude-haiku-4 to the models supporting tool choice.

    1.3.9release notes

  • Preserves Bedrock tool call identity in callback-streamed chunks.

    1.3.8release notes

  • Bedrock Converse object errors are normalized for tracing.

    1.3.5release notes

  • When aborted, stream() throws a regular AbortError; streaming loops now check abort signals and return early.

    1.2.2release notes

  • Cache points in ToolMessage are mapped outside the tool result content block.

    1.2.1release notes

  • Reasoning tokens are now properly elevated.

    1.2.0release notes

  • The standard content trigger is now targeted appropriately.

    1.2.0release notes

  • Adds support for Amazon Nova embedding models.

    1.1.1release notes

  • Fixes handling of multiple tool types in convertToConverseTools.

    1.0.2release notes

@langchain/aws 0.32 changes

Security 1

Fixes and other changes 1

  • Fixes the default temperature option in v0/anthropic.

    0.3.58release notes

@langchain/aws 0.15 changes

New APIs and options 5

  • Adds an endpoint to create custom workspace model prices using a match pattern and token costs, with optional provider, time, token-threshold, and token-type pricing details.

    0.1.0docs

  • Adds an endpoint to delete custom model prices from a workspace; default prices cannot be deleted, and existing run costs are not recomputed.

    0.1.0docs

  • Adds a PUT endpoint to replace a workspace custom model-price entry with a full request body; omitted optional fields reset to defaults.

    0.1.0docs

  • Adds an endpoint that resolves an AGENT, EXPERIMENT, or EVALUATOR address to its tracing project session ID.

    0.1.0docs

  • Adds a beta endpoint to create a copy-on-write copy of an existing volume, with a required name and sandbox-volume enablement and access requirements.

    0.1.0docs