Skip to content

Commit b6cdc7b

Browse files
Release 2026-02-24
1 parent d6b2166 commit b6cdc7b

23 files changed

Lines changed: 603 additions & 52 deletions
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"changes": [
3+
{
4+
"type": "api-change",
5+
"description": "Added support for extended prompt caching with one hour TTL."
6+
},
7+
{
8+
"type": "api-change",
9+
"description": "Added support for structured outputs to Converse and ConverseStream APIs."
10+
},
11+
{
12+
"type": "enhancement",
13+
"description": "Re-generated with smithy-python 0.3.0"
14+
},
15+
{
16+
"type": "enhancement",
17+
"description": "Update package docstrings from Sphinx style to Google style for improved readability and consistency with Python community standards. ([#48](https://github.com/awslabs/aws-sdk-python/pull/48))"
18+
}
19+
]
20+
}

clients/aws-sdk-bedrock-runtime/.changes/next-release/aws-sdk-bedrock-runtime-api-change-12f9965268834a989f712d2e197da205.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

clients/aws-sdk-bedrock-runtime/.changes/next-release/aws-sdk-bedrock-runtime-api-change-435cebed99a34da0adfb5cb36a386d9b.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

clients/aws-sdk-bedrock-runtime/.changes/next-release/aws-sdk-bedrock-runtime-enhancement-ba0310435c33445295009674f239001b.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

clients/aws-sdk-bedrock-runtime/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## v0.4.0
4+
5+
### API Changes
6+
* Added support for extended prompt caching with one hour TTL.
7+
* Added support for structured outputs to Converse and ConverseStream APIs.
8+
9+
### Enhancements
10+
* Re-generated with smithy-python 0.3.0
11+
* Update package docstrings from Sphinx style to Google style for improved readability and consistency with Python community standards. ([#48](https://github.com/awslabs/aws-sdk-python/pull/48))
12+
313
## v0.3.0
414

515
### API Changes

clients/aws-sdk-bedrock-runtime/pyproject.toml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[project]
44
name = "aws_sdk_bedrock_runtime"
5-
version = "0.3.0"
5+
version = "0.4.0"
66
description = "aws_sdk_bedrock_runtime client"
77
readme = "README.md"
88
requires-python = ">=3.12"
@@ -23,21 +23,20 @@ classifiers = [
2323
]
2424

2525
dependencies = [
26-
"smithy_aws_core[eventstream, json]~=0.3.0",
26+
"smithy_aws_core[eventstream, json]~=0.4.0",
2727
"smithy_core~=0.3.0",
2828
"smithy_http[awscrt]~=0.3.0"
2929
]
3030

3131
[dependency-groups]
32-
test = [
33-
"pytest>=9.0.1,<10.0.0",
34-
"pytest-asyncio>=1.3.0,<1.4.0"
35-
]
36-
3732
docs = [
3833
"mkdocs==1.6.1",
3934
"mkdocs-material==9.7.0",
40-
"mkdocstrings[python]==1.0.0"
35+
"mkdocstrings[python]==1.0.0",
36+
]
37+
test = [
38+
"pytest>=9.0.1,<10.0.0",
39+
"pytest-asyncio>=1.3.0,<1.4.0"
4140
]
4241

4342
[build-system]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Code generated by smithy-python-codegen DO NOT EDIT.
22

3-
__version__: str = "0.3.0"
3+
__version__: str = "0.4.0"

clients/aws-sdk-bedrock-runtime/src/aws_sdk_bedrock_runtime/_private/schemas.py

Lines changed: 97 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2365,6 +2365,21 @@
23652365
},
23662366
)
23672367

2368+
CACHE_TTL = Schema.collection(
2369+
id=ShapeID("com.amazonaws.bedrockruntime#CacheTTL"),
2370+
shape_type=ShapeType.ENUM,
2371+
members={
2372+
"FIVE_MINUTES": {
2373+
"target": UNIT,
2374+
"traits": [Trait.new(id=ShapeID("smithy.api#enumValue"), value="5m")],
2375+
},
2376+
"ONE_HOUR": {
2377+
"target": UNIT,
2378+
"traits": [Trait.new(id=ShapeID("smithy.api#enumValue"), value="1h")],
2379+
},
2380+
},
2381+
)
2382+
23682383
CACHE_POINT_TYPE = Schema.collection(
23692384
id=ShapeID("com.amazonaws.bedrockruntime#CachePointType"),
23702385
shape_type=ShapeType.ENUM,
@@ -2382,7 +2397,8 @@
23822397
"type": {
23832398
"target": CACHE_POINT_TYPE,
23842399
"traits": [Trait.new(id=ShapeID("smithy.api#required"))],
2385-
}
2400+
},
2401+
"ttl": {"target": CACHE_TTL},
23862402
},
23872403
)
23882404

@@ -3146,6 +3162,57 @@
31463162
],
31473163
)
31483164

