aws-sdk-bedrockagent 1.33.0 → 1.35.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -524,7 +524,6 @@ module Aws::BedrockAgent
524
524
  # seconds for which the agent should maintain session information.
525
525
  # After this time expires, the subsequent `InvokeAgent` request
526
526
  # begins a new session.
527
- #
528
527
  # * To enable your agent to retain conversational context across
529
528
  # multiple sessions, include a `memoryConfiguration` object. For more
530
529
  # information, see [Configure memory][1].
@@ -1408,6 +1407,10 @@ module Aws::BedrockAgent
1408
1407
  # iterator: {
1409
1408
  # },
1410
1409
  # knowledge_base: {
1410
+ # guardrail_configuration: {
1411
+ # guardrail_identifier: "GuardrailIdentifier",
1412
+ # guardrail_version: "GuardrailVersion",
1413
+ # },
1411
1414
  # knowledge_base_id: "KnowledgeBaseId", # required
1412
1415
  # model_id: "KnowledgeBaseModelIdentifier",
1413
1416
  # },
@@ -1421,6 +1424,10 @@ module Aws::BedrockAgent
1421
1424
  # output: {
1422
1425
  # },
1423
1426
  # prompt: {
1427
+ # guardrail_configuration: {
1428
+ # guardrail_identifier: "GuardrailIdentifier",
1429
+ # guardrail_version: "GuardrailVersion",
1430
+ # },
1424
1431
  # source_configuration: { # required
1425
1432
  # inline: {
1426
1433
  # additional_model_request_fields: {
@@ -1435,6 +1442,51 @@ module Aws::BedrockAgent
1435
1442
  # },
1436
1443
  # model_id: "PromptModelIdentifier", # required
1437
1444
  # template_configuration: { # required
1445
+ # chat: {
1446
+ # input_variables: [
1447
+ # {
1448
+ # name: "PromptInputVariableName",
1449
+ # },
1450
+ # ],
1451
+ # messages: [ # required
1452
+ # {
1453
+ # content: [ # required
1454
+ # {
1455
+ # text: "String",
1456
+ # },
1457
+ # ],
1458
+ # role: "user", # required, accepts user, assistant
1459
+ # },
1460
+ # ],
1461
+ # system: [
1462
+ # {
1463
+ # text: "NonEmptyString",
1464
+ # },
1465
+ # ],
1466
+ # tool_configuration: {
1467
+ # tool_choice: {
1468
+ # any: {
1469
+ # },
1470
+ # auto: {
1471
+ # },
1472
+ # tool: {
1473
+ # name: "ToolName", # required
1474
+ # },
1475
+ # },
1476
+ # tools: [ # required
1477
+ # {
1478
+ # tool_spec: {
1479
+ # description: "NonEmptyString",
1480
+ # input_schema: { # required
1481
+ # json: {
1482
+ # },
1483
+ # },
1484
+ # name: "ToolName", # required
1485
+ # },
1486
+ # },
1487
+ # ],
1488
+ # },
1489
+ # },
1438
1490
  # text: {
1439
1491
  # input_variables: [
1440
1492
  # {
@@ -1444,7 +1496,7 @@ module Aws::BedrockAgent
1444
1496
  # text: "TextPrompt", # required
1445
1497
  # },
1446
1498
  # },
1447
- # template_type: "TEXT", # required, accepts TEXT
1499
+ # template_type: "TEXT", # required, accepts TEXT, CHAT
1448
1500
  # },
1449
1501
  # resource: {
1450
1502
  # prompt_arn: "PromptArn", # required
@@ -1510,21 +1562,37 @@ module Aws::BedrockAgent
1510
1562
  # resp.definition.nodes[0].configuration.condition.conditions #=> Array
1511
1563
  # resp.definition.nodes[0].configuration.condition.conditions[0].expression #=> String
1512
1564
  # resp.definition.nodes[0].configuration.condition.conditions[0].name #=> String
1565
+ # resp.definition.nodes[0].configuration.knowledge_base.guardrail_configuration.guardrail_identifier #=> String
1566
+ # resp.definition.nodes[0].configuration.knowledge_base.guardrail_configuration.guardrail_version #=> String
1513
1567
  # resp.definition.nodes[0].configuration.knowledge_base.knowledge_base_id #=> String
1514
1568
  # resp.definition.nodes[0].configuration.knowledge_base.model_id #=> String
1515
1569
  # resp.definition.nodes[0].configuration.lambda_function.lambda_arn #=> String
1516
1570
  # resp.definition.nodes[0].configuration.lex.bot_alias_arn #=> String
1517
1571
  # resp.definition.nodes[0].configuration.lex.locale_id #=> String
1572
+ # resp.definition.nodes[0].configuration.prompt.guardrail_configuration.guardrail_identifier #=> String
1573
+ # resp.definition.nodes[0].configuration.prompt.guardrail_configuration.guardrail_version #=> String
1518
1574
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.max_tokens #=> Integer
1519
1575
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.stop_sequences #=> Array
1520
1576
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.stop_sequences[0] #=> String
1521
1577
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.temperature #=> Float
1522
1578
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.top_p #=> Float
1523
1579
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.model_id #=> String
1580
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.input_variables #=> Array
1581
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.input_variables[0].name #=> String
1582
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.messages #=> Array
1583
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.messages[0].content #=> Array
1584
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.messages[0].content[0].text #=> String
1585
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.messages[0].role #=> String, one of "user", "assistant"
1586
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.system #=> Array
1587
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.system[0].text #=> String
1588
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.tool_configuration.tool_choice.tool.name #=> String
1589
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.tool_configuration.tools #=> Array
1590
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.tool_configuration.tools[0].tool_spec.description #=> String
1591
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.tool_configuration.tools[0].tool_spec.name #=> String
1524
1592
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.text.input_variables #=> Array
1525
1593
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.text.input_variables[0].name #=> String
1526
1594
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.text.text #=> String
1527
- # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_type #=> String, one of "TEXT"
1595
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_type #=> String, one of "TEXT", "CHAT"
1528
1596
  # resp.definition.nodes[0].configuration.prompt.source_configuration.resource.prompt_arn #=> String
1529
1597
  # resp.definition.nodes[0].configuration.retrieval.service_configuration.s3.bucket_name #=> String
1530
1598
  # resp.definition.nodes[0].configuration.storage.service_configuration.s3.bucket_name #=> String
@@ -1710,21 +1778,37 @@ module Aws::BedrockAgent
1710
1778
  # resp.definition.nodes[0].configuration.condition.conditions #=> Array
