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.
data/sig/types.rbs CHANGED
@@ -199,6 +199,9 @@ module Aws::BedrockAgent
199
199
  SENSITIVE: []
200
200
  end
201
201
 
202
+ class AnyToolChoice < Aws::EmptyStructure
203
+ end
204
+
202
205
  class AssociateAgentKnowledgeBaseRequest
203
206
  attr_accessor agent_id: ::String
204
207
  attr_accessor agent_version: ::String
@@ -213,6 +216,9 @@ module Aws::BedrockAgent
213
216
  SENSITIVE: []
214
217
  end
215
218
 
219
+ class AutoToolChoice < Aws::EmptyStructure
220
+ end
221
+
216
222
  class BedrockEmbeddingModelConfiguration
217
223
  attr_accessor dimensions: ::Integer
218
224
  SENSITIVE: []
@@ -224,6 +230,14 @@ module Aws::BedrockAgent
224
230
  SENSITIVE: []
225
231
  end
226
232
 
233
+ class ChatPromptTemplateConfiguration
234
+ attr_accessor input_variables: ::Array[Types::PromptInputVariable]
235
+ attr_accessor messages: ::Array[Types::Message]
236
+ attr_accessor system: ::Array[Types::SystemContentBlock]
237
+ attr_accessor tool_configuration: Types::ToolConfiguration
238
+ SENSITIVE: [:input_variables]
239
+ end
240
+
227
241
  class ChunkingConfiguration
228
242
  attr_accessor chunking_strategy: ("FIXED_SIZE" | "NONE" | "HIERARCHICAL" | "SEMANTIC")
229
243
  attr_accessor fixed_size_chunking_configuration: Types::FixedSizeChunkingConfiguration
@@ -264,6 +278,17 @@ module Aws::BedrockAgent
264
278
  SENSITIVE: []
265
279
  end
266
280
 
281
+ class ContentBlock
282
+ attr_accessor text: ::String
283
+ attr_accessor unknown: untyped
284
+ SENSITIVE: []
285
+
286
+ class Text < ContentBlock
287
+ end
288
+ class Unknown < ContentBlock
289
+ end
290
+ end
291
+
267
292
  class CrawlFilterConfiguration
268
293
  attr_accessor pattern_object_filter: Types::PatternObjectFilterConfiguration
269
294
  attr_accessor type: ("PATTERN")
@@ -480,6 +505,11 @@ module Aws::BedrockAgent
480
505
  SENSITIVE: []
481
506
  end
482
507
 
508
+ class CyclicConnectionFlowValidationDetails
509
+ attr_accessor connection: ::String
510
+ SENSITIVE: []
511
+ end
512
+
483
513
  class DataSource
484
514
  attr_accessor created_at: ::Time
485
515
  attr_accessor data_deletion_policy: ("RETAIN" | "DELETE")
@@ -648,6 +678,18 @@ module Aws::BedrockAgent
648
678
  class DisassociateAgentKnowledgeBaseResponse < Aws::EmptyStructure
649
679
  end
650
680
 
681
+ class DuplicateConditionExpressionFlowValidationDetails
682
+ attr_accessor expression: ::String
683
+ attr_accessor node: ::String
684
+ SENSITIVE: [:expression]
685
+ end
686
+
687
+ class DuplicateConnectionsFlowValidationDetails
688
+ attr_accessor source: ::String
689
+ attr_accessor target: ::String
690
+ SENSITIVE: []
691
+ end
692
+
651
693
  class EmbeddingModelConfiguration
652
694
  attr_accessor bedrock_embedding_model_configuration: Types::BedrockEmbeddingModelConfiguration
653
695
  SENSITIVE: []
@@ -801,9 +843,94 @@ module Aws::BedrockAgent
801
843
  end
802
844
 
803
845
  class FlowValidation
846
+ attr_accessor details: Types::FlowValidationDetails
804
847
  attr_accessor message: ::String
805
848
  attr_accessor severity: ("Warning" | "Error")
