Skip to content

Commit 2c1e710

Browse files
author
AWS
committed
Agents for Amazon Bedrock Runtime Update: Adding support for ReasoningContent fields in Pre-Processing, Post-Processing and Orchestration Trace outputs.
1 parent a9dbe38 commit 2c1e710

File tree

2 files changed

+53
-2
lines changed

2 files changed

+53
-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": "Adding support for ReasoningContent fields in Pre-Processing, Post-Processing and Orchestration Trace outputs."
6+
}

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

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,7 @@
755755
},
756756
"documentation":"<p>Contains configurations for a reranker model.</p>"
757757
},
758+
"Blob":{"type":"blob"},
758759
"Boolean":{
759760
"type":"boolean",
760761
"box":true
@@ -3250,7 +3251,7 @@
32503251
"MaximumLength":{
32513252
"type":"integer",
32523253
"box":true,
3253-
"max":4096,
3254+
"max":8192,
32543255
"min":0
32553256
},
32563257
"Memories":{
@@ -3673,6 +3674,10 @@
36733674
"shape":"RawResponse",
36743675
"documentation":"<p>Contains details of the raw response from the foundation model output.</p>"
36753676
},
3677+
"reasoningContent":{
3678+
"shape":"ReasoningContentBlock",
3679+
"documentation":"<p>Contains content about the reasoning that the model made during the orchestration step. </p>"
3680+
},
36763681
"traceId":{
36773682
"shape":"TraceId",
36783683
"documentation":"<p>The unique identifier of the trace.</p>"
@@ -3872,6 +3877,10 @@
38723877
"shape":"RawResponse",
38733878
"documentation":"<p> Details of the raw response from the foundation model output. </p>"
38743879
},
3880+
"reasoningContent":{
3881+
"shape":"ReasoningContentBlock",
3882+
"documentation":"<p>Contains content about the reasoning that the model made during the post-processing step.</p>"
3883+
},
38753884
"traceId":{
38763885
"shape":"TraceId",
38773886
"documentation":"<p>The unique identifier of the trace.</p>"
@@ -3922,6 +3931,10 @@
39223931
"shape":"RawResponse",
39233932
"documentation":"<p> Details of the raw response from the foundation model output. </p>"
39243933
},
3934+
"reasoningContent":{
3935+
"shape":"ReasoningContentBlock",
3936+
"documentation":"<p>Contains content about the reasoning that the model made during the pre-processing step. </p>"
3937+
},
39253938
"traceId":{
39263939
"shape":"TraceId",
39273940
"documentation":"<p>The unique identifier of the trace.</p>"
@@ -3978,7 +3991,7 @@
39783991
},
39793992
"parserMode":{
39803993
"shape":"CreationMode",
3981-
"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>"
3994+
"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>"
39823995
},
39833996
"promptCreationMode":{
39843997
"shape":"CreationMode",
@@ -4147,6 +4160,38 @@
41474160
"documentation":"<p>Contains the raw output from the foundation model.</p>",
41484161
"sensitive":true
41494162
},
4163+
"ReasoningContentBlock":{
4164+
"type":"structure",
4165+
"members":{
4166+
"reasoningText":{
4167+
"shape":"ReasoningTextBlock",
4168+
"documentation":"<p>Contains information about the reasoning that the model used to return the content in the content block.</p>"
4169+
},
4170+
"redactedContent":{
4171+
"shape":"Blob",
4172+
"documentation":"<p>The content in the reasoning that was encrypted by the model provider for trust and safety reasons.</p>"
4173+
}
4174+
},
4175+
"documentation":"<p>Contains content regarding the reasoning that the foundation model made 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>",
4176+
"sensitive":true,
4177+
"union":true
4178+
},
4179+
"ReasoningTextBlock":{
4180+
"type":"structure",
4181+
"required":["text"],
4182+
"members":{
4183+
"signature":{
4184+
"shape":"String",
4185+
"documentation":"<p>A hash of all the messages in the conversation to ensure that the content in the reasoning text block isn't tampered with. You must submit the signature in subsequent <code>Converse</code> requests, in addition to the previous messages. If the previous messages are tampered with, the response throws an error.</p>"
4186+
},
4187+
"text":{
4188+
"shape":"String",
4189+
"documentation":"<p>Text describing the reasoning that the model used to return the content in the content block.</p>"
4190+
}
4191+
},
4192+
"documentation":"<p>Contains information about the reasoning that the model used to return the content in the content block.</p>",
4193+
"sensitive":true
4194+
},
41504195
"RepromptResponse":{
41514196
"type":"structure",
41524197
"members":{

0 commit comments

Comments
 (0)