Skip to content

Commit f610962

Browse files
Update API model
1 parent c45c4e4 commit f610962

File tree

4 files changed

+169
-27
lines changed

4 files changed

+169
-27
lines changed

codegen/sdk-codegen/aws-models/bedrock-agent-runtime.json

+63-2
Original file line numberDiff line numberDiff line change
@@ -5507,7 +5507,7 @@
55075507
"traits": {
55085508
"smithy.api#range": {
55095509
"min": 0,
5510-
"max": 4096
5510+
"max": 8192
55115511
}
55125512
}
55135513
},
@@ -6191,6 +6191,12 @@
61916191
"traits": {
61926192
"smithy.api#documentation": "<p>Contains information about the foundation model output from the orchestration step.</p>"
61936193
}
6194+
},
6195+
"reasoningContent": {
6196+
"target": "com.amazonaws.bedrockagentruntime#ReasoningContentBlock",
6197+
"traits": {
6198+
"smithy.api#documentation": "<p>Contains content about the reasoning that the model made during the orchestration step. </p>"
6199+
}
61946200
}
61956201
},
61966202
"traits": {
@@ -6517,6 +6523,12 @@
65176523
"traits": {
65186524
"smithy.api#documentation": "<p>\n Contains information about the foundation model output from the post-processing step.\n </p>"
65196525
}
6526+
},
6527+
"reasoningContent": {
6528+
"target": "com.amazonaws.bedrockagentruntime#ReasoningContentBlock",
6529+
"traits": {
6530+
"smithy.api#documentation": "<p>Contains content about the reasoning that the model made during the post-processing step.</p>"
6531+
}
65206532
}
65216533
},
65226534
"traits": {
@@ -6586,6 +6598,12 @@
65866598
"traits": {
65876599
"smithy.api#documentation": "<p>\n Contains information about the foundation model output from the pre-processing step.\n </p>"
65886600
}
6601+
},
6602+
"reasoningContent": {
6603+
"target": "com.amazonaws.bedrockagentruntime#ReasoningContentBlock",
6604+
"traits": {
6605+
"smithy.api#documentation": "<p>Contains content about the reasoning that the model made during the pre-processing step. </p>"
6606+
}
65896607
}
65906608
},
65916609
"traits": {
@@ -6671,7 +6689,7 @@
66716689
"parserMode": {
66726690
"target": "com.amazonaws.bedrockagentruntime#CreationMode",
66736691
"traits": {
6674-
"smithy.api#documentation": "<p>Specifies whether to override the default parser Lambda function when parsing the raw foundation model output in the part of the agent sequence defined by the <code>promptType</code>. If you set the field as <code>OVERRIDEN</code>, the <code>overrideLambda</code> field in the <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptOverrideConfiguration.html\">PromptOverrideConfiguration</a> must be specified with the ARN of a Lambda function.</p>"
6692+
"smithy.api#documentation": "<p>Specifies whether to override the default parser Lambda function when parsing the raw foundation model output in the part of the agent sequence defined by the <code>promptType</code>. If you set the field as <code>OVERRIDDEN</code>, the <code>overrideLambda</code> field in the <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptOverrideConfiguration.html\">PromptOverrideConfiguration</a> must be specified with the ARN of a Lambda function.</p>"
66756693
}
66766694
},
66776695
"additionalModelRequestFields": {
@@ -6937,6 +6955,49 @@
69376955
"smithy.api#sensitive": {}
69386956
}
69396957
},
6958+
"com.amazonaws.bedrockagentruntime#ReasoningContentBlock": {
6959+
"type": "union",
6960+
"members": {
6961+
"reasoningText": {
6962+
"target": "com.amazonaws.bedrockagentruntime#ReasoningTextBlock",
6963+
"traits": {
6964+
"smithy.api#documentation": "<p>Contains information about the reasoning that the model used to return the content in\n the content block.</p>"
6965+
}
6966+
},
6967+
"redactedContent": {
6968+
"target": "smithy.api#Blob",
6969+
"traits": {
6970+
"smithy.api#documentation": "<p>The content in the reasoning that was encrypted by the model provider for trust and safety reasons.</p>"
6971+
}
6972+
}
6973+
},
6974+
"traits": {
6975+
"smithy.api#documentation": "<p>Contains content regarding the reasoning that the foundation model made with respect\n to the content in the content block. Reasoning refers to a Chain of Thought (CoT) that\n the model generates to enhance the accuracy of its final response.</p>",
6976+
"smithy.api#sensitive": {}
6977+
}
6978+
},
6979+
"com.amazonaws.bedrockagentruntime#ReasoningTextBlock": {
6980+
"type": "structure",
6981+
"members": {
6982+
"text": {
6983+
"target": "smithy.api#String",
6984+
"traits": {
6985+
"smithy.api#documentation": "<p>Text describing the reasoning that the model used to return the content in the content block.</p>",
6986+
"smithy.api#required": {}
6987+
}
6988+
},
6989+
"signature": {
6990+
"target": "smithy.api#String",
6991+
"traits": {
6992+
"smithy.api#documentation": "<p>A hash of all the messages in the conversation to ensure that the content in the\n reasoning text block isn't tampered with. You must submit the signature in subsequent\n <code>Converse</code> requests, in addition to the previous messages. If the\n previous messages are tampered with, the response throws an error.</p>"
6993+
}
6994+
}
6995+
},
6996+
"traits": {
6997+
"smithy.api#documentation": "<p>Contains information about the reasoning that the model used to return the content in the content block.</p>",
6998+
"smithy.api#sensitive": {}
6999+
}
7000+
},
69407001
"com.amazonaws.bedrockagentruntime#RepromptResponse": {
69417002
"type": "structure",
69427003
"members": {

codegen/sdk-codegen/aws-models/bedrock-agent.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -15619,8 +15619,7 @@
1561915619
"type": "string",
1562015620
"traits": {
1562115621
"smithy.api#length": {
15622-
"min": 1,
15623-
"max": 200000
15622+
"min": 1
1562415623
},
1562515624
"smithy.api#sensitive": {}
1562615625
}

codegen/sdk-codegen/aws-models/bedrock-runtime.json

+83-1
Original file line numberDiff line numberDiff line change
@@ -1115,6 +1115,12 @@
11151115
"traits": {
11161116
"smithy.api#documentation": "<p>Contains the content to assess with the guardrail. If you don't specify\n <code>guardContent</code> in a call to the Converse API, the guardrail (if passed in the\n Converse API) assesses the entire message.</p>\n <p>For more information, see <i>Use a guardrail with the Converse API</i> in the <i>Amazon Bedrock User Guide</i>.\n\n </p>"
11171117
}
1118+
},
1119+
"reasoningContent": {
1120+
"target": "com.amazonaws.bedrockruntime#ReasoningContentBlock",
1121+
"traits": {
1122+
"smithy.api#documentation": "<p>Contains content regarding the reasoning that is carried out by the model. Reasoning refers to a Chain of Thought (CoT) that the model generates to enhance the accuracy of its final response.</p>"
1123+
}
11181124
}
11191125
},
11201126
"traits": {
@@ -1135,10 +1141,16 @@
11351141
"traits": {
11361142
"smithy.api#documentation": "<p>Information about a tool that the model is requesting to use.</p>"
11371143
}
1144+
},
1145+
"reasoningContent": {
1146+
"target": "com.amazonaws.bedrockruntime#ReasoningContentBlockDelta",
1147+
"traits": {
1148+
"smithy.api#documentation": "<p>Contains content regarding the reasoning that is carried out by the model. Reasoning refers to a Chain of Thought (CoT) that the model generates to enhance the accuracy of its final response.</p>"
1149+
}
11381150
}
11391151
},
11401152
"traits": {
1141-
"smithy.api#documentation": "<p>A bock of content in a streaming response.</p>"
1153+
"smithy.api#documentation": "<p>A block of content in a streaming response.</p>"
11421154
}
11431155
},
11441156
"com.amazonaws.bedrockruntime#ContentBlockDeltaEvent": {
@@ -4319,6 +4331,76 @@
43194331
"smithy.api#documentation": "<p>Contains a map of variables in a prompt from Prompt management to an object containing the values to fill in for them when running model invocation. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-how.html\">How Prompt management works</a>.</p>"
43204332
}
43214333
},
4334+
"com.amazonaws.bedrockruntime#ReasoningContentBlock": {
4335+
"type": "union",
4336+
"members": {
4337+
"reasoningText": {
4338+
"target": "com.amazonaws.bedrockruntime#ReasoningTextBlock",
4339+
"traits": {
4340+
"smithy.api#documentation": "<p>The reasoning that the model used to return the output.</p>"
4341+
}
4342+
},
4343+
"redactedContent": {
4344+
"target": "smithy.api#Blob",
4345+
"traits": {
4346+
"smithy.api#documentation": "<p>The content in the reasoning that was encrypted by the model provider for safety reasons. The encryption doesn't affect the quality of responses.</p>"
4347+
}
4348+
}
4349+
},
4350+
"traits": {
4351+
"smithy.api#documentation": "<p>Contains content regarding the reasoning that is carried out by the model with respect to the content in the content block. Reasoning refers to a Chain of Thought (CoT) that the model generates to enhance the accuracy of its final response.</p>",
4352+
"smithy.api#sensitive": {}
4353+
}
4354+
},
4355+
"com.amazonaws.bedrockruntime#ReasoningContentBlockDelta": {
4356+
"type": "union",
4357+
"members": {
4358+
"text": {
4359+
"target": "smithy.api#String",
4360+
"traits": {
4361+
"smithy.api#documentation": "<p>The reasoning that the model used to return the output.</p>"
4362+
}
4363+
},
4364+
"redactedContent": {
4365+
"target": "smithy.api#Blob",
4366+
"traits": {
4367+
"smithy.api#documentation": "<p>The content in the reasoning that was encrypted by the model provider for safety reasons. The encryption doesn't affect the quality of responses.</p>"
4368+
}
4369+
},
4370+
"signature": {
4371+
"target": "smithy.api#String",
4372+
"traits": {
4373+
"smithy.api#documentation": "<p>A token that verifies that the reasoning text was generated by the model. If you pass a reasoning block back to the API in a multi-turn conversation, include the text and its signature unmodified.</p>"
4374+
}
4375+
}
4376+
},
4377+
"traits": {
4378+
"smithy.api#documentation": "<p>Contains content regarding the reasoning that is carried out by the model with respect to the content in the content block. Reasoning refers to a Chain of Thought (CoT) that the model generates to enhance the accuracy of its final response.</p>",
4379+
"smithy.api#sensitive": {}
4380+
}
4381+
},
4382+
"com.amazonaws.bedrockruntime#ReasoningTextBlock": {
4383+
"type": "structure",
4384+
"members": {
4385+
"text": {
4386+
"target": "smithy.api#String",
4387+
"traits": {
4388+
"smithy.api#documentation": "<p>The reasoning that the model used to return the output.</p>",
4389+
"smithy.api#required": {}
4390+
}
4391+
},
4392+
"signature": {
4393+
"target": "smithy.api#String",
4394+
"traits": {
4395+
"smithy.api#documentation": "<p>A token that verifies that the reasoning text was generated by the model. If you pass a reasoning block back to the API in a multi-turn conversation, include the text and its signature unmodified.</p>"
4396+
}
4397+
}
4398+
},
4399+
"traits": {
4400+
"smithy.api#documentation": "<p>Contains the reasoning that the model used to return the output.</p>",
4401+
"smithy.api#sensitive": {}
4402+
}
4403+
},
43224404
"com.amazonaws.bedrockruntime#RequestMetadata": {
43234405
"type": "map",
43244406
"key": {

0 commit comments

Comments
 (0)