1711
1779
  # resp.definition.nodes[0].configuration.condition.conditions[0].expression #=> String
1712
1780
  # resp.definition.nodes[0].configuration.condition.conditions[0].name #=> String
1781
+ # resp.definition.nodes[0].configuration.knowledge_base.guardrail_configuration.guardrail_identifier #=> String
1782
+ # resp.definition.nodes[0].configuration.knowledge_base.guardrail_configuration.guardrail_version #=> String
1713
1783
  # resp.definition.nodes[0].configuration.knowledge_base.knowledge_base_id #=> String
1714
1784
  # resp.definition.nodes[0].configuration.knowledge_base.model_id #=> String
1715
1785
  # resp.definition.nodes[0].configuration.lambda_function.lambda_arn #=> String
1716
1786
  # resp.definition.nodes[0].configuration.lex.bot_alias_arn #=> String
1717
1787
  # resp.definition.nodes[0].configuration.lex.locale_id #=> String
1788
+ # resp.definition.nodes[0].configuration.prompt.guardrail_configuration.guardrail_identifier #=> String
1789
+ # resp.definition.nodes[0].configuration.prompt.guardrail_configuration.guardrail_version #=> String
1718
1790
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.max_tokens #=> Integer
1719
1791
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.stop_sequences #=> Array
1720
1792
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.stop_sequences[0] #=> String
1721
1793
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.temperature #=> Float
1722
1794
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.top_p #=> Float
1723
1795
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.model_id #=> String
1796
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.input_variables #=> Array
1797
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.input_variables[0].name #=> String
1798
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.messages #=> Array
1799
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.messages[0].content #=> Array
1800
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.messages[0].content[0].text #=> String
1801
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.messages[0].role #=> String, one of "user", "assistant"
1802
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.system #=> Array
1803
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.system[0].text #=> String
1804
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.tool_configuration.tool_choice.tool.name #=> String
1805
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.tool_configuration.tools #=> Array
1806
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.tool_configuration.tools[0].tool_spec.description #=> String
1807
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.tool_configuration.tools[0].tool_spec.name #=> String
1724
1808
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.text.input_variables #=> Array
1725
1809
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.text.input_variables[0].name #=> String
1726
1810
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.text.text #=> String
1727
- # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_type #=> String, one of "TEXT"
1811
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_type #=> String, one of "TEXT", "CHAT"
1728
1812
  # resp.definition.nodes[0].configuration.prompt.source_configuration.resource.prompt_arn #=> String
1729
1813
  # resp.definition.nodes[0].configuration.retrieval.service_configuration.s3.bucket_name #=> String
1730
1814
  # resp.definition.nodes[0].configuration.storage.service_configuration.s3.bucket_name #=> String
@@ -2058,6 +2142,11 @@ module Aws::BedrockAgent
2058
2142
  # {
2059
2143
  # additional_model_request_fields: {
2060
2144
  # },
2145
+ # gen_ai_resource: {
2146
+ # agent: {
2147
+ # agent_identifier: "AgentAliasArn", # required
2148
+ # },
2149
+ # },
2061
2150
  # inference_configuration: {
2062
2151
  # text: {
2063
2152
  # max_tokens: 1,
@@ -2075,6 +2164,51 @@ module Aws::BedrockAgent
2075
2164
  # model_id: "PromptModelIdentifier",
2076
2165
  # name: "PromptVariantName", # required
2077
2166
  # template_configuration: { # required
2167
+ # chat: {
2168
+ # input_variables: [
2169
+ # {
2170
+ # name: "PromptInputVariableName",
2171
+ # },
2172
+ # ],
2173
+ # messages: [ # required
2174
+ # {
2175
+ # content: [ # required
2176
+ # {
2177
+ # text: "String",
2178
+ # },
2179
+ # ],
2180
+ # role: "user", # required, accepts user, assistant
2181
+ # },
2182
+ # ],
2183
+ # system: [
2184
+ # {
2185
+ # text: "NonEmptyString",
2186
+ # },
2187
+ # ],
2188
+ # tool_configuration: {
2189
+ # tool_choice: {
2190
+ # any: {
2191
+ # },
2192
+ # auto: {
2193
+ # },
2194
+ # tool: {
2195
+ # name: "ToolName", # required
2196
+ # },
2197
+ # },
2198
+ # tools: [ # required
2199
+ # {
2200
+ # tool_spec: {
2201
+ # description: "NonEmptyString",
2202
+ # input_schema: { # required
2203
+ # json: {
2204
+ # },
2205
+ # },
2206
+ # name: "ToolName", # required
2207
+ # },
2208
+ # },
2209
+ # ],
2210
+ # },
2211
+ # },
2078
2212
  # text: {
2079
2213
  # input_variables: [
2080
2214
  # {
@@ -2084,7 +2218,7 @@ module Aws::BedrockAgent
2084
2218
  # text: "TextPrompt", # required
2085
2219
  # },
2086
2220
  # },
2087
- # template_type: "TEXT", # required, accepts TEXT
2221
+ # template_type: "TEXT", # required, accepts TEXT, CHAT
2088
2222
  # },
2089
2223
  # ],
2090
2224
  # })
@@ -2100,6 +2234,7 @@ module Aws::BedrockAgent
2100
2234
  # resp.name #=> String
2101
2235
  # resp.updated_at #=> Time
2102
2236
  # resp.variants #=> Array
2237
+ # resp.variants[0].gen_ai_resource.agent.agent_identifier #=> String
2103
2238
  # resp.variants[0].inference_configuration.text.max_tokens #=> Integer
2104
2239
  # resp.variants[0].inference_configuration.text.stop_sequences #=> Array
2105
2240
  # resp.variants[0].inference_configuration.text.stop_sequences[0] #=> String
@@ -2110,10 +2245,22 @@ module Aws::BedrockAgent
2110
2245
  # resp.variants[0].metadata[0].value #=> String
2111
2246
  # resp.variants[0].model_id #=> String
2112
2247
  # resp.variants[0].name #=> String
