Skip to content

Commit 74562ca

Browse files
committed
Update to the latest bedrock-runtime model and add changelog entries
1 parent b490c87 commit 74562ca

3 files changed

Lines changed: 184 additions & 0 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "api-change",
3+
"description": "Added support for extended prompt caching with one hour TTL."
4+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "api-change",
3+
"description": "Added support for structured outputs to Converse and ConverseStream APIs."
4+
}

codegen/aws-models/bedrock-runtime.json

Lines changed: 176 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,6 +1270,40 @@
12701270
"smithy.api#sensitive": {}
12711271
}
12721272
},
1273+
"com.amazonaws.bedrockruntime#CacheDetail": {
1274+
"type": "structure",
1275+
"members": {
1276+
"ttl": {
1277+
"target": "com.amazonaws.bedrockruntime#CacheTTL",
1278+
"traits": {
1279+
"smithy.api#documentation": "<p>TTL duration for these cached tokens</p>",
1280+
"smithy.api#required": {}
1281+
}
1282+
},
1283+
"inputTokens": {
1284+
"target": "smithy.api#Integer",
1285+
"traits": {
1286+
"smithy.api#documentation": "<p>Number of tokens written to cache with this TTL (cache creation tokens)</p>",
1287+
"smithy.api#range": {
1288+
"min": 0
1289+
},
1290+
"smithy.api#required": {}
1291+
}
1292+
}
1293+
},
1294+
"traits": {
1295+
"smithy.api#documentation": "<p>Cache creation metrics for a specific TTL duration</p>"
1296+
}
1297+
},
1298+
"com.amazonaws.bedrockruntime#CacheDetailsList": {
1299+
"type": "list",
1300+
"member": {
1301+
"target": "com.amazonaws.bedrockruntime#CacheDetail"
1302+
},
1303+
"traits": {
1304+
"smithy.api#documentation": "<p>List of cache details by TTL</p>"
1305+
}
1306+
},
12731307
"com.amazonaws.bedrockruntime#CachePointBlock": {
12741308
"type": "structure",
12751309
"members": {
@@ -1279,6 +1313,12 @@
12791313
"smithy.api#documentation": "<p>Specifies the type of cache point within the CachePointBlock.</p>",
12801314
"smithy.api#required": {}
12811315
}
1316+
},
1317+
"ttl": {
1318+
"target": "com.amazonaws.bedrockruntime#CacheTTL",
1319+
"traits": {
1320+
"smithy.api#documentation": "<p>Optional TTL duration for cache entries. When specified, enables extended TTL caching with the specified duration. When omitted, uses <code>type</code> value for caching behavior.</p>"
1321+
}
12821322
}
12831323
},
12841324
"traits": {
@@ -1296,6 +1336,26 @@
12961336
}
12971337
}
12981338
},
1339+
"com.amazonaws.bedrockruntime#CacheTTL": {
1340+
"type": "enum",
1341+
"members": {
1342+
"FIVE_MINUTES": {
1343+
"target": "smithy.api#Unit",
1344+
"traits": {
1345+
"smithy.api#enumValue": "5m"
1346+
}
1347+
},
1348+
"ONE_HOUR": {
1349+
"target": "smithy.api#Unit",
1350+
"traits": {
1351+
"smithy.api#enumValue": "1h"
1352+
}
1353+
}
1354+
},
1355+
"traits": {
1356+
"smithy.api#documentation": "<p>Time-to-live duration for ephemeral cache entries</p>"
1357+
}
1358+
},
12991359
"com.amazonaws.bedrockruntime#Citation": {
13001360
"type": "structure",
13011361
"members": {
@@ -1908,6 +1968,12 @@
19081968
"traits": {
19091969
"smithy.api#documentation": "<p>Specifies the processing tier configuration used for serving the request.</p>"
19101970
}
1971+
},
1972+
"outputConfig": {
1973+
"target": "com.amazonaws.bedrockruntime#OutputConfig",
1974+
"traits": {
1975+
"smithy.api#documentation": "<p>Output configuration for a model response.</p>"
1976+
}
19111977
}
19121978
},
19131979
"traits": {
@@ -2229,6 +2295,12 @@
22292295
"traits": {
22302296
"smithy.api#documentation": "<p>Specifies the processing tier configuration used for serving the request.</p>"
22312297
}
2298+
},
2299+
"outputConfig": {
2300+
"target": "com.amazonaws.bedrockruntime#OutputConfig",
2301+
"traits": {
2302+
"smithy.api#documentation": "<p>Output configuration for a model response.</p>"
2303+
}
22322304
}
22332305
},
22342306
"traits": {
@@ -5650,6 +5722,33 @@
56505722
"smithy.api#pattern": "^(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}::foundation-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([a-z0-9-]{1,63}[.]){0,2}[a-z0-9-]{1,63}([:][a-z0-9-]{1,63}){0,2})|(arn:aws(|-us-gov|-cn|-iso|-iso-b):bedrock:(|[0-9a-z-]{1,20}):(|[0-9]{12}):inference-profile/[a-zA-Z0-9-:.]+)$"
56515723
}
56525724
},
5725+
"com.amazonaws.bedrockruntime#JsonSchemaDefinition": {
5726+
"type": "structure",
5727+
"members": {
5728+
"schema": {
5729+
"target": "smithy.api#String",
5730+
"traits": {
5731+
"smithy.api#documentation": "<p> The JSON schema to constrain the model's output. For more information, see <a href=\"https://json-schema.org/understanding-json-schema/reference\">JSON Schema Reference</a>. </p>",
5732+
"smithy.api#required": {}
5733+
}
5734+
},
5735+
"name": {
5736+
"target": "smithy.api#String",
5737+
"traits": {
5738+
"smithy.api#documentation": "<p> The name of the JSON schema. </p>"
5739+
}
5740+
},
5741+
"description": {
5742+
"target": "smithy.api#String",
5743+
"traits": {
5744+
"smithy.api#documentation": "<p> A description of the JSON schema. </p>"
5745+
}
5746+
}
5747+
},
5748+
"traits": {
5749+
"smithy.api#documentation": "<p> JSON schema structured output format options. </p>"
5750+
}
5751+
},
56535752
"com.amazonaws.bedrockruntime#KmsKeyId": {
56545753
"type": "string",
56555754
"traits": {
@@ -5970,6 +6069,71 @@
59706069
}
59716070
}
59726071
},
6072+
"com.amazonaws.bedrockruntime#OutputConfig": {
6073+
"type": "structure",
6074+
"members": {
6075+
"textFormat": {
6076+
"target": "com.amazonaws.bedrockruntime#OutputFormat",
6077+
"traits": {
6078+
"smithy.api#documentation": "<p>Structured output parameters to control the model's text response. </p>"
6079+
}
6080+
}
6081+
},
6082+
"traits": {
6083+
"smithy.api#documentation": "<p>Output configuration for a model response in a call to <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html\">Converse</a> or <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ConverseStream.html\">ConverseStream</a>.</p>"
6084+
}
6085+
},
6086+
"com.amazonaws.bedrockruntime#OutputFormat": {
6087+
"type": "structure",
6088+
"members": {
6089+
"type": {
6090+
"target": "com.amazonaws.bedrockruntime#OutputFormatType",
6091+
"traits": {
6092+
"smithy.api#documentation": "<p> The type of structured output format. </p>",
6093+
"smithy.api#required": {}
6094+
}
6095+
},
6096+
"structure": {
6097+
"target": "com.amazonaws.bedrockruntime#OutputFormatStructure",
6098+
"traits": {
6099+
"smithy.api#documentation": "<p> The structure that the model's output must adhere to. </p>",
6100+
"smithy.api#required": {}
6101+
}
6102+
}
6103+
},
6104+
"traits": {
6105+
"smithy.api#documentation": "<p> Structured output parameters to control the model's response. </p>"
6106+
}
6107+
},
6108+
"com.amazonaws.bedrockruntime#OutputFormatStructure": {
6109+
"type": "union",
6110+
"members": {
6111+
"jsonSchema": {
6112+
"target": "com.amazonaws.bedrockruntime#JsonSchemaDefinition",
6113+
"traits": {
6114+
"smithy.api#documentation": "<p> A JSON schema structure that the model's output must adhere to. </p>"
6115+
}
6116+
}
6117+
},
6118+
"traits": {
6119+
"smithy.api#documentation": "<p> The structure that the model's output must adhere to. </p>",
6120+
"smithy.api#sensitive": {}
6121+
}
6122+
},
6123+
"com.amazonaws.bedrockruntime#OutputFormatType": {
6124+
"type": "enum",
6125+
"members": {
6126+
"JSON_SCHEMA": {
6127+
"target": "smithy.api#Unit",
6128+
"traits": {
6129+
"smithy.api#enumValue": "json_schema"
6130+
}
6131+
}
6132+
},
6133+
"traits": {
6134+
"smithy.api#documentation": "<p> The type of structured output format. Available options are: json_schema. </p>"
6135+
}
6136+
},
59736137
"com.amazonaws.bedrockruntime#PaginationToken": {
59746138
"type": "string",
59756139
"traits": {
@@ -6820,6 +6984,12 @@
68206984
"min": 0
68216985
}
68226986
}
6987+
},
6988+
"cacheDetails": {
6989+
"target": "com.amazonaws.bedrockruntime#CacheDetailsList",
6990+
"traits": {
6991+
"smithy.api#documentation": "<p>Detailed breakdown of cache writes by TTL. Empty if no cache creation occurred. Sorted by TTL duration (1h before 5m).</p>"
6992+
}
68236993
}
68246994
},
68256995
"traits": {
@@ -7110,6 +7280,12 @@
71107280
"smithy.api#documentation": "<p>The input schema for the tool in JSON format.</p>",
71117281
"smithy.api#required": {}
71127282
}
7283+
},
7284+
"strict": {
7285+
"target": "smithy.api#Boolean",
7286+
"traits": {
7287+
"smithy.api#documentation": "<p>Flag to enable structured output enforcement on a tool usage response.</p>"
7288+
}
71137289
}
71147290
},
71157291
"traits": {

0 commit comments

Comments
 (0)