849
+ attr_accessor type: ("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")
850
+ SENSITIVE: []
851
+ end
852
+
853
+ class FlowValidationDetails
854
+ attr_accessor cyclic_connection: Types::CyclicConnectionFlowValidationDetails
855
+ attr_accessor duplicate_condition_expression: Types::DuplicateConditionExpressionFlowValidationDetails
856
+ attr_accessor duplicate_connections: Types::DuplicateConnectionsFlowValidationDetails
857
+ attr_accessor incompatible_connection_data_type: Types::IncompatibleConnectionDataTypeFlowValidationDetails
858
+ attr_accessor malformed_condition_expression: Types::MalformedConditionExpressionFlowValidationDetails
859
+ attr_accessor malformed_node_input_expression: Types::MalformedNodeInputExpressionFlowValidationDetails
860
+ attr_accessor mismatched_node_input_type: Types::MismatchedNodeInputTypeFlowValidationDetails
861
+ attr_accessor mismatched_node_output_type: Types::MismatchedNodeOutputTypeFlowValidationDetails
862
+ attr_accessor missing_connection_configuration: Types::MissingConnectionConfigurationFlowValidationDetails
863
+ attr_accessor missing_default_condition: Types::MissingDefaultConditionFlowValidationDetails
864
+ attr_accessor missing_ending_nodes: Types::MissingEndingNodesFlowValidationDetails
865
+ attr_accessor missing_node_configuration: Types::MissingNodeConfigurationFlowValidationDetails
866
+ attr_accessor missing_node_input: Types::MissingNodeInputFlowValidationDetails
867
+ attr_accessor missing_node_output: Types::MissingNodeOutputFlowValidationDetails
868
+ attr_accessor missing_starting_nodes: Types::MissingStartingNodesFlowValidationDetails
869
+ attr_accessor multiple_node_input_connections: Types::MultipleNodeInputConnectionsFlowValidationDetails
870
+ attr_accessor unfulfilled_node_input: Types::UnfulfilledNodeInputFlowValidationDetails
871
+ attr_accessor unknown_connection_condition: Types::UnknownConnectionConditionFlowValidationDetails
872
+ attr_accessor unknown_connection_source: Types::UnknownConnectionSourceFlowValidationDetails
873
+ attr_accessor unknown_connection_source_output: Types::UnknownConnectionSourceOutputFlowValidationDetails
874
+ attr_accessor unknown_connection_target: Types::UnknownConnectionTargetFlowValidationDetails
875
+ attr_accessor unknown_connection_target_input: Types::UnknownConnectionTargetInputFlowValidationDetails
876
+ attr_accessor unreachable_node: Types::UnreachableNodeFlowValidationDetails
877
+ attr_accessor unsatisfied_connection_conditions: Types::UnsatisfiedConnectionConditionsFlowValidationDetails
878
+ attr_accessor unspecified: Types::UnspecifiedFlowValidationDetails
879
+ attr_accessor unknown: untyped
806
880
  SENSITIVE: []
881
+
882
+ class CyclicConnection < FlowValidationDetails
883
+ end
884
+ class DuplicateConditionExpression < FlowValidationDetails
885
+ end
886
+ class DuplicateConnections < FlowValidationDetails
887
+ end
888
+ class IncompatibleConnectionDataType < FlowValidationDetails
889
+ end
890
+ class MalformedConditionExpression < FlowValidationDetails
891
+ end
892
+ class MalformedNodeInputExpression < FlowValidationDetails
893
+ end
894
+ class MismatchedNodeInputType < FlowValidationDetails
895
+ end
896
+ class MismatchedNodeOutputType < FlowValidationDetails
897
+ end
898
+ class MissingConnectionConfiguration < FlowValidationDetails
899
+ end
900
+ class MissingDefaultCondition < FlowValidationDetails
901
+ end
902
+ class MissingEndingNodes < FlowValidationDetails
903
+ end
904
+ class MissingNodeConfiguration < FlowValidationDetails
905
+ end
906
+ class MissingNodeInput < FlowValidationDetails
907
+ end
908
+ class MissingNodeOutput < FlowValidationDetails
909
+ end
910
+ class MissingStartingNodes < FlowValidationDetails
911
+ end
912
+ class MultipleNodeInputConnections < FlowValidationDetails
913
+ end
914
+ class UnfulfilledNodeInput < FlowValidationDetails
915
+ end
916
+ class UnknownConnectionCondition < FlowValidationDetails
917
+ end
918
+ class UnknownConnectionSource < FlowValidationDetails
919
+ end
920
+ class UnknownConnectionSourceOutput < FlowValidationDetails
921
+ end
922
+ class UnknownConnectionTarget < FlowValidationDetails
923
+ end
924
+ class UnknownConnectionTargetInput < FlowValidationDetails
925
+ end
926
+ class UnreachableNode < FlowValidationDetails
927
+ end
928
+ class UnsatisfiedConnectionConditions < FlowValidationDetails
929
+ end
930
+ class Unspecified < FlowValidationDetails
931
+ end
932
+ class Unknown < FlowValidationDetails
933
+ end
807
934
  end