2248
+ # resp.variants[0].template_configuration.chat.input_variables #=> Array
2249
+ # resp.variants[0].template_configuration.chat.input_variables[0].name #=> String
2250
+ # resp.variants[0].template_configuration.chat.messages #=> Array
2251
+ # resp.variants[0].template_configuration.chat.messages[0].content #=> Array
2252
+ # resp.variants[0].template_configuration.chat.messages[0].content[0].text #=> String
2253
+ # resp.variants[0].template_configuration.chat.messages[0].role #=> String, one of "user", "assistant"
2254
+ # resp.variants[0].template_configuration.chat.system #=> Array
2255
+ # resp.variants[0].template_configuration.chat.system[0].text #=> String
2256
+ # resp.variants[0].template_configuration.chat.tool_configuration.tool_choice.tool.name #=> String
2257
+ # resp.variants[0].template_configuration.chat.tool_configuration.tools #=> Array
2258
+ # resp.variants[0].template_configuration.chat.tool_configuration.tools[0].tool_spec.description #=> String
2259
+ # resp.variants[0].template_configuration.chat.tool_configuration.tools[0].tool_spec.name #=> String
2113
2260
  # resp.variants[0].template_configuration.text.input_variables #=> Array
2114
2261
  # resp.variants[0].template_configuration.text.input_variables[0].name #=> String
2115
2262
  # resp.variants[0].template_configuration.text.text #=> String
2116
- # resp.variants[0].template_type #=> String, one of "TEXT"
2263
+ # resp.variants[0].template_type #=> String, one of "TEXT", "CHAT"
2117
2264
  # resp.version #=> String
2118
2265
  #
2119
2266
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/CreatePrompt AWS API Documentation
@@ -2196,6 +2343,7 @@ module Aws::BedrockAgent
2196
2343
  # resp.name #=> String
2197
2344
  # resp.updated_at #=> Time
2198
2345
  # resp.variants #=> Array
2346
+ # resp.variants[0].gen_ai_resource.agent.agent_identifier #=> String
2199
2347
  # resp.variants[0].inference_configuration.text.max_tokens #=> Integer
2200
2348
  # resp.variants[0].inference_configuration.text.stop_sequences #=> Array
2201
2349
  # resp.variants[0].inference_configuration.text.stop_sequences[0] #=> String
@@ -2206,10 +2354,22 @@ module Aws::BedrockAgent
2206
2354
  # resp.variants[0].metadata[0].value #=> String
2207
2355
  # resp.variants[0].model_id #=> String
2208
2356
  # resp.variants[0].name #=> String
2357
+ # resp.variants[0].template_configuration.chat.input_variables #=> Array
2358
+ # resp.variants[0].template_configuration.chat.input_variables[0].name #=> String
2359
+ # resp.variants[0].template_configuration.chat.messages #=> Array
2360
+ # resp.variants[0].template_configuration.chat.messages[0].content #=> Array
2361
+ # resp.variants[0].template_configuration.chat.messages[0].content[0].text #=> String
2362
+ # resp.variants[0].template_configuration.chat.messages[0].role #=> String, one of "user", "assistant"
2363
+ # resp.variants[0].template_configuration.chat.system #=> Array
2364
+ # resp.variants[0].template_configuration.chat.system[0].text #=> String
2365
+ # resp.variants[0].template_configuration.chat.tool_configuration.tool_choice.tool.name #=> String
2366
+ # resp.variants[0].template_configuration.chat.tool_configuration.tools #=> Array
2367
+ # resp.variants[0].template_configuration.chat.tool_configuration.tools[0].tool_spec.description #=> String
2368
+ # resp.variants[0].template_configuration.chat.tool_configuration.tools[0].tool_spec.name #=> String
2209
2369
  # resp.variants[0].template_configuration.text.input_variables #=> Array
2210
2370
  # resp.variants[0].template_configuration.text.input_variables[0].name #=> String
2211
2371
  # resp.variants[0].template_configuration.text.text #=> String
2212
- # resp.variants[0].template_type #=> String, one of "TEXT"
2372
+ # resp.variants[0].template_type #=> String, one of "TEXT", "CHAT"
2213
2373
  # resp.version #=> String
2214
2374
  #
2215
2375
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/CreatePromptVersion AWS API Documentation
@@ -3068,21 +3228,37 @@ module Aws::BedrockAgent
3068
3228
  # resp.definition.nodes[0].configuration.condition.conditions #=> Array
3069
3229
  # resp.definition.nodes[0].configuration.condition.conditions[0].expression #=> String
3070
3230
  # resp.definition.nodes[0].configuration.condition.conditions[0].name #=> String
3231
+ # resp.definition.nodes[0].configuration.knowledge_base.guardrail_configuration.guardrail_identifier #=> String
3232
+ # resp.definition.nodes[0].configuration.knowledge_base.guardrail_configuration.guardrail_version #=> String
3071
3233
  # resp.definition.nodes[0].configuration.knowledge_base.knowledge_base_id #=> String
3072
3234
  # resp.definition.nodes[0].configuration.knowledge_base.model_id #=> String
3073
3235
  # resp.definition.nodes[0].configuration.lambda_function.lambda_arn #=> String
3074
3236
  # resp.definition.nodes[0].configuration.lex.bot_alias_arn #=> String
3075
3237
  # resp.definition.nodes[0].configuration.lex.locale_id #=> String
3238
+ # resp.definition.nodes[0].configuration.prompt.guardrail_configuration.guardrail_identifier #=> String
3239
+ # resp.definition.nodes[0].configuration.prompt.guardrail_configuration.guardrail_version #=> String
3076
3240
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.max_tokens #=> Integer
3077
3241
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.stop_sequences #=> Array
3078
3242
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.stop_sequences[0] #=> String
3079
3243
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.temperature #=> Float
3080
3244
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.top_p #=> Float
3081
3245
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.model_id #=> String
3246
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.input_variables #=> Array
3247
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.input_variables[0].name #=> String
3248
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.messages #=> Array
3249
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.messages[0].content #=> Array
3250
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.messages[0].content[0].text #=> String
3251
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.messages[0].role #=> String, one of "user", "assistant"
3252
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.system #=> Array
3253
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.system[0].text #=> String
3254
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.tool_configuration.tool_choice.tool.name #=> String
3255
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.tool_configuration.tools #=> Array
3256
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.tool_configuration.tools[0].tool_spec.description #=> String
3257
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.tool_configuration.tools[0].tool_spec.name #=> String
3082
3258
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.text.input_variables #=> Array
3083
3259
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.text.input_variables[0].name #=> String
3084
3260
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.text.text #=> String
3085
- # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_type #=> String, one of "TEXT"
3261
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_type #=> String, one of "TEXT", "CHAT"
3086
3262
  # resp.definition.nodes[0].configuration.prompt.source_configuration.resource.prompt_arn #=> String