3165+
JSON_SCHEMA_DEFINITION = Schema.collection(
3166+
id=ShapeID("com.amazonaws.bedrockruntime#JsonSchemaDefinition"),
3167+
members={
3168+
"schema": {
3169+
"target": STRING,
3170+
"traits": [Trait.new(id=ShapeID("smithy.api#required"))],
3171+
},
3172+
"name": {"target": STRING},
3173+
"description": {"target": STRING},
3174+
},
3175+
)
3176+
3177+
OUTPUT_FORMAT_STRUCTURE = Schema.collection(
3178+
id=ShapeID("com.amazonaws.bedrockruntime#OutputFormatStructure"),
3179+
shape_type=ShapeType.UNION,
3180+
traits=[Trait.new(id=ShapeID("smithy.api#sensitive"))],
3181+
members={"jsonSchema": {"target": JSON_SCHEMA_DEFINITION}},
3182+
)
3183+
3184+
OUTPUT_FORMAT_TYPE = Schema.collection(
3185+
id=ShapeID("com.amazonaws.bedrockruntime#OutputFormatType"),
3186+
shape_type=ShapeType.ENUM,
3187+
members={
3188+
"JSON_SCHEMA": {
3189+
"target": UNIT,
3190+
"traits": [
3191+
Trait.new(id=ShapeID("smithy.api#enumValue"), value="json_schema")
3192+
],
3193+
}
3194+
},
3195+
)
3196+
3197+
OUTPUT_FORMAT = Schema.collection(
3198+
id=ShapeID("com.amazonaws.bedrockruntime#OutputFormat"),
3199+
members={
3200+
"type": {
3201+
"target": OUTPUT_FORMAT_TYPE,
3202+
"traits": [Trait.new(id=ShapeID("smithy.api#required"))],
3203+
},
3204+
"structure": {
3205+
"target": OUTPUT_FORMAT_STRUCTURE,
3206+
"traits": [Trait.new(id=ShapeID("smithy.api#required"))],
3207+
},
3208+
},
3209+
)
3210+
3211+
OUTPUT_CONFIG = Schema.collection(
3212+
id=ShapeID("com.amazonaws.bedrockruntime#OutputConfig"),
3213+
members={"textFormat": {"target": OUTPUT_FORMAT}},
3214+
)
3215+
31493216
PERFORMANCE_CONFIG_LATENCY = Schema.collection(
31503217
id=ShapeID("com.amazonaws.bedrockruntime#PerformanceConfigLatency"),
31513218
shape_type=ShapeType.ENUM,
@@ -3331,6 +3398,7 @@
33313398
"target": TOOL_INPUT_SCHEMA,
33323399
"traits": [Trait.new(id=ShapeID("smithy.api#required"))],
33333400
},
3401+
"strict": {"target": BOOLEAN},
33343402
},
33353403
)
33363404

@@ -3401,6 +3469,7 @@
34013469
"requestMetadata": {"target": REQUEST_METADATA},
34023470
"performanceConfig": {"target": PERFORMANCE_CONFIGURATION},
34033471
"serviceTier": {"target": SERVICE_TIER},
3472+
"outputConfig": {"target": OUTPUT_CONFIG},
34043473
},
34053474
)
34063475

@@ -3538,6 +3607,31 @@
35383607
},
35393608
)
35403609

3610+
CACHE_DETAIL = Schema.collection(
3611+
id=ShapeID("com.amazonaws.bedrockruntime#CacheDetail"),
3612+
members={
3613+
"ttl": {
3614+
"target": CACHE_TTL,
3615+
"traits": [Trait.new(id=ShapeID("smithy.api#required"))],
3616+
},
3617+
"inputTokens": {
3618+
"target": INTEGER,
3619+
"traits": [
3620+
Trait.new(id=ShapeID("smithy.api#required")),
3621+
Trait.new(
3622+
id=ShapeID("smithy.api#range"), value=MappingProxyType({"min": 0})
3623+
),
3624+
],
3625+
},
3626+
},
3627+
)
3628+
3629+
CACHE_DETAILS_LIST = Schema.collection(
3630+
id=ShapeID("com.amazonaws.bedrockruntime#CacheDetailsList"),
3631+
shape_type=ShapeType.LIST,
3632+
members={"member": {"target": CACHE_DETAIL}},
3633+
)
3634+
35413635
TOKEN_USAGE = Schema.collection(
35423636
id=ShapeID("com.amazonaws.bedrockruntime#TokenUsage"),
35433637
members={
@@ -3584,6 +3678,7 @@
35843678
)
35853679
],
35863680
},
3681+
"cacheDetails": {"target": CACHE_DETAILS_LIST},
35873682
},
35883683
)
35893684

@@ -3755,6 +3850,7 @@
37553850
"requestMetadata": {"target": REQUEST_METADATA},
37563851
"performanceConfig": {"target": PERFORMANCE_CONFIGURATION},
37573852
"serviceTier": {"target": SERVICE_TIER},
3853+
"outputConfig": {"target": OUTPUT_CONFIG},
37583854
},
37593855
)
37603856

0 commit comments

Comments
 (0)