808
935
 
809
936
  class FlowVersionSummary
@@ -1019,6 +1146,11 @@ module Aws::BedrockAgent
1019
1146
  SENSITIVE: []
1020
1147
  end
1021
1148
 
1149
+ class IncompatibleConnectionDataTypeFlowValidationDetails
1150
+ attr_accessor connection: ::String
1151
+ SENSITIVE: []
1152
+ end
1153
+
1022
1154
  class InferenceConfiguration
1023
1155
  attr_accessor maximum_length: ::Integer
1024
1156
  attr_accessor stop_sequences: ::Array[::String]
@@ -1115,6 +1247,7 @@ module Aws::BedrockAgent
1115
1247
  end
1116
1248
 
1117
1249
  class KnowledgeBaseFlowNodeConfiguration
1250
+ attr_accessor guardrail_configuration: Types::GuardrailConfiguration
1118
1251
  attr_accessor knowledge_base_id: ::String
1119
1252
  attr_accessor model_id: ::String
1120
1253
  SENSITIVE: []
@@ -1308,12 +1441,79 @@ module Aws::BedrockAgent
1308
1441
  SENSITIVE: []
1309
1442
  end
1310
1443
 
1444
+ class MalformedConditionExpressionFlowValidationDetails
1445
+ attr_accessor cause: ::String
1446
+ attr_accessor condition: ::String
1447
+ attr_accessor node: ::String
1448
+ SENSITIVE: []
1449
+ end
1450
+
1451
+ class MalformedNodeInputExpressionFlowValidationDetails
1452
+ attr_accessor cause: ::String
1453
+ attr_accessor input: ::String
1454
+ attr_accessor node: ::String
1455
+ SENSITIVE: []
1456
+ end
1457
+
1311
1458
  class MemoryConfiguration
1312
1459
  attr_accessor enabled_memory_types: ::Array[("SESSION_SUMMARY")]
1313
1460
  attr_accessor storage_days: ::Integer
1314
1461
  SENSITIVE: []
1315
1462
  end
1316
1463
 
