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@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.
Tool-call
id,nameandindexare sent oncontent-block-start, which carries no args; anidornamearriving later reaches consumers oncontent-block-finish.Tool-call args stream as new
tool-call-deltaslices instead ofblock-deltasnapshots; consumers reading raw events or transforming agent streams must handle the new event.When aborted during streaming with streaming callback handlers, invoke() throws ModelAbortError with accumulated partialOutput; an already-aborted signal is checked before generation.
Security 2
LangChain: MongoDBChatMessageHistory query injection can allow cross-session access
LangChain: RediSearch Filter Injection via Unescaped Tag/Text Values
New APIs and options 9
Accepts additionalModelResponseFieldPaths as a constructor and call option, forwarding it to Converse and ConverseStream.
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.
Add direct routing for Bedrock Converse and Vertex AI chat models through LANGSMITH_GATEWAY.
Bedrock Converse now supports native streamEvents events.
Adds defaultHeaders to ChatBedrockConverse.
Adds bedrockApiKey, bedrockApiSecret, and bedrockApiSessionToken constructor fields for passing AWS credentials directly, with environment-variable fallbacks; an explicit credentials field retains highest priority.
Structured output now supports standard schemas.
The Converse API now supports the Priority, Standard, and Flex AWS Bedrock service tiers.
Adds support for using a Bedrock Application Inference Profile.
Behavior and default changes 3
File names are imputed for document content blocks.
Input messages support standard multimodal video and audio blocks, converted to Bedrock's native format, and native Bedrock blocks pass through unchanged.
Each package stamps its version into runnable metadata at construction time, making version information available in LangSmith trace metadata.
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.
Text block indices are preserved when streaming.
Retry classification is fixed for AWS HTTP errors and content-filter failures, while ThrottlingException and ModelNotReadyException remain retryable.
Native Bedrock Converse stream events preserve reasoning signatures so streamed messages can be replayed in subsequent requests.
Uses this.caller so maxRetries, timeout, and onFailedAttempt are supported.
Adds claude-sonnet-5, claude-opus-5, and claude-haiku-5 to the model values supported for tool choice.
Stream-idle timeout errors now set lc_error_code directly on the error, so a plain error.lc_error_code check can detect them.
The streamIdleTimeout watchdog now covers the wait before the initial response, as well as gaps between stream chunks.
Standard reasoning blocks preserve signatures; replay omits incomplete signature-only reasoning while retaining compatibility with legacy and redacted Bedrock reasoning.
A default idle timeout prevents stalled Bedrock Converse response bodies from hanging forever.
Adds support for Bedrock bearer token authentication.
Adds claude-haiku-4 to the models supporting tool choice.
Preserves Bedrock tool call identity in callback-streamed chunks.
Bedrock Converse object errors are normalized for tracing.
When aborted, stream() throws a regular AbortError; streaming loops now check abort signals and return early.
Cache points in ToolMessage are mapped outside the tool result content block.
Reasoning tokens are now properly elevated.
The standard content trigger is now targeted appropriately.
Adds support for Amazon Nova embedding models.
Fixes handling of multiple tool types in convertToConverseTools.
@langchain/aws 0.32 changes
Security 1
Fixes CVE-2025-12735.
Fixes and other changes 1
Fixes the default temperature option in v0/anthropic.
@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.
Adds an endpoint to delete custom model prices from a workspace; default prices cannot be deleted, and existing run costs are not recomputed.
Adds a PUT endpoint to replace a workspace custom model-price entry with a full request body; omitted optional fields reset to defaults.
Adds an endpoint that resolves an AGENT, EXPERIMENT, or EVALUATOR address to its tracing project session ID.
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.