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