1464
+ class Message
1465
+ attr_accessor content: ::Array[Types::ContentBlock]
1466
+ attr_accessor role: ("user" | "assistant")
1467
+ SENSITIVE: []
1468
+ end
1469
+
1470
+ class MismatchedNodeInputTypeFlowValidationDetails
1471
+ attr_accessor expected_type: ("String" | "Number" | "Boolean" | "Object" | "Array")
1472
+ attr_accessor input: ::String
1473
+ attr_accessor node: ::String
1474
+ SENSITIVE: []
1475
+ end
1476
+
1477
+ class MismatchedNodeOutputTypeFlowValidationDetails
1478
+ attr_accessor expected_type: ("String" | "Number" | "Boolean" | "Object" | "Array")
1479
+ attr_accessor node: ::String
1480
+ attr_accessor output: ::String
1481
+ SENSITIVE: []
1482
+ end
1483
+
1484
+ class MissingConnectionConfigurationFlowValidationDetails
1485
+ attr_accessor connection: ::String
1486
+ SENSITIVE: []
1487
+ end
1488
+
1489
+ class MissingDefaultConditionFlowValidationDetails
1490
+ attr_accessor node: ::String
1491
+ SENSITIVE: []
1492
+ end
1493
+
1494
+ class MissingEndingNodesFlowValidationDetails < Aws::EmptyStructure
1495
+ end
1496
+
1497
+ class MissingNodeConfigurationFlowValidationDetails
1498
+ attr_accessor node: ::String
1499
+ SENSITIVE: []
1500
+ end
1501
+
1502
+ class MissingNodeInputFlowValidationDetails
1503
+ attr_accessor input: ::String
1504
+ attr_accessor node: ::String
1505
+ SENSITIVE: []
1506
+ end
1507
+
1508
+ class MissingNodeOutputFlowValidationDetails
1509
+ attr_accessor node: ::String
1510
+ attr_accessor output: ::String
1511
+ SENSITIVE: []
1512
+ end
1513
+
1514
+ class MissingStartingNodesFlowValidationDetails < Aws::EmptyStructure
1515
+ end
1516
+
1317
1517
  class MongoDbAtlasConfiguration
1318
1518
  attr_accessor collection_name: ::String
1319
1519
  attr_accessor credentials_secret_arn: ::String
@@ -1332,6 +1532,12 @@ module Aws::BedrockAgent
1332
1532
  SENSITIVE: []
1333
1533
  end
1334
1534
 
1535
+ class MultipleNodeInputConnectionsFlowValidationDetails
1536
+ attr_accessor input: ::String
1537
+ attr_accessor node: ::String
1538
+ SENSITIVE: []
1539
+ end
1540
+
1335
1541
  class OpenSearchServerlessConfiguration
1336
1542
  attr_accessor collection_arn: ::String
1337
1543
  attr_accessor field_mapping: Types::OpenSearchServerlessFieldMapping
@@ -1417,6 +1623,11 @@ module Aws::BedrockAgent
1417
1623
  SENSITIVE: []
1418
1624
  end
1419
1625
 
1626
+ class PromptAgentResource
1627
+ attr_accessor agent_identifier: ::String
1628
+ SENSITIVE: []
1629
+ end
1630
+
1420
1631
  class PromptConfiguration
1421
1632
  attr_accessor base_prompt_template: ::String
1422
1633
  attr_accessor inference_configuration: Types::InferenceConfiguration
@@ -1428,6 +1639,7 @@ module Aws::BedrockAgent
1428
1639
  end
1429
1640
 
1430
1641
  class PromptFlowNodeConfiguration
1642
+ attr_accessor guardrail_configuration: Types::GuardrailConfiguration
1431
1643
  attr_accessor source_configuration: Types::PromptFlowNodeSourceConfiguration
1432
1644
  SENSITIVE: []
1433
1645
  end
@@ -1437,7 +1649,7 @@ module Aws::BedrockAgent
1437
1649
  attr_accessor inference_configuration: Types::PromptInferenceConfiguration
1438
1650
  attr_accessor model_id: ::String
1439
1651
  attr_accessor template_configuration: Types::PromptTemplateConfiguration
1440
- attr_accessor template_type: ("TEXT")
1652
+ attr_accessor template_type: ("TEXT" | "CHAT")
1441
1653
  SENSITIVE: []
1442
1654
  end
1443
1655
 
@@ -1460,6 +1672,17 @@ module Aws::BedrockAgent
1460
1672
  end
1461
1673
  end
1462
1674
 
1675
+ class PromptGenAiResource
1676
+ attr_accessor agent: Types::PromptAgentResource
1677
+ attr_accessor unknown: untyped
1678
+ SENSITIVE: [:agent]
1679
+
1680
+ class Agent < PromptGenAiResource
1681
+ end
1682
+ class Unknown < PromptGenAiResource
1683
+ end
1684
+ end
1685
+
1463
1686
  class PromptInferenceConfiguration