3087
3263
  # resp.definition.nodes[0].configuration.retrieval.service_configuration.s3.bucket_name #=> String
3088
3264
  # resp.definition.nodes[0].configuration.storage.service_configuration.s3.bucket_name #=> String
@@ -3102,8 +3278,45 @@ module Aws::BedrockAgent
3102
3278
  # resp.status #=> String, one of "Failed", "Prepared", "Preparing", "NotPrepared"
3103
3279
  # resp.updated_at #=> Time
3104
3280
  # resp.validations #=> Array
3281
+ # resp.validations[0].details.cyclic_connection.connection #=> String
3282
+ # resp.validations[0].details.duplicate_condition_expression.expression #=> String
3283
+ # resp.validations[0].details.duplicate_condition_expression.node #=> String
3284
+ # resp.validations[0].details.duplicate_connections.source #=> String
3285
+ # resp.validations[0].details.duplicate_connections.target #=> String
3286
+ # resp.validations[0].details.incompatible_connection_data_type.connection #=> String
3287
+ # resp.validations[0].details.malformed_condition_expression.cause #=> String
3288
+ # resp.validations[0].details.malformed_condition_expression.condition #=> String
3289
+ # resp.validations[0].details.malformed_condition_expression.node #=> String
3290
+ # resp.validations[0].details.malformed_node_input_expression.cause #=> String
3291
+ # resp.validations[0].details.malformed_node_input_expression.input #=> String
3292
+ # resp.validations[0].details.malformed_node_input_expression.node #=> String
3293
+ # resp.validations[0].details.mismatched_node_input_type.expected_type #=> String, one of "String", "Number", "Boolean", "Object", "Array"
3294
+ # resp.validations[0].details.mismatched_node_input_type.input #=> String
3295
+ # resp.validations[0].details.mismatched_node_input_type.node #=> String
3296
+ # resp.validations[0].details.mismatched_node_output_type.expected_type #=> String, one of "String", "Number", "Boolean", "Object", "Array"
3297
+ # resp.validations[0].details.mismatched_node_output_type.node #=> String
3298
+ # resp.validations[0].details.mismatched_node_output_type.output #=> String
3299
+ # resp.validations[0].details.missing_connection_configuration.connection #=> String
3300
+ # resp.validations[0].details.missing_default_condition.node #=> String
3301
+ # resp.validations[0].details.missing_node_configuration.node #=> String
3302
+ # resp.validations[0].details.missing_node_input.input #=> String
3303
+ # resp.validations[0].details.missing_node_input.node #=> String
3304
+ # resp.validations[0].details.missing_node_output.node #=> String
3305
+ # resp.validations[0].details.missing_node_output.output #=> String
3306
+ # resp.validations[0].details.multiple_node_input_connections.input #=> String
3307
+ # resp.validations[0].details.multiple_node_input_connections.node #=> String
3308
+ # resp.validations[0].details.unfulfilled_node_input.input #=> String
3309
+ # resp.validations[0].details.unfulfilled_node_input.node #=> String
3310
+ # resp.validations[0].details.unknown_connection_condition.connection #=> String
3311
+ # resp.validations[0].details.unknown_connection_source.connection #=> String
3312
+ # resp.validations[0].details.unknown_connection_source_output.connection #=> String
3313
+ # resp.validations[0].details.unknown_connection_target.connection #=> String
3314
+ # resp.validations[0].details.unknown_connection_target_input.connection #=> String
3315
+ # resp.validations[0].details.unreachable_node.node #=> String
3316
+ # resp.validations[0].details.unsatisfied_connection_conditions.connection #=> String
3105
3317
  # resp.validations[0].message #=> String
3106
3318
  # resp.validations[0].severity #=> String, one of "Warning", "Error"
3319
+ # resp.validations[0].type #=> String, one of "CyclicConnection", "DuplicateConnections", "DuplicateConditionExpression", "UnreachableNode", "UnknownConnectionSource", "UnknownConnectionSourceOutput", "UnknownConnectionTarget", "UnknownConnectionTargetInput", "UnknownConnectionCondition", "MalformedConditionExpression", "MalformedNodeInputExpression", "MismatchedNodeInputType", "MismatchedNodeOutputType", "IncompatibleConnectionDataType", "MissingConnectionConfiguration", "MissingDefaultCondition", "MissingEndingNodes", "MissingNodeConfiguration", "MissingNodeInput", "MissingNodeOutput", "MissingStartingNodes", "MultipleNodeInputConnections", "UnfulfilledNodeInput", "UnsatisfiedConnectionConditions", "Unspecified"
3107
3320
  # resp.version #=> String
3108
3321
  #
3109
3322
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/GetFlow AWS API Documentation
@@ -3219,21 +3432,37 @@ module Aws::BedrockAgent
3219
3432
  # resp.definition.nodes[0].configuration.condition.conditions #=> Array
3220
3433
  # resp.definition.nodes[0].configuration.condition.conditions[0].expression #=> String
3221
3434
  # resp.definition.nodes[0].configuration.condition.conditions[0].name #=> String
3435
+ # resp.definition.nodes[0].configuration.knowledge_base.guardrail_configuration.guardrail_identifier #=> String
3436
+ # resp.definition.nodes[0].configuration.knowledge_base.guardrail_configuration.guardrail_version #=> String
3222
3437
  # resp.definition.nodes[0].configuration.knowledge_base.knowledge_base_id #=> String
3223
3438
  # resp.definition.nodes[0].configuration.knowledge_base.model_id #=> String
3224
3439
  # resp.definition.nodes[0].configuration.lambda_function.lambda_arn #=> String
3225
3440
  # resp.definition.nodes[0].configuration.lex.bot_alias_arn #=> String
3226
3441
  # resp.definition.nodes[0].configuration.lex.locale_id #=> String
