Skip to content

Commit

Permalink
Update API model
Browse files Browse the repository at this point in the history
  • Loading branch information
AWS SDK for Go v2 automation user committed Feb 24, 2025
1 parent a1a979f commit 11bb63c
Show file tree
Hide file tree
Showing 4 changed files with 169 additions and 27 deletions.
65 changes: 63 additions & 2 deletions codegen/sdk-codegen/aws-models/bedrock-agent-runtime.json
Original file line number Diff line number Diff line change
Expand Up @@ -5507,7 +5507,7 @@
"traits": {
"smithy.api#range": {
"min": 0,
"max": 4096
"max": 8192
}
}
},
Expand Down Expand Up @@ -6191,6 +6191,12 @@
"traits": {
"smithy.api#documentation": "<p>Contains information about the foundation model output from the orchestration step.</p>"
}
},
"reasoningContent": {
"target": "com.amazonaws.bedrockagentruntime#ReasoningContentBlock",
"traits": {
"smithy.api#documentation": "<p>Contains content about the reasoning that the model made during the orchestration step. </p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -6517,6 +6523,12 @@
"traits": {
"smithy.api#documentation": "<p>\n Contains information about the foundation model output from the post-processing step.\n </p>"
}
},
"reasoningContent": {
"target": "com.amazonaws.bedrockagentruntime#ReasoningContentBlock",
"traits": {
"smithy.api#documentation": "<p>Contains content about the reasoning that the model made during the post-processing step.</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -6586,6 +6598,12 @@
"traits": {
"smithy.api#documentation": "<p>\n Contains information about the foundation model output from the pre-processing step.\n </p>"
}
},
"reasoningContent": {
"target": "com.amazonaws.bedrockagentruntime#ReasoningContentBlock",
"traits": {
"smithy.api#documentation": "<p>Contains content about the reasoning that the model made during the pre-processing step. </p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -6671,7 +6689,7 @@
"parserMode": {
"target": "com.amazonaws.bedrockagentruntime#CreationMode",
"traits": {
"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>"
"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>"
}
},
"additionalModelRequestFields": {
Expand Down Expand Up @@ -6937,6 +6955,49 @@
"smithy.api#sensitive": {}
}
},
"com.amazonaws.bedrockagentruntime#ReasoningContentBlock": {
"type": "union",
"members": {
"reasoningText": {
"target": "com.amazonaws.bedrockagentruntime#ReasoningTextBlock",
"traits": {
"smithy.api#documentation": "<p>Contains information about the reasoning that the model used to return the content in\n the content block.</p>"
}
},
"redactedContent": {
"target": "smithy.api#Blob",
"traits": {
"smithy.api#documentation": "<p>The content in the reasoning that was encrypted by the model provider for trust and safety reasons.</p>"
}
}
},
"traits": {
"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>",
"smithy.api#sensitive": {}
}
},
"com.amazonaws.bedrockagentruntime#ReasoningTextBlock": {
"type": "structure",
"members": {
"text": {
"target": "smithy.api#String",
"traits": {
"smithy.api#documentation": "<p>Text describing the reasoning that the model used to return the content in the content block.</p>",
"smithy.api#required": {}
}
},
"signature": {
"target": "smithy.api#String",
"traits": {
"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>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>Contains information about the reasoning that the model used to return the content in the content block.</p>",
"smithy.api#sensitive": {}
}
},
"com.amazonaws.bedrockagentruntime#RepromptResponse": {
"type": "structure",
"members": {
Expand Down
3 changes: 1 addition & 2 deletions codegen/sdk-codegen/aws-models/bedrock-agent.json
Original file line number Diff line number Diff line change
Expand Up @@ -15619,8 +15619,7 @@
"type": "string",
"traits": {
"smithy.api#length": {
"min": 1,
"max": 200000
"min": 1
},
"smithy.api#sensitive": {}
}
Expand Down
84 changes: 83 additions & 1 deletion codegen/sdk-codegen/aws-models/bedrock-runtime.json
Original file line number Diff line number Diff line change
Expand Up @@ -1115,6 +1115,12 @@
"traits": {
"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>"
}
},
"reasoningContent": {
"target": "com.amazonaws.bedrockruntime#ReasoningContentBlock",
"traits": {
"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>"
}
}
},
"traits": {
Expand All @@ -1135,10 +1141,16 @@
"traits": {
"smithy.api#documentation": "<p>Information about a tool that the model is requesting to use.</p>"
}
},
"reasoningContent": {
"target": "com.amazonaws.bedrockruntime#ReasoningContentBlockDelta",
"traits": {
"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>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>A bock of content in a streaming response.</p>"
"smithy.api#documentation": "<p>A block of content in a streaming response.</p>"
}
},
"com.amazonaws.bedrockruntime#ContentBlockDeltaEvent": {
Expand Down Expand Up @@ -4319,6 +4331,76 @@
"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>"
}
},
"com.amazonaws.bedrockruntime#ReasoningContentBlock": {
"type": "union",
"members": {
"reasoningText": {
"target": "com.amazonaws.bedrockruntime#ReasoningTextBlock",
"traits": {
"smithy.api#documentation": "<p>The reasoning that the model used to return the output.</p>"
}
},
"redactedContent": {
"target": "smithy.api#Blob",
"traits": {
"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>"
}
}
},
"traits": {
"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>",
"smithy.api#sensitive": {}
}
},
"com.amazonaws.bedrockruntime#ReasoningContentBlockDelta": {
"type": "union",
"members": {
"text": {
"target": "smithy.api#String",
"traits": {
"smithy.api#documentation": "<p>The reasoning that the model used to return the output.</p>"
}
},
"redactedContent": {
"target": "smithy.api#Blob",
"traits": {
"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>"
}
},
"signature": {
"target": "smithy.api#String",
"traits": {
"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>"
}
}
},
"traits": {
"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>",
"smithy.api#sensitive": {}
}
},
"com.amazonaws.bedrockruntime#ReasoningTextBlock": {
"type": "structure",
"members": {
"text": {
"target": "smithy.api#String",
"traits": {
"smithy.api#documentation": "<p>The reasoning that the model used to return the output.</p>",
"smithy.api#required": {}
}
},
"signature": {
"target": "smithy.api#String",
"traits": {
"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>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>Contains the reasoning that the model used to return the output.</p>",
"smithy.api#sensitive": {}
}
},
"com.amazonaws.bedrockruntime#RequestMetadata": {
"type": "map",
"key": {
Expand Down
Loading

0 comments on commit 11bb63c

Please sign in to comment.