Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions clients/aws-sdk-bedrock-runtime/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

## Unreleased

## v0.1.1

### API Changes
* New stop reason for Converse and ConverseStream

### Enhancements
* Improvements to the underlying AWS CRT HTTP client result in a signifigant decrease in CPU usage. Addresses [aws-sdk-python#11](https://github.com/awslabs/aws-sdk-python/issues/11).

### Dependencies

* **Updated**: `smithy_http[awscrt]` from `~=0.1.0` to `~=0.2.0`.

### Breaking
- Removed unused `serialize.py` and `deserialize.py` modules.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Were these being surfaced publicly through an __all__ or interceptors? I don't actually recall but curious about the scope of this call out.

Copy link
Contributor Author

@jonathan343 jonathan343 Oct 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, the modules exist in v0.1.0 but aren't used by anything. I mainly called it out since someone could technically be doing import aws_sdk_bedrock_runtime.serialize or import aws_sdk_bedrock_runtime.deserialize. The probability of that though is near 0. I have some context in the PR summary about this.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that's fine. I'm asking at a higher level about our public contract with this. It's implying we may have been expecting someone to do this.

We handle these cases in boto3 because we have a very fuzzy contract. We don't want to carry that forward in this product. It should be extremely clear what is a public interface and then we treat everything else as private.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I see, I think you saying these should have originally been _serialize.py and _deserialize.py so it's clear to customers these are internal only and shouldn't be used directly. I agree


Expand Down
2 changes: 1 addition & 1 deletion clients/aws-sdk-bedrock-runtime/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

project = "Amazon Bedrock Runtime"
author = "Amazon Web Services"
release = "0.1.0"
release = "0.1.1"

extensions = ["sphinx.ext.autodoc", "sphinx.ext.viewcode"]

Expand Down
7 changes: 4 additions & 3 deletions clients/aws-sdk-bedrock-runtime/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

[project]
name = "aws_sdk_bedrock_runtime"
version = "0.1.0"
version = "0.1.1"
description = "aws_sdk_bedrock_runtime client"
readme = "README.md"
requires-python = ">=3.12"
Expand All @@ -19,13 +19,14 @@ classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13"
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14"
]

dependencies = [
"smithy_aws_core[eventstream, json]~=0.1.0",
"smithy_core~=0.1.0",
"smithy_http[awscrt]~=0.1.0"
"smithy_http[awscrt]~=0.2.0"
]

[dependency-groups]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Code generated by smithy-python-codegen DO NOT EDIT.

__version__: str = "0.1.0"
__version__: str = "0.1.1"
Original file line number Diff line number Diff line change
Expand Up @@ -3124,6 +3124,15 @@
Trait.new(id=ShapeID("smithy.api#enumValue"), value="content_filtered")
],
},
"MODEL_CONTEXT_WINDOW_EXCEEDED": {
"target": UNIT,
"traits": [
Trait.new(
id=ShapeID("smithy.api#enumValue"),
value="model_context_window_exceeded",
)
],
},
},
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5694,6 +5694,9 @@ def _consumer(schema: Schema, de: ShapeDeserializer) -> None:
ShapeID(
"com.amazonaws.bedrockruntime#ServiceQuotaExceededException"
): ServiceQuotaExceededException,
ShapeID(
"com.amazonaws.bedrockruntime#ServiceUnavailableException"
): ServiceUnavailableException,
ShapeID(
"com.amazonaws.bedrockruntime#ThrottlingException"
): ThrottlingException,
Expand Down Expand Up @@ -10213,6 +10216,7 @@ class StopReason(StrEnum):
STOP_SEQUENCE = "stop_sequence"
GUARDRAIL_INTERVENED = "guardrail_intervened"
CONTENT_FILTERED = "content_filtered"
MODEL_CONTEXT_WINDOW_EXCEEDED = "model_context_window_exceeded"


def _serialize_guardrail_assessment_map(
Expand Down
5 changes: 3 additions & 2 deletions clients/aws-sdk-python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13"
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14"
]
dependencies = []

[project.optional-dependencies]
bedrock_runtime = ["aws_sdk_bedrock_runtime==0.1.0"]
bedrock_runtime = ["aws_sdk_bedrock_runtime==0.1.1"]
all = [
"aws_sdk_python[bedrock_runtime]",
]
Expand Down
2 changes: 1 addition & 1 deletion clients/aws-sdk-python/src/aws_sdk_python/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
__version__ = "0.1.0"
__version__ = "0.1.1"


# TODO: Consider adding relative imports for services from the top level namespace?
9 changes: 9 additions & 0 deletions codegen/aws-models/bedrock-runtime.json
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,9 @@
{
"target": "com.amazonaws.bedrockruntime#ServiceQuotaExceededException"
},
{
"target": "com.amazonaws.bedrockruntime#ServiceUnavailableException"
},
{
"target": "com.amazonaws.bedrockruntime#ThrottlingException"
},
Expand Down Expand Up @@ -6048,6 +6051,12 @@
"traits": {
"smithy.api#enumValue": "content_filtered"
}
},
"MODEL_CONTEXT_WINDOW_EXCEEDED": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "model_context_window_exceeded"
}
}
}
},
Expand Down