3442
+ # resp.definition.nodes[0].configuration.prompt.guardrail_configuration.guardrail_identifier #=> String
3443
+ # resp.definition.nodes[0].configuration.prompt.guardrail_configuration.guardrail_version #=> String
3227
3444
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.max_tokens #=> Integer
3228
3445
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.stop_sequences #=> Array
3229
3446
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.stop_sequences[0] #=> String
3230
3447
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.temperature #=> Float
3231
3448
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.top_p #=> Float
3232
3449
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.model_id #=> String
3450
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.input_variables #=> Array
3451
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.input_variables[0].name #=> String
3452
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.messages #=> Array
3453
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.messages[0].content #=> Array
3454
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.messages[0].content[0].text #=> String
3455
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.messages[0].role #=> String, one of "user", "assistant"
3456
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.system #=> Array
3457
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.system[0].text #=> String
3458
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.tool_configuration.tool_choice.tool.name #=> String
3459
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.tool_configuration.tools #=> Array
3460
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.tool_configuration.tools[0].tool_spec.description #=> String
3461
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.tool_configuration.tools[0].tool_spec.name #=> String
3233
3462
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.text.input_variables #=> Array
3234
3463
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.text.input_variables[0].name #=> String
3235
3464
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.text.text #=> String
3236
- # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_type #=> String, one of "TEXT"
3465
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_type #=> String, one of "TEXT", "CHAT"
3237
3466
  # resp.definition.nodes[0].configuration.prompt.source_configuration.resource.prompt_arn #=> String
3238
3467
  # resp.definition.nodes[0].configuration.retrieval.service_configuration.s3.bucket_name #=> String
3239
3468
  # resp.definition.nodes[0].configuration.storage.service_configuration.s3.bucket_name #=> String
@@ -3444,6 +3673,7 @@ module Aws::BedrockAgent
3444
3673
  # resp.name #=> String
3445
3674
  # resp.updated_at #=> Time
3446
3675
  # resp.variants #=> Array
3676
+ # resp.variants[0].gen_ai_resource.agent.agent_identifier #=> String
3447
3677
  # resp.variants[0].inference_configuration.text.max_tokens #=> Integer
3448
3678
  # resp.variants[0].inference_configuration.text.stop_sequences #=> Array
3449
3679
  # resp.variants[0].inference_configuration.text.stop_sequences[0] #=> String
@@ -3454,10 +3684,22 @@ module Aws::BedrockAgent
3454
3684
  # resp.variants[0].metadata[0].value #=> String
3455
3685
  # resp.variants[0].model_id #=> String
3456
3686
  # resp.variants[0].name #=> String
3687
+ # resp.variants[0].template_configuration.chat.input_variables #=> Array
3688
+ # resp.variants[0].template_configuration.chat.input_variables[0].name #=> String
3689
+ # resp.variants[0].template_configuration.chat.messages #=> Array
3690
+ # resp.variants[0].template_configuration.chat.messages[0].content #=> Array
3691
+ # resp.variants[0].template_configuration.chat.messages[0].content[0].text #=> String
3692
+ # resp.variants[0].template_configuration.chat.messages[0].role #=> String, one of "user", "assistant"
3693
+ # resp.variants[0].template_configuration.chat.system #=> Array
3694
+ # resp.variants[0].template_configuration.chat.system[0].text #=> String
3695
+ # resp.variants[0].template_configuration.chat.tool_configuration.tool_choice.tool.name #=> String
3696
+ # resp.variants[0].template_configuration.chat.tool_configuration.tools #=> Array
3697
+ # resp.variants[0].template_configuration.chat.tool_configuration.tools[0].tool_spec.description #=> String
3698
+ # resp.variants[0].template_configuration.chat.tool_configuration.tools[0].tool_spec.name #=> String
3457
3699
  # resp.variants[0].template_configuration.text.input_variables #=> Array
3458
3700
  # resp.variants[0].template_configuration.text.input_variables[0].name #=> String
3459
3701
  # resp.variants[0].template_configuration.text.text #=> String
3460
- # resp.variants[0].template_type #=> String, one of "TEXT"
3702
+ # resp.variants[0].template_type #=> String, one of "TEXT", "CHAT"
3461
3703
  # resp.version #=> String
3462
3704
  #
3463
3705
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/GetPrompt AWS API Documentation
@@ -5256,6 +5498,10 @@ module Aws::BedrockAgent
5256
5498
  # iterator: {
5257
5499
  # },
5258
5500
  # knowledge_base: {
5501
+ # guardrail_configuration: {
5502
+ # guardrail_identifier: "GuardrailIdentifier",
5503
+ # guardrail_version: "GuardrailVersion",
5504
+ # },
5259
5505
  # knowledge_base_id: "KnowledgeBaseId", # required
5260
5506
  # model_id: "KnowledgeBaseModelIdentifier",
5261
5507
  # },
@@ -5269,6 +5515,10 @@ module Aws::BedrockAgent
5269
5515
  # output: {
5270
5516
  # },
5271
5517
  # prompt: {
5518
+ # guardrail_configuration: {
5519
+ # guardrail_identifier: "GuardrailIdentifier",
5520
+ # guardrail_version: "GuardrailVersion",
5521
+ # },
5272
5522
  # source_configuration: { # required
5273
5523
  # inline: {
5274
5524
  # additional_model_request_fields: {
@@ -5283,6 +5533,51 @@ module Aws::BedrockAgent
5283
5533
  # },
5284
5534
  # model_id: "PromptModelIdentifier", # required
5285
5535
  # template_configuration: { # required
5536
+ # chat: {
5537
+ # input_variables: [
5538
+ # {
5539
+ # name: "PromptInputVariableName",
5540
+ # },
5541
+ # ],
5542
+ # messages: [ # required
5543
+ # {
5544
+ # content: [ # required
5545
+ # {
5546
+ # text: "String",
5547
+ # },
5548
+ # ],
5549
+ # role: "user", # required, accepts user, assistant
5550
+ # },
5551
+ # ],
5552
+ # system: [
5553
+ # {
5554
+ # text: "NonEmptyString",
5555
+ # },
5556
+ # ],
5557
+ # tool_configuration: {
5558
+ # tool_choice: {
5559
+ # any: {
5560
+ # },
5561
+ # auto: {
5562
+ # },
5563
+ # tool: {
5564
+ # name: "ToolName", # required
5565
+ # },
5566
+ # },
5567
+ # tools: [ # required
5568
+ # {
5569
+ # tool_spec: {
5570
+ # description: "NonEmptyString",
5571
+ # input_schema: { # required
5572
+ # json: {
5573
+ # },
5574
+ # },
5575
+ # name: "ToolName", # required
5576
+ # },
5577
+ # },
5578
+ # ],
5579
+ # },
5580
+ # },
5286
5581
  # text: {
5287
5582
  # input_variables: [
5288
5583
  # {
@@ -5292,7 +5587,7 @@ module Aws::BedrockAgent
5292
5587
  # text: "TextPrompt", # required
5293
5588
  # },
5294
5589
  # },
5295
- # template_type: "TEXT", # required, accepts TEXT
5590
+ # template_type: "TEXT", # required, accepts TEXT, CHAT
5296
5591
  # },