1464
1687
  attr_accessor text: Types::PromptModelInferenceConfiguration
1465
1688
  attr_accessor unknown: untyped
@@ -1508,10 +1731,13 @@ module Aws::BedrockAgent
1508
1731
  end
1509
1732
 
1510
1733
  class PromptTemplateConfiguration
1734
+ attr_accessor chat: Types::ChatPromptTemplateConfiguration
1511
1735
  attr_accessor text: Types::TextPromptTemplateConfiguration
1512
1736
  attr_accessor unknown: untyped
1513
- SENSITIVE: [:text]
1737
+ SENSITIVE: [:chat, :text]
1514
1738
 
1739
+ class Chat < PromptTemplateConfiguration
1740
+ end
1515
1741
  class Text < PromptTemplateConfiguration
1516
1742
  end
1517
1743
  class Unknown < PromptTemplateConfiguration
@@ -1520,13 +1746,14 @@ module Aws::BedrockAgent
1520
1746
 
1521
1747
  class PromptVariant
1522
1748
  attr_accessor additional_model_request_fields: untyped
1749
+ attr_accessor gen_ai_resource: Types::PromptGenAiResource
1523
1750
  attr_accessor inference_configuration: Types::PromptInferenceConfiguration
1524
1751
  attr_accessor metadata: ::Array[Types::PromptMetadataEntry]
1525
1752
  attr_accessor model_id: ::String
1526
1753
  attr_accessor name: ::String
1527
1754
  attr_accessor template_configuration: Types::PromptTemplateConfiguration
1528
- attr_accessor template_type: ("TEXT")
1529
- SENSITIVE: [:metadata]
1755
+ attr_accessor template_type: ("TEXT" | "CHAT")
1756
+ SENSITIVE: [:gen_ai_resource, :metadata]
1530
1757
  end
1531
1758
 
1532
1759
  class RdsConfiguration
@@ -1666,6 +1893,11 @@ module Aws::BedrockAgent
1666
1893
  SENSITIVE: []
1667
1894
  end
1668
1895
 
1896
+ class SpecificToolChoice
1897
+ attr_accessor name: ::String
1898
+ SENSITIVE: []
1899
+ end
1900
+
1669
1901
  class StartIngestionJobRequest
1670
1902
  attr_accessor client_token: ::String
1671
1903
  attr_accessor data_source_id: ::String
@@ -1722,6 +1954,17 @@ module Aws::BedrockAgent
1722
1954
  end
1723
1955
  end
1724
1956
 
1957
+ class SystemContentBlock
1958
+ attr_accessor text: ::String
1959
+ attr_accessor unknown: untyped
1960
+ SENSITIVE: []
1961
+
1962
+ class Text < SystemContentBlock
1963
+ end
1964
+ class Unknown < SystemContentBlock
1965
+ end
1966
+ end
1967
+
1725
1968
  class TagResourceRequest
1726
1969
  attr_accessor resource_arn: ::String
1727
1970
  attr_accessor tags: ::Hash[::String, ::String]
@@ -1742,6 +1985,58 @@ module Aws::BedrockAgent
1742
1985
  SENSITIVE: []
1743
1986
  end
1744
1987
 
