Skip to content

Commit 6bf4892

Browse files
author
AWS
committed
Agents for Amazon Bedrock Update: Add support for the prompt caching feature for Bedrock Prompt Management
1 parent 3c74396 commit 6bf4892

File tree

2 files changed

+90
-6
lines changed

2 files changed

+90
-6
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",
4+
"contributor": "",
5+
"description": "Add support for the prompt caching feature for Bedrock Prompt Management"
6+
}

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

Lines changed: 84 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1708,7 +1708,7 @@
17081708
},
17091709
"agentAliasStatus":{
17101710
"shape":"AgentAliasStatus",
1711-
"documentation":"<p>The status of the alias of the agent and whether it is ready for use. The following statuses are possible:</p> <ul> <li> <p>CREATING – The agent alias is being created.</p> </li> <li> <p>PREPARED – The agent alias is finished being created or updated and is ready to be invoked.</p> </li> <li> <p>FAILED – The agent alias API operation failed.</p> </li> <li> <p>UPDATING – The agent alias is being updated.</p> </li> <li> <p>DELETING – The agent alias is being deleted.</p> </li> </ul>"
1711+
"documentation":"<p>The status of the alias of the agent and whether it is ready for use. The following statuses are possible:</p> <ul> <li> <p>CREATING – The agent alias is being created.</p> </li> <li> <p>PREPARED – The agent alias is finished being created or updated and is ready to be invoked.</p> </li> <li> <p>FAILED – The agent alias API operation failed.</p> </li> <li> <p>UPDATING – The agent alias is being updated.</p> </li> <li> <p>DELETING – The agent alias is being deleted.</p> </li> <li> <p>DISSOCIATED - The agent alias has no version associated with it.</p> </li> </ul>"
17121712
},
17131713
"agentId":{
17141714
"shape":"Id",
@@ -1804,7 +1804,8 @@
18041804
"PREPARED",
18051805
"FAILED",
18061806
"UPDATING",
1807-
"DELETING"
1807+
"DELETING",
1808+
"DISSOCIATED"
18081809
]
18091810
},
18101811
"AgentAliasSummaries":{
@@ -2508,6 +2509,21 @@
25082509
"type":"string",
25092510
"pattern":"[a-z]{1,20}/.{1,20}"
25102511
},
2512+
"CachePointBlock":{
2513+
"type":"structure",
2514+
"required":["type"],
2515+
"members":{
2516+
"type":{
2517+
"shape":"CachePointType",
2518+
"documentation":"<p>Indicates that the CachePointBlock is of the default type</p>"
2519+
}
2520+
},
2521+
"documentation":"<p>Indicates where a cache checkpoint is located. All information before this checkpoint is cached to be accessed on subsequent requests.</p>"
2522+
},
2523+
"CachePointType":{
2524+
"type":"string",
2525+
"enum":["default"]
2526+
},
25112527
"ChatPromptTemplateConfiguration":{
25122528
"type":"structure",
25132529
"required":["messages"],
@@ -2678,6 +2694,10 @@
26782694
"ContentBlock":{
26792695
"type":"structure",
26802696
"members":{
2697+
"cachePoint":{
2698+
"shape":"CachePointBlock",
2699+
"documentation":"<p>Creates a cache checkpoint within a message.</p>"
2700+
},
26812701
"text":{
26822702
"shape":"String",
26832703
"documentation":"<p>The text in the message.</p>"
@@ -4910,7 +4930,7 @@
49104930
"FlowNodes":{
49114931
"type":"list",
49124932
"member":{"shape":"FlowNode"},
4913-
"max":20,
4933+
"max":40,
49144934
"min":0
49154935
},
49164936
"FlowStatus":{
@@ -5092,6 +5112,14 @@
50925112
"shape":"UnknownConnectionTargetInputFlowValidationDetails",
50935113
"documentation":"<p>Details about an unknown target input for a connection.</p>"
50945114
},
5115+
"unknownNodeInput":{
5116+
"shape":"UnknownNodeInputFlowValidationDetails",
5117+
"documentation":"<p>Details about an unknown input for a node.</p>"
5118+
},
5119+
"unknownNodeOutput":{
5120+
"shape":"UnknownNodeOutputFlowValidationDetails",
5121+
"documentation":"<p>Details about an unknown output for a node.</p>"
5122+
},
50955123
"unreachableNode":{
50965124
"shape":"UnreachableNodeFlowValidationDetails",
50975125
"documentation":"<p>Details about an unreachable node in the flow.</p>"
@@ -5142,7 +5170,9 @@
51425170
"MultipleNodeInputConnections",
51435171
"UnfulfilledNodeInput",
51445172
"UnsatisfiedConnectionConditions",
5145-
"Unspecified"
5173+
"Unspecified",
5174+
"UnknownNodeInput",
5175+
"UnknownNodeOutput"
51465176
]
51475177
},
51485178
"FlowValidations":{
@@ -7227,7 +7257,7 @@
72277257
"MaximumLength":{
72287258
"type":"integer",
72297259
"box":true,
7230-
"max":4096,
7260+
"max":8192,
72317261
"min":0
72327262
},
72337263
"MemoryConfiguration":{
@@ -8131,7 +8161,7 @@
81318161
"PromptInputVariablesList":{
81328162
"type":"list",
81338163
"member":{"shape":"PromptInputVariable"},
8134-
"max":5,
8164+
"max":10,
81358165
"min":0,
81368166
"sensitive":true
81378167
},
@@ -9451,6 +9481,10 @@
94519481
"SystemContentBlock":{
94529482
"type":"structure",
94539483
"members":{
9484+
"cachePoint":{
9485+
"shape":"CachePointBlock",
9486+
"documentation":"<p>Creates a cache checkpoint within a tool designation</p>"
9487+
},
94549488
"text":{
94559489
"shape":"NonEmptyString",
94569490
"documentation":"<p>The text in the system prompt.</p>"
@@ -9544,6 +9578,10 @@
95449578
"type":"structure",
95459579
"required":["text"],
95469580
"members":{
9581+
"cachePoint":{
9582+
"shape":"CachePointBlock",
9583+
"documentation":"<p>A cache checkpoint within a template configuration.</p>"
9584+
},
95479585
"inputVariables":{
95489586
"shape":"PromptInputVariablesList",
95499587
"documentation":"<p>An array of the variables in the prompt template.</p>"
@@ -9571,6 +9609,10 @@
95719609
"Tool":{
95729610
"type":"structure",
95739611
"members":{
9612+
"cachePoint":{
9613+
"shape":"CachePointBlock",
9614+
"documentation":"<p>Creates a cache checkpoint within a tool designation</p>"
9615+
},
95749616
"toolSpec":{
95759617
"shape":"ToolSpecification",
95769618
"documentation":"<p>The specification for the tool.</p>"
@@ -9800,6 +9842,42 @@
98009842
},
98019843
"documentation":"<p>Details about an unknown target input for a connection.</p>"
98029844
},
9845+
"UnknownNodeInputFlowValidationDetails":{
9846+
"type":"structure",
9847+
"required":[
9848+
"input",
9849+
"node"
9850+
],
9851+
"members":{
9852+
"input":{
9853+
"shape":"FlowNodeInputName",
9854+
"documentation":"<p>The name of the node with the unknown input.</p>"
9855+
},
9856+
"node":{
9857+
"shape":"FlowNodeName",
9858+
"documentation":"<p>The name of the unknown input.</p>"
9859+
}
9860+
},
9861+
"documentation":"<p>Details about an unknown input for a node.</p>"
9862+
},
9863+
"UnknownNodeOutputFlowValidationDetails":{
9864+
"type":"structure",
9865+
"required":[
9866+
"node",
9867+
"output"
9868+
],
9869+
"members":{
9870+
"node":{
9871+
"shape":"FlowNodeName",
9872+
"documentation":"<p>The name of the node with the unknown output.</p>"
9873+
},
9874+
"output":{
9875+
"shape":"FlowNodeOutputName",
9876+
"documentation":"<p>The name of the unknown output.</p>"
9877+
}
9878+
},
9879+
"documentation":"<p>Details about an unknown output for a node.</p>"
9880+
},
98039881
"UnreachableNodeFlowValidationDetails":{
98049882
"type":"structure",
98059883
"required":["node"],

0 commit comments

Comments
 (0)