5297
5592
  # resource: {
5298
5593
  # prompt_arn: "PromptArn", # required
@@ -5356,21 +5651,37 @@ module Aws::BedrockAgent
5356
5651
  # resp.definition.nodes[0].configuration.condition.conditions #=> Array
5357
5652
  # resp.definition.nodes[0].configuration.condition.conditions[0].expression #=> String
5358
5653
  # resp.definition.nodes[0].configuration.condition.conditions[0].name #=> String
5654
+ # resp.definition.nodes[0].configuration.knowledge_base.guardrail_configuration.guardrail_identifier #=> String
5655
+ # resp.definition.nodes[0].configuration.knowledge_base.guardrail_configuration.guardrail_version #=> String
5359
5656
  # resp.definition.nodes[0].configuration.knowledge_base.knowledge_base_id #=> String
5360
5657
  # resp.definition.nodes[0].configuration.knowledge_base.model_id #=> String
5361
5658
  # resp.definition.nodes[0].configuration.lambda_function.lambda_arn #=> String
5362
5659
  # resp.definition.nodes[0].configuration.lex.bot_alias_arn #=> String
5363
5660
  # resp.definition.nodes[0].configuration.lex.locale_id #=> String
5661
+ # resp.definition.nodes[0].configuration.prompt.guardrail_configuration.guardrail_identifier #=> String
5662
+ # resp.definition.nodes[0].configuration.prompt.guardrail_configuration.guardrail_version #=> String
5364
5663
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.max_tokens #=> Integer
5365
5664
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.stop_sequences #=> Array
5366
5665
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.stop_sequences[0] #=> String
5367
5666
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.temperature #=> Float
5368
5667
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.top_p #=> Float
5369
5668
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.model_id #=> String
5669
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.input_variables #=> Array
5670
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.input_variables[0].name #=> String
5671
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.messages #=> Array
5672
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.messages[0].content #=> Array
5673
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.messages[0].content[0].text #=> String
5674
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.messages[0].role #=> String, one of "user", "assistant"
5675
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.system #=> Array
5676
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.system[0].text #=> String
5677
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.tool_configuration.tool_choice.tool.name #=> String
5678
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.tool_configuration.tools #=> Array
5679
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.tool_configuration.tools[0].tool_spec.description #=> String
5680
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.tool_configuration.tools[0].tool_spec.name #=> String
5370
5681
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.text.input_variables #=> Array
5371
5682
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.text.input_variables[0].name #=> String
5372
5683
  # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.text.text #=> String
5373
- # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_type #=> String, one of "TEXT"
5684
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_type #=> String, one of "TEXT", "CHAT"
5374
5685
  # resp.definition.nodes[0].configuration.prompt.source_configuration.resource.prompt_arn #=> String
5375
5686
  # resp.definition.nodes[0].configuration.retrieval.service_configuration.s3.bucket_name #=> String
5376
5687
  # resp.definition.nodes[0].configuration.storage.service_configuration.s3.bucket_name #=> String
@@ -5711,6 +6022,11 @@ module Aws::BedrockAgent
5711
6022
  # {
5712
6023
  # additional_model_request_fields: {
5713
6024
  # },
6025
+ # gen_ai_resource: {
6026
+ # agent: {
6027
+ # agent_identifier: "AgentAliasArn", # required
6028
+ # },
6029
+ # },
5714
6030
  # inference_configuration: {
5715
6031
  # text: {
5716
6032
  # max_tokens: 1,
@@ -5728,6 +6044,51 @@ module Aws::BedrockAgent
5728
6044
  # model_id: "PromptModelIdentifier",
5729
6045
  # name: "PromptVariantName", # required
5730
6046
  # template_configuration: { # required
6047
+ # chat: {
6048
+ # input_variables: [
6049
+ # {
6050
+ # name: "PromptInputVariableName",
6051
+ # },
6052
+ # ],
6053
+ # messages: [ # required
6054
+ # {
6055
+ # content: [ # required
6056
+ # {
6057
+ # text: "String",
6058
+ # },
6059
+ # ],
6060
+ # role: "user", # required, accepts user, assistant
6061
+ # },
6062
+ # ],
6063
+ # system: [
6064
+ # {
6065
+ # text: "NonEmptyString",
6066
+ # },
6067
+ # ],
6068
+ # tool_configuration: {
6069
+ # tool_choice: {
6070
+ # any: {
6071
+ # },
6072
+ # auto: {
6073
+ # },
6074
+ # tool: {
6075
+ # name: "ToolName", # required
6076
+ # },
6077
+ # },
6078
+ # tools: [ # required
6079
+ # {
6080
+ # tool_spec: {
6081
+ # description: "NonEmptyString",
6082
+ # input_schema: { # required
6083
+ # json: {
6084
+ # },
6085
+ # },
6086
+ # name: "ToolName", # required
6087
+ # },
6088
+ # },
6089
+ # ],
6090
+ # },
6091
+ # },
5731
6092
  # text: {
5732
6093
  # input_variables: [
5733
6094
  # {
@@ -5737,7 +6098,7 @@ module Aws::BedrockAgent
5737
6098
  # text: "TextPrompt", # required
5738
6099
  # },
5739
6100
  # },
5740
- # template_type: "TEXT", # required, accepts TEXT
6101
+ # template_type: "TEXT", # required, accepts TEXT, CHAT
5741
6102
  # },
5742
6103
  # ],
5743
6104
  # })
@@ -5753,6 +6114,7 @@ module Aws::BedrockAgent
5753
6114
  # resp.name #=> String
5754
6115
  # resp.updated_at #=> Time
5755
6116
  # resp.variants #=> Array
6117
+ # resp.variants[0].gen_ai_resource.agent.agent_identifier #=> String
5756
6118
  # resp.variants[0].inference_configuration.text.max_tokens #=> Integer
5757
6119
  # resp.variants[0].inference_configuration.text.stop_sequences #=> Array
5758
6120
  # resp.variants[0].inference_configuration.text.stop_sequences[0] #=> String
@@ -5763,10 +6125,22 @@ module Aws::BedrockAgent
5763
6125
  # resp.variants[0].metadata[0].value #=> String
5764
6126
  # resp.variants[0].model_id #=> String
5765
6127
  # resp.variants[0].name #=> String
