Skip to content

Commit

Permalink
Update to latest models
Browse files Browse the repository at this point in the history
  • Loading branch information
aws-sdk-python-automation committed Feb 24, 2025
1 parent c9f416a commit 6c719f5
Show file tree
Hide file tree
Showing 8 changed files with 151 additions and 26 deletions.
5 changes: 5 additions & 0 deletions .changes/next-release/api-change-bedrockagent-94556.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"type": "api-change",
"category": "``bedrock-agent``",
"description": "This release improves support for newer models in Amazon Bedrock Flows."
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"type": "api-change",
"category": "``bedrock-agent-runtime``",
"description": "Adding support for ReasoningContent fields in Pre-Processing, Post-Processing and Orchestration Trace outputs."
}
5 changes: 5 additions & 0 deletions .changes/next-release/api-change-bedrockruntime-59473.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"type": "api-change",
"category": "``bedrock-runtime``",
"description": "This release adds Reasoning Content support to Converse and ConverseStream APIs"
}
5 changes: 5 additions & 0 deletions .changes/next-release/api-change-elasticache-47363.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"type": "api-change",
"category": "``elasticache``",
"description": "Documentation update, adding clarity and rephrasing."
}
49 changes: 47 additions & 2 deletions botocore/data/bedrock-agent-runtime/2023-07-26/service-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,7 @@
},
"documentation":"<p>Contains configurations for a reranker model.</p>"
},
"Blob":{"type":"blob"},
"Boolean":{
"type":"boolean",
"box":true
Expand Down Expand Up @@ -3250,7 +3251,7 @@
"MaximumLength":{
"type":"integer",
"box":true,
"max":4096,
"max":8192,
"min":0
},
"Memories":{
Expand Down Expand Up @@ -3673,6 +3674,10 @@
"shape":"RawResponse",
"documentation":"<p>Contains details of the raw response from the foundation model output.</p>"
},
"reasoningContent":{
"shape":"ReasoningContentBlock",
"documentation":"<p>Contains content about the reasoning that the model made during the orchestration step. </p>"
},
"traceId":{
"shape":"TraceId",
"documentation":"<p>The unique identifier of the trace.</p>"
Expand Down Expand Up @@ -3872,6 +3877,10 @@
"shape":"RawResponse",
"documentation":"<p> Details of the raw response from the foundation model output. </p>"
},
"reasoningContent":{
"shape":"ReasoningContentBlock",
"documentation":"<p>Contains content about the reasoning that the model made during the post-processing step.</p>"
},
"traceId":{
"shape":"TraceId",
"documentation":"<p>The unique identifier of the trace.</p>"
Expand Down Expand Up @@ -3922,6 +3931,10 @@
"shape":"RawResponse",
"documentation":"<p> Details of the raw response from the foundation model output. </p>"
},
"reasoningContent":{
"shape":"ReasoningContentBlock",
"documentation":"<p>Contains content about the reasoning that the model made during the pre-processing step. </p>"
},
"traceId":{
"shape":"TraceId",
"documentation":"<p>The unique identifier of the trace.</p>"
Expand Down Expand Up @@ -3978,7 +3991,7 @@
},
"parserMode":{
"shape":"CreationMode",
"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>"
"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>"
},
"promptCreationMode":{
"shape":"CreationMode",
Expand Down Expand Up @@ -4147,6 +4160,38 @@
"documentation":"<p>Contains the raw output from the foundation model.</p>",
"sensitive":true
},
"ReasoningContentBlock":{
"type":"structure",
"members":{
"reasoningText":{
"shape":"ReasoningTextBlock",
"documentation":"<p>Contains information about the reasoning that the model used to return the content in the content block.</p>"
},
"redactedContent":{
"shape":"Blob",
"documentation":"<p>The content in the reasoning that was encrypted by the model provider for trust and safety reasons.</p>"
}
},
"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>",
"sensitive":true,
"union":true
},
"ReasoningTextBlock":{
"type":"structure",
"required":["text"],
"members":{
"signature":{
"shape":"String",
"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>"
},
"text":{
"shape":"String",
"documentation":"<p>Text describing the reasoning that the model used to return the content in the content block.</p>"
}
},
"documentation":"<p>Contains information about the reasoning that the model used to return the content in the content block.</p>",
"sensitive":true
},
"RepromptResponse":{
"type":"structure",
"members":{
Expand Down
1 change: 0 additions & 1 deletion botocore/data/bedrock-agent/2023-06-05/service-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -9574,7 +9574,6 @@
},
"TextPrompt":{
"type":"string",
"max":200000,
"min":1,
"sensitive":true
},
Expand Down
63 changes: 62 additions & 1 deletion botocore/data/bedrock-runtime/2023-09-30/service-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@
},
"documentation":"<p>The Model automatically decides if a tool should be called or whether to generate text instead. For example, <code>{\"auto\" : {}}</code>.</p>"
},
"Blob":{"type":"blob"},
"Body":{
"type":"blob",
"max":25000000,
Expand Down Expand Up @@ -433,6 +434,10 @@
"guardContent":{
"shape":"GuardrailConverseContentBlock",
"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>"
},
"reasoningContent":{
"shape":"ReasoningContentBlock",
"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>"
}
},
"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>",
Expand All @@ -448,9 +453,13 @@
"toolUse":{
"shape":"ToolUseBlockDelta",
"documentation":"<p>Information about a tool that the model is requesting to use.</p>"
},
"reasoningContent":{
"shape":"ReasoningContentBlockDelta",
"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>"
}
},
"documentation":"<p>A bock of content in a streaming response.</p>",
"documentation":"<p>A block of content in a streaming response.</p>",
"union":true
},
"ContentBlockDeltaEvent":{
Expand Down Expand Up @@ -2371,6 +2380,58 @@
"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>",
"union":true
},
"ReasoningContentBlock":{
"type":"structure",
"members":{
"reasoningText":{
"shape":"ReasoningTextBlock",
"documentation":"<p>The reasoning that the model used to return the output.</p>"
},
"redactedContent":{
"shape":"Blob",
"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>"
}
},
"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>",
"sensitive":true,
"union":true
},
"ReasoningContentBlockDelta":{
"type":"structure",
"members":{
"text":{
"shape":"String",
"documentation":"<p>The reasoning that the model used to return the output.</p>"
},
"redactedContent":{
"shape":"Blob",
"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>"
},
"signature":{
"shape":"String",
"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>"
}
},
"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>",
"sensitive":true,
"union":true
},
"ReasoningTextBlock":{
"type":"structure",
"required":["text"],
"members":{
"text":{
"shape":"String",
"documentation":"<p>The reasoning that the model used to return the output.</p>"
},
"signature":{
"shape":"String",
"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>"
}
},
"documentation":"<p>Contains the reasoning that the model used to return the output.</p>",
"sensitive":true
},
"RequestMetadata":{
"type":"map",
"key":{"shape":"RequestMetadataKeyString"},
Expand Down
Loading

0 comments on commit 6c719f5

Please sign in to comment.