Skip to content

Commit ffcd129

Browse files
feat: update AWS API models
1 parent 523b491 commit ffcd129

File tree

4 files changed

+291
-41
lines changed

4 files changed

+291
-41
lines changed

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

Lines changed: 97 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1696,27 +1696,27 @@
16961696
"nodeName": {
16971697
"target": "com.amazonaws.bedrockagentruntime#NodeName",
16981698
"traits": {
1699-
"smithy.api#documentation": "<p>A name for the input of the flow input node.</p>",
1699+
"smithy.api#documentation": "<p>The name of the flow input node that begins the prompt flow.</p>",
17001700
"smithy.api#required": {}
17011701
}
17021702
},
17031703
"nodeOutputName": {
17041704
"target": "com.amazonaws.bedrockagentruntime#NodeOutputName",
17051705
"traits": {
1706-
"smithy.api#documentation": "<p>A name for the output of the flow input node.</p>",
1706+
"smithy.api#documentation": "<p>The name of the output from the flow input node that begins the prompt flow.</p>",
17071707
"smithy.api#required": {}
17081708
}
17091709
},
17101710
"content": {
17111711
"target": "com.amazonaws.bedrockagentruntime#FlowInputContent",
17121712
"traits": {
1713-
"smithy.api#documentation": "<p>Contains information about an input into the flow.</p>",
1713+
"smithy.api#documentation": "<p>Contains information about an input into the prompt flow.</p>",
17141714
"smithy.api#required": {}
17151715
}
17161716
}
17171717
},
17181718
"traits": {
1719-
"smithy.api#documentation": "<p>Contains information about an input into the flow and what to do with it.</p>\n <p>This data type is used in the following API operations:</p>\n <ul>\n <li>\n <p>\n <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeFlow.html#API_agent_InvokeFlow_RequestSyntax\">InvokeFlow request</a>\n </p>\n </li>\n </ul>"
1719+
"smithy.api#documentation": "<p>Contains information about an input into the prompt flow and where to send it.</p>\n <p>This data type is used in the following API operations:</p>\n <ul>\n <li>\n <p>\n <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeFlow.html#API_agent_InvokeFlow_RequestSyntax\">InvokeFlow request</a>\n </p>\n </li>\n </ul>"
17201720
}
17211721
},
17221722
"com.amazonaws.bedrockagentruntime#FlowInputContent": {
@@ -1725,7 +1725,7 @@
17251725
"document": {
17261726
"target": "smithy.api#Document",
17271727
"traits": {
1728-
"smithy.api#documentation": "<p>The input for the flow input node.</p>"
1728+
"smithy.api#documentation": "<p>The input to send to the prompt flow input node.</p>"
17291729
}
17301730
}
17311731
},
@@ -1752,12 +1752,12 @@
17521752
"document": {
17531753
"target": "smithy.api#Document",
17541754
"traits": {
1755-
"smithy.api#documentation": "<p>A name for the output of the flow.</p>"
1755+
"smithy.api#documentation": "<p>The content in the output.</p>"
17561756
}
17571757
}
17581758
},
17591759
"traits": {
1760-
"smithy.api#documentation": "<p>Contains information about the output node.</p>\n <p>This data type is used in the following API operations:</p>\n <ul>\n <li>\n <p>\n <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeFlow.html#API_agent_InvokeFlow_RequestSyntax\">InvokeFlow request</a>\n </p>\n </li>\n </ul>"
1760+
"smithy.api#documentation": "<p>Contains information about the content in an output from prompt flow invocation.</p>\n <p>This data type is used in the following API operations:</p>\n <ul>\n <li>\n <p>\n <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeFlow.html#API_agent_InvokeFlow_RequestSyntax\">InvokeFlow request</a>\n </p>\n </li>\n </ul>"
17611761
}
17621762
},
17631763
"com.amazonaws.bedrockagentruntime#FlowOutputEvent": {
@@ -1766,27 +1766,27 @@
17661766
"nodeName": {
17671767
"target": "com.amazonaws.bedrockagentruntime#NodeName",
17681768
"traits": {
1769-
"smithy.api#documentation": "<p>The name of the node to which input was provided.</p>",
1769+
"smithy.api#documentation": "<p>The name of the flow output node that the output is from.</p>",
17701770
"smithy.api#required": {}
17711771
}
17721772
},
17731773
"nodeType": {
17741774
"target": "com.amazonaws.bedrockagentruntime#NodeType",
17751775
"traits": {
1776-
"smithy.api#documentation": "<p>The type of node to which input was provided.</p>",
1776+
"smithy.api#documentation": "<p>The type of the node that the output is from.</p>",
17771777
"smithy.api#required": {}
17781778
}
17791779
},
17801780
"content": {
17811781
"target": "com.amazonaws.bedrockagentruntime#FlowOutputContent",
17821782
"traits": {
1783-
"smithy.api#documentation": "<p>The output of the node.</p>",
1783+
"smithy.api#documentation": "<p>The content in the output.</p>",
17841784
"smithy.api#required": {}
17851785
}
17861786
}
17871787
},
17881788
"traits": {
1789-
"smithy.api#documentation": "<p>Contains information about an output from flow invoction.</p>\n <p>This data type is used in the following API operations:</p>\n <ul>\n <li>\n <p>\n <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeFlow.html#API_agent_InvokeFlow_ResponseSyntax\">InvokeFlow response</a>\n </p>\n </li>\n </ul>",
1789+
"smithy.api#documentation": "<p>Contains information about an output from prompt flow invoction.</p>\n <p>This data type is used in the following API operations:</p>\n <ul>\n <li>\n <p>\n <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeFlow.html#API_agent_InvokeFlow_ResponseSyntax\">InvokeFlow response</a>\n </p>\n </li>\n </ul>",
17901790
"smithy.api#sensitive": {}
17911791
}
17921792
},
@@ -2938,7 +2938,7 @@
29382938
"topP": {
29392939
"target": "com.amazonaws.bedrockagentruntime#TopP",
29402940
"traits": {
2941-
"smithy.api#documentation": "<p>While generating a response, the model determines the probability of the following token at each point of generation. The value that you set for <code>Top P</code> determines the number of most-likely candidates from which the model chooses the next token in the sequence. For example, if you set <code>topP</code> to 80, the model only selects the next token from the top 80% of the probability distribution of next tokens.</p>"
2941+
"smithy.api#documentation": "<p>While generating a response, the model determines the probability of the following token at each point of generation. The value that you set for <code>Top P</code> determines the number of most-likely candidates from which the model chooses the next token in the sequence. For example, if you set <code>topP</code> to 0.8, the model only selects the next token from the top 80% of the probability distribution of next tokens.</p>"
29422942
}
29432943
},
29442944
"topK": {
@@ -3334,7 +3334,7 @@
33343334
}
33353335
],
33363336
"traits": {
3337-
"smithy.api#documentation": "<p>Invokes an alias of a flow to run the inputs that you specify and return the output of each node as a stream. If there's an error, the error is returned. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/flows-test.html\">Test a flow in Amazon Bedrock</a> in the Amazon Bedrock User Guide.</p>",
3337+
"smithy.api#documentation": "<p>Invokes an alias of a flow to run the inputs that you specify and return the output of each node as a stream. If there's an error, the error is returned. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/flows-test.html\">Test a flow in Amazon Bedrock</a> in the Amazon Bedrock User Guide.</p>\n <note>\n <p>The CLI doesn't support streaming operations in Amazon Bedrock, including <code>InvokeFlow</code>.</p>\n </note>",
33383338
"smithy.api#http": {
33393339
"code": 200,
33403340
"method": "POST",
@@ -3750,6 +3750,21 @@
37503750
}
37513751
}
37523752
},
3753+
"com.amazonaws.bedrockagentruntime#Metadata": {
3754+
"type": "structure",
3755+
"members": {
3756+
"usage": {
3757+
"target": "com.amazonaws.bedrockagentruntime#Usage",
3758+
"traits": {
3759+
"smithy.api#documentation": "<p>Contains details of the foundation model usage.</p>"
3760+
}
3761+
}
3762+
},
3763+
"traits": {
3764+
"smithy.api#documentation": "<p>Provides details of the foundation model.</p>",
3765+
"smithy.api#sensitive": {}
3766+
}
3767+
},
37533768
"com.amazonaws.bedrockagentruntime#MimeType": {
37543769
"type": "string"
37553770
},
@@ -3945,6 +3960,33 @@
39453960
"smithy.api#documentation": "<p>Settings for how the model processes the prompt prior to retrieval and generation.</p>"
39463961
}
39473962
},
3963+
"com.amazonaws.bedrockagentruntime#OrchestrationModelInvocationOutput": {
3964+
"type": "structure",
3965+
"members": {
3966+
"traceId": {
3967+
"target": "com.amazonaws.bedrockagentruntime#TraceId",
3968+
"traits": {
3969+
"smithy.api#documentation": "<p>The unique identifier of the trace.</p>"
3970+
}
3971+
},
3972+
"rawResponse": {
3973+
"target": "com.amazonaws.bedrockagentruntime#RawResponse",
3974+
"traits": {
3975+
"smithy.api#documentation": "<p>Contains details of the raw response from the foundation model output.</p>"
3976+
}
3977+
},
3978+
"metadata": {
3979+
"target": "com.amazonaws.bedrockagentruntime#Metadata",
3980+
"traits": {
3981+
"smithy.api#documentation": "<p>Contains information about the foundation model output.</p>"
3982+
}
3983+
}
3984+
},
3985+
"traits": {
3986+
"smithy.api#documentation": "<p>The foundation model output from the orchestration step.</p>",
3987+
"smithy.api#sensitive": {}
3988+
}
3989+
},
39483990
"com.amazonaws.bedrockagentruntime#OrchestrationTrace": {
39493991
"type": "union",
39503992
"members": {
@@ -3971,6 +4013,12 @@
39714013
"traits": {
39724014
"smithy.api#documentation": "<p>The input for the orchestration step.</p>\n <ul>\n <li>\n <p>The <code>type</code> is <code>ORCHESTRATION</code>.</p>\n </li>\n <li>\n <p>The <code>text</code> contains the prompt.</p>\n </li>\n <li>\n <p>The <code>inferenceConfiguration</code>, <code>parserMode</code>, and <code>overrideLambda</code> values are set in the <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptOverrideConfiguration.html\">PromptOverrideConfiguration</a> object that was set when the agent was created or updated.</p>\n </li>\n </ul>"
39734015
}
4016+
},
4017+
"modelInvocationOutput": {
4018+
"target": "com.amazonaws.bedrockagentruntime#OrchestrationModelInvocationOutput",
4019+
"traits": {
4020+
"smithy.api#documentation": "<p>Contains information pertaining to the output from the foundation model that is being invoked.</p>"
4021+
}
39744022
}
39754023
},
39764024
"traits": {
@@ -4354,6 +4402,21 @@
43544402
"smithy.api#sensitive": {}
43554403
}
43564404
},
4405+
"com.amazonaws.bedrockagentruntime#RawResponse": {
4406+
"type": "structure",
4407+
"members": {
4408+
"content": {
4409+
"target": "smithy.api#String",
4410+
"traits": {
4411+
"smithy.api#documentation": "<p>The foundation model's raw output content.</p>"
4412+
}
4413+
}
4414+
},
4415+
"traits": {
4416+
"smithy.api#documentation": "<p>Contains the raw output from the foundation model.</p>",
4417+
"smithy.api#sensitive": {}
4418+
}
4419+
},
43574420
"com.amazonaws.bedrockagentruntime#RepromptResponse": {
43584421
"type": "structure",
43594422
"members": {
@@ -5641,6 +5704,27 @@
56415704
}
56425705
}
56435706
},
5707+
"com.amazonaws.bedrockagentruntime#Usage": {
5708+
"type": "structure",
5709+
"members": {
5710+
"inputTokens": {
5711+
"target": "smithy.api#Integer",
5712+
"traits": {
5713+
"smithy.api#documentation": "<p>Contains information about the input tokens from the foundation model usage.</p>"
5714+
}
5715+
},
5716+
"outputTokens": {
5717+
"target": "smithy.api#Integer",
5718+
"traits": {
5719+
"smithy.api#documentation": "<p>Contains information about the output tokens from the foundation model usage.</p>"
5720+
}
5721+
}
5722+
},
5723+
"traits": {
5724+
"smithy.api#documentation": "<p>Contains information of the usage of the foundation model.</p>",
5725+
"smithy.api#sensitive": {}
5726+
}
5727+
},
56445728
"com.amazonaws.bedrockagentruntime#ValidationException": {
56455729
"type": "structure",
56465730
"members": {

0 commit comments

Comments
 (0)