Skip to content

Commit d8b5119

Browse files
Amazon Bedrock Flows introduces DoWhile loops nodes, parallel node executions, and enhancements to knowledge base nodes.
1 parent 78b3e38 commit d8b5119

File tree

90 files changed

+6405
-64
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+6405
-64
lines changed

generator/ServiceModels/bedrock-agent/bedrock-agent-2023-06-05.api.json

Lines changed: 290 additions & 3 deletions
Large diffs are not rendered by default.

generator/ServiceModels/bedrock-agent/bedrock-agent-2023-06-05.docs.json

Lines changed: 257 additions & 20 deletions
Large diffs are not rendered by default.

generator/ServiceModels/bedrock-agent/bedrock-agent-2023-06-05.normal.json

Lines changed: 489 additions & 21 deletions
Large diffs are not rendered by default.

sdk/code-analysis/ServiceAnalysis/BedrockAgent/Generated/PropertyValueRules.xml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2015,6 +2015,11 @@
20152015
<property>Amazon.BedrockAgent.Model.DuplicateConnectionsFlowValidationDetails.Target</property>
20162016
<pattern>^[a-zA-Z]([_]?[0-9a-zA-Z]){1,50}$</pattern>
20172017
</property-value-rule>
2018+
<property-value-rule>
2019+
<property>Amazon.BedrockAgent.Model.FieldForReranking.FieldName</property>
2020+
<min>1</min>
2021+
<max>2000</max>
2022+
</property-value-rule>
20182023
<property-value-rule>
20192024
<property>Amazon.BedrockAgent.Model.FixedSizeChunkingConfiguration.MaxTokens</property>
20202025
<min>1</min>
@@ -2024,6 +2029,11 @@
20242029
<min>1</min>
20252030
<max>99</max>
20262031
</property-value-rule>
2032+
<property-value-rule>
2033+
<property>Amazon.BedrockAgent.Model.FlowAliasConcurrencyConfiguration.MaxConcurrency</property>
2034+
<min>1</min>
2035+
<max>100</max>
2036+
</property-value-rule>
20272037
<property-value-rule>
20282038
<property>Amazon.BedrockAgent.Model.FlowAliasRoutingConfigurationListItem.FlowVersion</property>
20292039
<min>1</min>
@@ -2230,6 +2240,18 @@
22302240
<min>1</min>
22312241
<max>5000000</max>
22322242
</property-value-rule>
2243+
<property-value-rule>
2244+
<property>Amazon.BedrockAgent.Model.InvalidLoopBoundaryFlowValidationDetails.Connection</property>
2245+
<pattern>^[a-zA-Z]([_]?[0-9a-zA-Z]){1,100}$</pattern>
2246+
</property-value-rule>
2247+
<property-value-rule>
2248+
<property>Amazon.BedrockAgent.Model.InvalidLoopBoundaryFlowValidationDetails.Source</property>
2249+
<pattern>^[a-zA-Z]([_]?[0-9a-zA-Z]){1,50}$</pattern>
2250+
</property-value-rule>
2251+
<property-value-rule>
2252+
<property>Amazon.BedrockAgent.Model.InvalidLoopBoundaryFlowValidationDetails.Target</property>
2253+
<pattern>^[a-zA-Z]([_]?[0-9a-zA-Z]){1,50}$</pattern>
2254+
</property-value-rule>
22332255
<property-value-rule>
22342256
<property>Amazon.BedrockAgent.Model.KendraKnowledgeBaseConfiguration.KendraIndexArn</property>
22352257
<pattern>^arn:aws(|-cn|-us-gov):kendra:[a-z0-9-]{1,20}:([0-9]{12}|):index/([a-zA-Z0-9][a-zA-Z0-9-]{35}|[a-zA-Z0-9][a-zA-Z0-9-]{35}-[a-zA-Z0-9][a-zA-Z0-9-]{35})$</pattern>
@@ -2279,6 +2301,16 @@
22792301
<max>2048</max>
22802302
<pattern>^(arn:aws(-[^:]{1,12})?:(bedrock|sagemaker):[a-z0-9-]{1,20}:([0-9]{12})?:([a-z-]+/)?)?([a-zA-Z0-9.-]{1,63}){0,2}(([:][a-z0-9-]{1,63}){0,2})?(/[a-z0-9]{1,12})?$</pattern>
22812303
</property-value-rule>
2304+
<property-value-rule>
2305+
<property>Amazon.BedrockAgent.Model.KnowledgeBaseFlowNodeConfiguration.NumberOfResults</property>
2306+
<min>1</min>
2307+
<max>100</max>
2308+
</property-value-rule>
2309+
<property-value-rule>
2310+
<property>Amazon.BedrockAgent.Model.KnowledgeBasePromptTemplate.TextPromptTemplate</property>
2311+
<min>1</min>
2312+
<max>100000</max>
2313+
</property-value-rule>
22822314
<property-value-rule>
22832315
<property>Amazon.BedrockAgent.Model.KnowledgeBaseSummary.Description</property>
22842316
<min>1</min>
@@ -2309,6 +2341,19 @@
23092341
<min>1</min>
23102342
<max>10</max>
23112343
</property-value-rule>
2344+
<property-value-rule>
2345+
<property>Amazon.BedrockAgent.Model.LoopControllerFlowNodeConfiguration.MaxIterations</property>
2346+
<min>1</min>
2347+
<max>1000</max>
2348+
</property-value-rule>
2349+
<property-value-rule>
2350+
<property>Amazon.BedrockAgent.Model.LoopIncompatibleNodeTypeFlowValidationDetails.IncompatibleNodeName</property>
2351+
<pattern>^[a-zA-Z]([_]?[0-9a-zA-Z]){1,50}$</pattern>
2352+
</property-value-rule>
2353+
<property-value-rule>
2354+
<property>Amazon.BedrockAgent.Model.LoopIncompatibleNodeTypeFlowValidationDetails.Node</property>
2355+
<pattern>^[a-zA-Z]([_]?[0-9a-zA-Z]){1,50}$</pattern>
2356+
</property-value-rule>
23122357
<property-value-rule>
23132358
<property>Amazon.BedrockAgent.Model.MalformedConditionExpressionFlowValidationDetails.Cause</property>
23142359
<min>0</min>
@@ -2374,6 +2419,14 @@
23742419
<property>Amazon.BedrockAgent.Model.MissingDefaultConditionFlowValidationDetails.Node</property>
23752420
<pattern>^[a-zA-Z]([_]?[0-9a-zA-Z]){1,50}$</pattern>
23762421
</property-value-rule>
2422+
<property-value-rule>
2423+
<property>Amazon.BedrockAgent.Model.MissingLoopControllerNodeFlowValidationDetails.LoopNode</property>
2424+
<pattern>^[a-zA-Z]([_]?[0-9a-zA-Z]){1,50}$</pattern>
2425+
</property-value-rule>
2426+
<property-value-rule>
2427+
<property>Amazon.BedrockAgent.Model.MissingLoopInputNodeFlowValidationDetails.LoopNode</property>
2428+
<pattern>^[a-zA-Z]([_]?[0-9a-zA-Z]){1,50}$</pattern>
2429+
</property-value-rule>
23772430
<property-value-rule>
23782431
<property>Amazon.BedrockAgent.Model.MissingNodeConfigurationFlowValidationDetails.Node</property>
23792432
<pattern>^[a-zA-Z]([_]?[0-9a-zA-Z]){1,50}$</pattern>
@@ -2452,6 +2505,14 @@
24522505
<max>2048</max>
24532506
<pattern>^.*$</pattern>
24542507
</property-value-rule>
2508+
<property-value-rule>
2509+
<property>Amazon.BedrockAgent.Model.MultipleLoopControllerNodesFlowValidationDetails.LoopNode</property>
2510+
<pattern>^[a-zA-Z]([_]?[0-9a-zA-Z]){1,50}$</pattern>
2511+
</property-value-rule>
2512+
<property-value-rule>
2513+
<property>Amazon.BedrockAgent.Model.MultipleLoopInputNodesFlowValidationDetails.LoopNode</property>
2514+
<pattern>^[a-zA-Z]([_]?[0-9a-zA-Z]){1,50}$</pattern>
2515+
</property-value-rule>
24552516
<property-value-rule>
24562517
<property>Amazon.BedrockAgent.Model.MultipleNodeInputConnectionsFlowValidationDetails.Input</property>
24572518
<pattern>^[a-zA-Z]([_]?[0-9a-zA-Z]){1,50}$</pattern>
@@ -3012,6 +3073,17 @@
30123073
<max>2048</max>
30133074
<pattern>^(arn:aws(-[^:]{1,12})?:(bedrock|sagemaker):[a-z0-9-]{1,20}:([0-9]{12})?:([a-z-]+/)?)?([a-zA-Z0-9.-]{1,63}){0,2}(([:][a-z0-9-]{1,63}){0,2})?(/[a-z0-9]{1,12})?$</pattern>
30143075
</property-value-rule>
3076+
<property-value-rule>
3077+
<property>Amazon.BedrockAgent.Model.VectorSearchBedrockRerankingConfiguration.NumberOfRerankedResults</property>
3078+
<min>1</min>
3079+
<max>100</max>
3080+
</property-value-rule>
3081+
<property-value-rule>
3082+
<property>Amazon.BedrockAgent.Model.VectorSearchBedrockRerankingModelConfiguration.ModelArn</property>
3083+
<min>1</min>
3084+
<max>2048</max>
3085+
<pattern>^(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}::foundation-model/(.*))?$</pattern>
3086+
</property-value-rule>
30153087
<property-value-rule>
30163088
<property>Amazon.BedrockAgent.Model.WebCrawlerConfiguration.UserAgent</property>
30173089
<min>15</min>

