Skip to content

Commit fcee3f6

Browse files
AWSghetelgb
authored andcommitted
Agents for Amazon Bedrock Runtime Update: Add a 'reason' field to InternalServerException
1 parent 444a88c commit fcee3f6

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Agents for Amazon Bedrock Runtime",
4+
"contributor": "",
5+
"description": "Add a 'reason' field to InternalServerException"
6+
}

services/bedrockagentruntime/src/main/resources/codegen-resources/service-2.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@
253253
{"shape":"AccessDeniedException"},
254254
{"shape":"ServiceQuotaExceededException"}
255255
],
256-
"documentation":"<p>Queries a knowledge base and generates responses based on the retrieved results, with output in streaming format.</p> <note> <p>The CLI doesn't support streaming operations in Amazon Bedrock, including <code>InvokeModelWithResponseStream</code>.</p> </note>"
256+
"documentation":"<p>Queries a knowledge base and generates responses based on the retrieved results, with output in streaming format.</p> <note> <p>The CLI doesn't support streaming operations in Amazon Bedrock, including <code>InvokeModelWithResponseStream</code>.</p> </note> <p>This operation requires permission for the <code> bedrock:RetrieveAndGenerate</code> action.</p>"
257257
}
258258
},
259259
"shapes":{
@@ -2666,7 +2666,11 @@
26662666
"InternalServerException":{
26672667
"type":"structure",
26682668
"members":{
2669-
"message":{"shape":"NonBlankString"}
2669+
"message":{"shape":"NonBlankString"},
2670+
"reason":{
2671+
"shape":"String",
2672+
"documentation":"<p>The reason for the exception. If the reason is <code>BEDROCK_MODEL_INVOCATION_SERVICE_UNAVAILABLE</code>, the model invocation service is unavailable. Retry your request.</p>"
2673+
}
26702674
},
26712675
"documentation":"<p>An internal server error occurred. Retry your request.</p>",
26722676
"error":{"httpStatusCode":500},

0 commit comments

Comments
 (0)