Skip to content

Commit 58febb2

Browse files
author
AWS
committed
Amazon Bedrock Runtime Update: This release adds Reasoning Content support to Converse and ConverseStream APIs
1 parent 2c1e710 commit 58febb2

File tree

2 files changed

+68
-1
lines changed

2 files changed

+68
-1
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": "Amazon Bedrock Runtime",
4+
"contributor": "",
5+
"description": "This release adds Reasoning Content support to Converse and ConverseStream APIs"
6+
}

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

Lines changed: 62 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,7 @@
385385
},
386386
"documentation":"<p>The Model automatically decides if a tool should be called or whether to generate text instead. For example, <code>{\"auto\" : {}}</code>.</p>"
387387
},
388+
"Blob":{"type":"blob"},
388389
"Body":{
389390
"type":"blob",
390391
"max":25000000,
@@ -433,6 +434,10 @@
433434
"guardContent":{
434435
"shape":"GuardrailConverseContentBlock",
435436
"documentation":"<p>Contains the content to assess with the guardrail. If you don't specify <code>guardContent</code> in a call to the Converse API, the guardrail (if passed in the Converse API) assesses the entire message.</p> <p>For more information, see <i>Use a guardrail with the Converse API</i> in the <i>Amazon Bedrock User Guide</i>. <pre><code> &lt;/p&gt; </code></pre>"
437+
},
438+
"reasoningContent":{
439+
"shape":"ReasoningContentBlock",
440+
"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>"
436441
}
437442
},
438443
"documentation":"<p>A block of content for a message that you pass to, or receive from, a model with the <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> API operations.</p>",
@@ -448,9 +453,13 @@
448453
"toolUse":{
449454
"shape":"ToolUseBlockDelta",
450455
"documentation":"<p>Information about a tool that the model is requesting to use.</p>"
456+
},
457+
"reasoningContent":{
458+
"shape":"ReasoningContentBlockDelta",
459+
"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>"
451460
}
452461
},
453-
"documentation":"<p>A bock of content in a streaming response.</p>",
462+
"documentation":"<p>A block of content in a streaming response.</p>",
454463
"union":true
455464
},
456465
"ContentBlockDeltaEvent":{
@@ -2371,6 +2380,58 @@
23712380
"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>",
23722381
"union":true
23732382
},
2383+
"ReasoningContentBlock":{
2384+
"type":"structure",
2385+
"members":{
2386+
"reasoningText":{
2387+
"shape":"ReasoningTextBlock",
2388+
"documentation":"<p>The reasoning that the model used to return the output.</p>"
2389+
},
2390+
"redactedContent":{
2391+
"shape":"Blob",
2392+
"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>"
2393+
}
2394+
},
2395+
"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>",
2396+
"sensitive":true,
2397+
"union":true
2398+
},
2399+
"ReasoningContentBlockDelta":{
2400+
"type":"structure",
2401+
"members":{
2402+
"text":{
2403+
"shape":"String",
2404+
"documentation":"<p>The reasoning that the model used to return the output.</p>"
2405+
},
2406+
"redactedContent":{
2407+
"shape":"Blob",
2408+
"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>"
2409+
},
2410+
"signature":{
2411+
"shape":"String",
2412+
"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>"
2413+
}
2414+
},
2415+
"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>",
2416+
"sensitive":true,
2417+
"union":true
2418+
},
2419+
"ReasoningTextBlock":{
2420+
"type":"structure",
2421+
"required":["text"],
2422+
"members":{
2423+
"text":{
2424+
"shape":"String",
2425+
"documentation":"<p>The reasoning that the model used to return the output.</p>"
2426+
},
2427+
"signature":{
2428+
"shape":"String",
2429+
"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>"
2430+
}
2431+
},
2432+
"documentation":"<p>Contains the reasoning that the model used to return the output.</p>",
2433+
"sensitive":true
2434+
},
23742435
"RequestMetadata":{
23752436
"type":"map",
23762437
"key":{"shape":"RequestMetadataKeyString"},

0 commit comments

Comments
 (0)