sdk/src/Services/BedrockAgent/Generated/Model/AgentActionGroup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ internal bool IsSetFunctionSchema()
274274
/// <important>
275275
/// <para>
276276
/// Computer use is a new Anthropic Claude model capability (in beta) available with
277-
/// Claude 3.7 Sonnet and Claude 3.5 Sonnet v2 only. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agents-computer-use.html">Configure
277+
/// Claude 3.7 Sonnet and Claude 3.5 Sonnet v2 only. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agent-computer-use.html">Configure
278278
/// an Amazon Bedrock Agent to complete tasks with computer use tools</a>.
279279
/// </para>
280280
/// </important>

sdk/src/Services/BedrockAgent/Generated/Model/AgentFlowNodeConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace Amazon.BedrockAgent.Model
3232
/// <summary>
3333
/// Defines an agent node in your flow. You specify the agent to invoke at this point
3434
/// in the flow. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html">Node
35-
/// types in Amazon Bedrock works</a> in the Amazon Bedrock User Guide.
35+
/// types in a flow</a> in the Amazon Bedrock User Guide.
3636
/// </summary>
3737
public partial class AgentFlowNodeConfiguration
3838
{

sdk/src/Services/BedrockAgent/Generated/Model/CollectorFlowNodeConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace Amazon.BedrockAgent.Model
3232
/// <summary>
3333
/// Defines a collector node in your flow. This node takes an iteration of inputs and
3434
/// consolidates them into an array in the output. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html">Node
35-
/// types in Amazon Bedrock works</a> in the Amazon Bedrock User Guide.
35+
/// types in a flow</a> in the Amazon Bedrock User Guide.
3636
/// </summary>
3737
public partial class CollectorFlowNodeConfiguration
3838
{

sdk/src/Services/BedrockAgent/Generated/Model/ConditionFlowNodeConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace Amazon.BedrockAgent.Model
3232
/// <summary>
3333
/// Defines a condition node in your flow. You can specify conditions that determine which
3434
/// node comes next in the flow. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html">Node
35-
/// types in Amazon Bedrock works</a> in the Amazon Bedrock User Guide.
35+
/// types in a flow</a> in the Amazon Bedrock User Guide.
3636
/// </summary>
3737
public partial class ConditionFlowNodeConfiguration
3838
{

sdk/src/Services/BedrockAgent/Generated/Model/CreateAgentActionGroupRequest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ internal bool IsSetFunctionSchema()
277277
/// Anthropic Claude 3.7 Sonnet and Claude 3.5 Sonnet v2 only. When operating computer
278278
/// use functionality, we recommend taking additional security precautions, such as executing
279279
/// computer actions in virtual environments with restricted data access and limited internet
280-
/// connectivity. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agents-computer-use.html">Configure
280+
/// connectivity. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agent-computer-use.html">Configure
281281
/// an Amazon Bedrock Agent to complete tasks with computer use tools</a>.
282282
/// </para>
283283
/// </important> <ul> <li>
@@ -317,7 +317,7 @@ internal bool IsSetParentActionGroupSignature()
317317
/// <para>
318318
/// Computer use is a new Anthropic Claude model capability (in beta) available with
319319
/// Anthropic Claude 3.7 Sonnet and Claude 3.5 Sonnet v2 only. For more information, see
320-
/// <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agents-computer-use.html">Configure
320+
/// <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agent-computer-use.html">Configure
321321
/// an Amazon Bedrock Agent to complete tasks with computer use tools</a>.
322322
/// </para>
323323
/// </important>

sdk/src/Services/BedrockAgent/Generated/Model/CreateFlowAliasRequest.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ namespace Amazon.BedrockAgent.Model
3737
public partial class CreateFlowAliasRequest : AmazonBedrockAgentRequest
3838
{
3939
private string _clientToken;
40+
private FlowAliasConcurrencyConfiguration _concurrencyConfiguration;
4041
private string _description;
4142
private string _flowIdentifier;
4243
private string _name;
@@ -65,6 +66,24 @@ internal bool IsSetClientToken()
6566
return this._clientToken != null;
6667
}
6768

69+
/// <summary>
70+
/// Gets and sets the property ConcurrencyConfiguration.
71+
/// <para>
72+
/// The configuration that specifies how nodes in the flow are executed in parallel.
73+
/// </para>
74+
/// </summary>
75+
public FlowAliasConcurrencyConfiguration ConcurrencyConfiguration
76+
{
77+
get { return this._concurrencyConfiguration; }
78+
set { this._concurrencyConfiguration = value; }
79+
}
80+
81+
// Check to see if ConcurrencyConfiguration property is set
82+
internal bool IsSetConcurrencyConfiguration()
83+
{
84+
return this._concurrencyConfiguration != null;
85+
}
86+
6887
/// <summary>
6988
/// Gets and sets the property Description.
7089
/// <para>

0 commit comments

Comments
 (0)