6128
+ # resp.variants[0].template_configuration.chat.input_variables #=> Array
6129
+ # resp.variants[0].template_configuration.chat.input_variables[0].name #=> String
6130
+ # resp.variants[0].template_configuration.chat.messages #=> Array
6131
+ # resp.variants[0].template_configuration.chat.messages[0].content #=> Array
6132
+ # resp.variants[0].template_configuration.chat.messages[0].content[0].text #=> String
6133
+ # resp.variants[0].template_configuration.chat.messages[0].role #=> String, one of "user", "assistant"
6134
+ # resp.variants[0].template_configuration.chat.system #=> Array
6135
+ # resp.variants[0].template_configuration.chat.system[0].text #=> String
6136
+ # resp.variants[0].template_configuration.chat.tool_configuration.tool_choice.tool.name #=> String
6137
+ # resp.variants[0].template_configuration.chat.tool_configuration.tools #=> Array
6138
+ # resp.variants[0].template_configuration.chat.tool_configuration.tools[0].tool_spec.description #=> String
6139
+ # resp.variants[0].template_configuration.chat.tool_configuration.tools[0].tool_spec.name #=> String
5766
6140
  # resp.variants[0].template_configuration.text.input_variables #=> Array
5767
6141
  # resp.variants[0].template_configuration.text.input_variables[0].name #=> String
5768
6142
  # resp.variants[0].template_configuration.text.text #=> String
5769
- # resp.variants[0].template_type #=> String, one of "TEXT"
6143
+ # resp.variants[0].template_type #=> String, one of "TEXT", "CHAT"
5770
6144
  # resp.version #=> String
5771
6145
  #
5772
6146
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/UpdatePrompt AWS API Documentation
@@ -5778,6 +6152,240 @@ module Aws::BedrockAgent
5778
6152
  req.send_request(options)
5779
6153
  end
5780
6154
 