1988
+ class Tool
1989
+ attr_accessor tool_spec: Types::ToolSpecification
1990
+ attr_accessor unknown: untyped
1991
+ SENSITIVE: []
1992
+
1993
+ class ToolSpec < Tool
1994
+ end
1995
+ class Unknown < Tool
1996
+ end
1997
+ end
1998
+
1999
+ class ToolChoice
2000
+ attr_accessor any: Types::AnyToolChoice
2001
+ attr_accessor auto: Types::AutoToolChoice
2002
+ attr_accessor tool: Types::SpecificToolChoice
2003
+ attr_accessor unknown: untyped
2004
+ SENSITIVE: []
2005
+
2006
+ class Any < ToolChoice
2007
+ end
2008
+ class Auto < ToolChoice
2009
+ end
2010
+ class Tool < ToolChoice
2011
+ end
2012
+ class Unknown < ToolChoice
2013
+ end
2014
+ end
2015
+
2016
+ class ToolConfiguration
2017
+ attr_accessor tool_choice: Types::ToolChoice
2018
+ attr_accessor tools: ::Array[Types::Tool]
2019
+ SENSITIVE: [:tool_choice, :tools]
2020
+ end
2021
+
2022
+ class ToolInputSchema
2023
+ attr_accessor json: untyped
2024
+ attr_accessor unknown: untyped
2025
+ SENSITIVE: []
2026
+
2027
+ class Json < ToolInputSchema
2028
+ end
2029
+ class Unknown < ToolInputSchema
2030
+ end
2031
+ end
2032
+
2033
+ class ToolSpecification
2034
+ attr_accessor description: ::String
2035
+ attr_accessor input_schema: Types::ToolInputSchema
2036
+ attr_accessor name: ::String
2037
+ SENSITIVE: []
2038
+ end
2039
+
1745
2040
  class Transformation
1746
2041
  attr_accessor step_to_apply: ("POST_CHUNKING")
1747
2042
  attr_accessor transformation_function: Types::TransformationFunction
@@ -1758,6 +2053,50 @@ module Aws::BedrockAgent
1758
2053
  SENSITIVE: []
1759
2054
  end
1760
2055
 
2056
+ class UnfulfilledNodeInputFlowValidationDetails
2057
+ attr_accessor input: ::String
2058
+ attr_accessor node: ::String
2059
+ SENSITIVE: []
2060
+ end
2061
+
2062
+ class UnknownConnectionConditionFlowValidationDetails
2063
+ attr_accessor connection: ::String
2064
+ SENSITIVE: []
2065
+ end
2066
+
2067
+ class UnknownConnectionSourceFlowValidationDetails
2068
+ attr_accessor connection: ::String
2069
+ SENSITIVE: []
2070
+ end
2071
+
2072
+ class UnknownConnectionSourceOutputFlowValidationDetails
2073
+ attr_accessor connection: ::String
2074
+ SENSITIVE: []
2075
+ end
2076
+
2077
+ class UnknownConnectionTargetFlowValidationDetails
2078
+ attr_accessor connection: ::String
2079
+ SENSITIVE: []
2080
+ end
2081
+
2082
+ class UnknownConnectionTargetInputFlowValidationDetails
2083
+ attr_accessor connection: ::String
2084
+ SENSITIVE: []
2085
+ end
2086
+
2087
+ class UnreachableNodeFlowValidationDetails
2088
+ attr_accessor node: ::String
2089
+ SENSITIVE: []
2090
+ end
2091
+
2092
+ class UnsatisfiedConnectionConditionsFlowValidationDetails
2093
+ attr_accessor connection: ::String
2094
+ SENSITIVE: []
2095
+ end
2096
+
2097
+ class UnspecifiedFlowValidationDetails < Aws::EmptyStructure
2098
+ end
2099
+
1761
2100
  class UntagResourceRequest
1762
2101
  attr_accessor resource_arn: ::String
1763
2102
  attr_accessor tag_keys: ::Array[::String]
@@ -1941,6 +2280,16 @@ module Aws::BedrockAgent
1941
2280
  SENSITIVE: []
1942
2281
  end
1943
2282
 
2283
+ class ValidateFlowDefinitionRequest
2284
+ attr_accessor definition: Types::FlowDefinition
2285
+ SENSITIVE: [:definition]
2286
+ end
2287
+
2288
+ class ValidateFlowDefinitionResponse
2289
+ attr_accessor validations: ::Array[Types::FlowValidation]
2290
+ SENSITIVE: []
2291
+ end
2292
+
1944
2293
  class ValidationException
1945
2294
  attr_accessor field_list: ::Array[Types::ValidationExceptionField]
1946
2295
  attr_accessor message: ::String
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-bedrockagent
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.33.0
4
+ version: 1.34.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-06 00:00:00.000000000 Z
11
+ date: 2024-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core