6155
+ # Validates the definition of a flow.
6156
+ #
6157
+ # @option params [required, Types::FlowDefinition] :definition
6158
+ # The definition of a flow to validate.
6159
+ #
6160
+ # @return [Types::ValidateFlowDefinitionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
6161
+ #
6162
+ # * {Types::ValidateFlowDefinitionResponse#validations #validations} => Array<Types::FlowValidation>
6163
+ #
6164
+ # @example Request syntax with placeholder values
6165
+ #
6166
+ # resp = client.validate_flow_definition({
6167
+ # definition: { # required
6168
+ # connections: [
6169
+ # {
6170
+ # configuration: {
6171
+ # conditional: {
6172
+ # condition: "FlowConditionName", # required
6173
+ # },
6174
+ # data: {
6175
+ # source_output: "FlowNodeOutputName", # required
6176
+ # target_input: "FlowNodeInputName", # required
6177
+ # },
6178
+ # },
6179
+ # name: "FlowConnectionName", # required
6180
+ # source: "FlowNodeName", # required
6181
+ # target: "FlowNodeName", # required
6182
+ # type: "Data", # required, accepts Data, Conditional
6183
+ # },
6184
+ # ],
6185
+ # nodes: [
6186
+ # {
6187
+ # configuration: {
6188
+ # agent: {
6189
+ # agent_alias_arn: "AgentAliasArn", # required
6190
+ # },
6191
+ # collector: {
6192
+ # },
6193
+ # condition: {
6194
+ # conditions: [ # required
6195
+ # {
6196
+ # expression: "FlowConditionExpression",
6197
+ # name: "FlowConditionName", # required
6198
+ # },
6199
+ # ],
6200
+ # },
6201
+ # input: {
6202
+ # },
6203
+ # iterator: {
6204
+ # },
6205
+ # knowledge_base: {
6206
+ # guardrail_configuration: {
6207
+ # guardrail_identifier: "GuardrailIdentifier",
6208
+ # guardrail_version: "GuardrailVersion",
6209
+ # },
6210
+ # knowledge_base_id: "KnowledgeBaseId", # required
6211
+ # model_id: "KnowledgeBaseModelIdentifier",
6212
+ # },
6213
+ # lambda_function: {
6214
+ # lambda_arn: "LambdaArn", # required
6215
+ # },
6216
+ # lex: {
6217
+ # bot_alias_arn: "LexBotAliasArn", # required
6218
+ # locale_id: "LexBotLocaleId", # required
6219
+ # },
6220
+ # output: {
6221
+ # },
6222
+ # prompt: {
6223
+ # guardrail_configuration: {
6224
+ # guardrail_identifier: "GuardrailIdentifier",
6225
+ # guardrail_version: "GuardrailVersion",
6226
+ # },
6227
+ # source_configuration: { # required
6228
+ # inline: {
6229
+ # additional_model_request_fields: {
6230
+ # },
6231
+ # inference_configuration: {
6232
+ # text: {
6233
+ # max_tokens: 1,
6234
+ # stop_sequences: ["String"],
6235
+ # temperature: 1.0,
6236
+ # top_p: 1.0,
6237
+ # },
6238
+ # },
6239
+ # model_id: "PromptModelIdentifier", # required
6240
+ # template_configuration: { # required
6241
+ # chat: {
6242
+ # input_variables: [
6243
+ # {
6244
+ # name: "PromptInputVariableName",
6245
+ # },
6246
+ # ],
6247
+ # messages: [ # required
6248
+ # {
6249
+ # content: [ # required
6250
+ # {
6251
+ # text: "String",
6252
+ # },
6253
+ # ],
6254
+ # role: "user", # required, accepts user, assistant
6255
+ # },
6256
+ # ],
6257
+ # system: [
6258
+ # {
6259
+ # text: "NonEmptyString",
6260
+ # },
6261
+ # ],
6262
+ # tool_configuration: {
6263
+ # tool_choice: {
6264
+ # any: {
6265
+ # },
6266
+ # auto: {
6267
+ # },
6268
+ # tool: {
6269
+ # name: "ToolName", # required
6270
+ # },
6271
+ # },
6272
+ # tools: [ # required
6273
+ # {
6274
+ # tool_spec: {
6275
+ # description: "NonEmptyString",
6276
+ # input_schema: { # required
6277
+ # json: {
6278
+ # },
6279
+ # },
6280
+ # name: "ToolName", # required
6281
+ # },
6282
+ # },
6283
+ # ],
6284
+ # },
6285
+ # },
6286
+ # text: {
6287
+ # input_variables: [
6288
+ # {
6289
+ # name: "PromptInputVariableName",
6290
+ # },
6291
+ # ],
6292
+ # text: "TextPrompt", # required
6293
+ # },
6294
+ # },
6295
+ # template_type: "TEXT", # required, accepts TEXT, CHAT
6296
+ # },
6297
+ # resource: {
6298
+ # prompt_arn: "PromptArn", # required
6299
+ # },
6300
+ # },
6301
+ # },
6302
+ # retrieval: {
6303
+ # service_configuration: { # required
6304
+ # s3: {
6305
+ # bucket_name: "S3BucketName", # required
6306
+ # },
6307
+ # },
6308
+ # },
6309
+ # storage: {
6310
+ # service_configuration: { # required
6311
+ # s3: {
6312
+ # bucket_name: "S3BucketName", # required
6313
+ # },
6314
+ # },
6315
+ # },
6316
+ # },
6317
+ # inputs: [
6318
+ # {
6319
+ # expression: "FlowNodeInputExpression", # required
6320
+ # name: "FlowNodeInputName", # required
6321
+ # type: "String", # required, accepts String, Number, Boolean, Object, Array
6322
+ # },
6323
+ # ],
6324
+ # name: "FlowNodeName", # required
6325
+ # outputs: [
6326
+ # {
6327
+ # name: "FlowNodeOutputName", # required
6328
+ # type: "String", # required, accepts String, Number, Boolean, Object, Array
6329
+ # },
6330
+ # ],
6331
+ # type: "Input", # required, accepts Input, Output, KnowledgeBase, Condition, Lex, Prompt, LambdaFunction, Storage, Agent, Retrieval, Iterator, Collector
6332
+ # },
6333
+ # ],
6334
+ # },
6335
+ # })
6336
+ #
6337
+ # @example Response structure
6338
+ #
6339
+ # resp.validations #=> Array
6340
+ # resp.validations[0].details.cyclic_connection.connection #=> String
6341
+ # resp.validations[0].details.duplicate_condition_expression.expression #=> String
6342
+ # resp.validations[0].details.duplicate_condition_expression.node #=> String
6343
+ # resp.validations[0].details.duplicate_connections.source #=> String
6344
+ # resp.validations[0].details.duplicate_connections.target #=> String
6345
+ # resp.validations[0].details.incompatible_connection_data_type.connection #=> String
6346
+ # resp.validations[0].details.malformed_condition_expression.cause #=> String
6347
+ # resp.validations[0].details.malformed_condition_expression.condition #=> String
6348
+ # resp.validations[0].details.malformed_condition_expression.node #=> String
6349
+ # resp.validations[0].details.malformed_node_input_expression.cause #=> String
6350
+ # resp.validations[0].details.malformed_node_input_expression.input #=> String
6351
+ # resp.validations[0].details.malformed_node_input_expression.node #=> String
6352
+ # resp.validations[0].details.mismatched_node_input_type.expected_type #=> String, one of "String", "Number", "Boolean", "Object", "Array"
6353
+ # resp.validations[0].details.mismatched_node_input_type.input #=> String
6354
+ # resp.validations[0].details.mismatched_node_input_type.node #=> String
6355
+ # resp.validations[0].details.mismatched_node_output_type.expected_type #=> String, one of "String", "Number", "Boolean", "Object", "Array"
6356
+ # resp.validations[0].details.mismatched_node_output_type.node #=> String
6357
+ # resp.validations[0].details.mismatched_node_output_type.output #=> String
6358
+ # resp.validations[0].details.missing_connection_configuration.connection #=> String
6359
+ # resp.validations[0].details.missing_default_condition.node #=> String
6360
+ # resp.validations[0].details.missing_node_configuration.node #=> String
6361
+ # resp.validations[0].details.missing_node_input.input #=> String
6362
+ # resp.validations[0].details.missing_node_input.node #=> String
6363
+ # resp.validations[0].details.missing_node_output.node #=> String
6364
+ # resp.validations[0].details.missing_node_output.output #=> String
6365
+ # resp.validations[0].details.multiple_node_input_connections.input #=> String
6366
+ # resp.validations[0].details.multiple_node_input_connections.node #=> String
6367
+ # resp.validations[0].details.unfulfilled_node_input.input #=> String
6368
+ # resp.validations[0].details.unfulfilled_node_input.node #=> String
6369
+ # resp.validations[0].details.unknown_connection_condition.connection #=> String
6370
+ # resp.validations[0].details.unknown_connection_source.connection #=> String
6371
+ # resp.validations[0].details.unknown_connection_source_output.connection #=> String
6372
+ # resp.validations[0].details.unknown_connection_target.connection #=> String
6373
+ # resp.validations[0].details.unknown_connection_target_input.connection #=> String
6374
+ # resp.validations[0].details.unreachable_node.node #=> String
6375
+ # resp.validations[0].details.unsatisfied_connection_conditions.connection #=> String
6376
+ # resp.validations[0].message #=> String
6377
+ # resp.validations[0].severity #=> String, one of "Warning", "Error"
6378
+ # resp.validations[0].type #=> String, one of "CyclicConnection", "DuplicateConnections", "DuplicateConditionExpression", "UnreachableNode", "UnknownConnectionSource", "UnknownConnectionSourceOutput", "UnknownConnectionTarget", "UnknownConnectionTargetInput", "UnknownConnectionCondition", "MalformedConditionExpression", "MalformedNodeInputExpression", "MismatchedNodeInputType", "MismatchedNodeOutputType", "IncompatibleConnectionDataType", "MissingConnectionConfiguration", "MissingDefaultCondition", "MissingEndingNodes", "MissingNodeConfiguration", "MissingNodeInput", "MissingNodeOutput", "MissingStartingNodes", "MultipleNodeInputConnections", "UnfulfilledNodeInput", "UnsatisfiedConnectionConditions", "Unspecified"
6379
+ #
6380
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/ValidateFlowDefinition AWS API Documentation
6381
+ #
6382
+ # @overload validate_flow_definition(params = {})
6383
+ # @param [Hash] params ({})
6384
+ def validate_flow_definition(params = {}, options = {})
6385
+ req = build_request(:validate_flow_definition, params)
6386
+ req.send_request(options)
6387
+ end
6388
+
5781
6389
  # @!endgroup
5782
6390
 
5783
6391
  # @param params ({})
@@ -5796,7 +6404,7 @@ module Aws::BedrockAgent
5796
6404
  tracer: tracer
5797
6405
  )
5798
6406
  context[:gem_name] = 'aws-sdk-bedrockagent'
5799
- context[:gem_version] = '1.33.0'
6407
+ context[:gem_version] = '1.35.0'
5800
6408
  Seahorse::Client::Request.new(handlers, context)
5801
6409
  end
5802
6410