aws-sdk-bedrockagent 1.33.0 → 1.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -54,7 +54,7 @@ module Aws::BedrockAgent
54
54
  autoload :EndpointProvider, 'aws-sdk-bedrockagent/endpoint_provider'
55
55
  autoload :Endpoints, 'aws-sdk-bedrockagent/endpoints'
56
56
 
57
- GEM_VERSION = '1.33.0'
57
+ GEM_VERSION = '1.35.0'
58
58
 
59
59
  end
60
60
 
data/sig/client.rbs CHANGED
@@ -411,6 +411,10 @@ module Aws
411
411
  iterator: {
412
412
  }?,
413
413
  knowledge_base: {
414
+ guardrail_configuration: {
415
+ guardrail_identifier: ::String?,
416
+ guardrail_version: ::String?
417
+ }?,
414
418
  knowledge_base_id: ::String,
415
419
  model_id: ::String?
416
420
  }?,
@@ -424,6 +428,10 @@ module Aws
424
428
  output: {
425
429
  }?,
426
430
  prompt: {
431
+ guardrail_configuration: {
432
+ guardrail_identifier: ::String?,
433
+ guardrail_version: ::String?
434
+ }?,
427
435
  source_configuration: {
428
436
  inline: {
429
437
  additional_model_request_fields: {
@@ -438,6 +446,51 @@ module Aws
438
446
  }?,
439
447
  model_id: ::String,
440
448
  template_configuration: {
449
+ chat: {
450
+ input_variables: Array[
451
+ {
452
+ name: ::String?
453
+ },
454
+ ]?,
455
+ messages: Array[
456
+ {
457
+ content: Array[
458
+ {
459
+ text: ::String?
460
+ },
461
+ ],
462
+ role: ("user" | "assistant")
463
+ },
464
+ ],
465
+ system: Array[
466
+ {
467
+ text: ::String?
468
+ },
469
+ ]?,
470
+ tool_configuration: {
471
+ tool_choice: {
472
+ any: {
473
+ }?,
474
+ auto: {
475
+ }?,
476
+ tool: {
477
+ name: ::String
478
+ }?
479
+ }?,
480
+ tools: Array[
481
+ {
482
+ tool_spec: {
483
+ description: ::String?,
484
+ input_schema: {
485
+ json: {
486
+ }?
487
+ },
488
+ name: ::String
489
+ }?
490
+ },
491
+ ]
492
+ }?
493
+ }?,
441
494
  text: {
442
495
  input_variables: Array[
443
496
  {
@@ -447,7 +500,7 @@ module Aws
447
500
  text: ::String
448
501
  }?
449
502
  },
450
- template_type: ("TEXT")
503
+ template_type: ("TEXT" | "CHAT")
451
504
  }?,
452
505
  resource: {
453
506
  prompt_arn: ::String
@@ -647,6 +700,11 @@ module Aws
647
700
  {
648
701
  additional_model_request_fields: {
649
702
  }?,
703
+ gen_ai_resource: {
704
+ agent: {
705
+ agent_identifier: ::String
706
+ }?
707
+ }?,
650
708
  inference_configuration: {
651
709
  text: {
652
710
  max_tokens: ::Integer?,
@@ -664,6 +722,51 @@ module Aws
664
722
  model_id: ::String?,
665
723
  name: ::String,
666
724
  template_configuration: {
725
+ chat: {
726
+ input_variables: Array[
727
+ {
728
+ name: ::String?
729
+ },
730
+ ]?,
731
+ messages: Array[
732
+ {
733
+ content: Array[
734
+ {
735
+ text: ::String?
736
+ },
737
+ ],
738
+ role: ("user" | "assistant")
739
+ },
740
+ ],
741
+ system: Array[
742
+ {
743
+ text: ::String?
744
+ },
745
+ ]?,
746
+ tool_configuration: {
747
+ tool_choice: {
748
+ any: {
749
+ }?,
750
+ auto: {
751
+ }?,
752
+ tool: {
753
+ name: ::String
754
+ }?
755
+ }?,
756
+ tools: Array[
757
+ {
758
+ tool_spec: {
759
+ description: ::String?,
760
+ input_schema: {
761
+ json: {
762
+ }?
763
+ },
764
+ name: ::String
765
+ }?
766
+ },
767
+ ]
768
+ }?
769
+ }?,
667
770
  text: {
668
771
  input_variables: Array[
669
772
  {
@@ -673,7 +776,7 @@ module Aws
673
776
  text: ::String
674
777
  }?
675
778
  },
676
- template_type: ("TEXT")
779
+ template_type: ("TEXT" | "CHAT")
677
780
  },
678
781
  ]
679
782
  ) -> _CreatePromptResponseSuccess
@@ -1582,6 +1685,10 @@ module Aws
1582
1685
  iterator: {
1583
1686
  }?,
1584
1687
  knowledge_base: {
1688
+ guardrail_configuration: {
1689
+ guardrail_identifier: ::String?,
1690
+ guardrail_version: ::String?
1691
+ }?,
1585
1692
  knowledge_base_id: ::String,
1586
1693
  model_id: ::String?
1587
1694
  }?,
@@ -1595,6 +1702,10 @@ module Aws
1595
1702
  output: {
1596
1703
  }?,
1597
1704
  prompt: {
1705
+ guardrail_configuration: {
1706
+ guardrail_identifier: ::String?,
1707
+ guardrail_version: ::String?
1708
+ }?,
1598
1709
  source_configuration: {
1599
1710
  inline: {
1600
1711
  additional_model_request_fields: {
@@ -1609,6 +1720,51 @@ module Aws
1609
1720
  }?,
1610
1721
  model_id: ::String,
1611
1722
  template_configuration: {
1723
+ chat: {
1724
+ input_variables: Array[
1725
+ {
1726
+ name: ::String?
1727
+ },
1728
+ ]?,
1729
+ messages: Array[
1730
+ {
1731
+ content: Array[
1732
+ {
1733
+ text: ::String?
1734
+ },
1735
+ ],
1736
+ role: ("user" | "assistant")
1737
+ },
1738
+ ],
1739
+ system: Array[
1740
+ {
1741
+ text: ::String?
1742
+ },
1743
+ ]?,
1744
+ tool_configuration: {
1745
+ tool_choice: {
1746
+ any: {
1747
+ }?,
1748
+ auto: {
1749
+ }?,
1750
+ tool: {
1751
+ name: ::String
1752
+ }?
1753
+ }?,
1754
+ tools: Array[
1755
+ {
1756
+ tool_spec: {
1757
+ description: ::String?,
1758
+ input_schema: {
1759
+ json: {
1760
+ }?
1761
+ },
1762
+ name: ::String
1763
+ }?
1764
+ },
1765
+ ]
1766
+ }?
1767
+ }?,
1612
1768
  text: {
1613
1769
  input_variables: Array[
1614
1770
  {
@@ -1618,7 +1774,7 @@ module Aws
1618
1774
  text: ::String
1619
1775
  }?
1620
1776
  },
1621
- template_type: ("TEXT")
1777
+ template_type: ("TEXT" | "CHAT")
1622
1778
  }?,
1623
1779
  resource: {
1624
1780
  prompt_arn: ::String
@@ -1794,6 +1950,11 @@ module Aws
1794
1950
  {
1795
1951
  additional_model_request_fields: {
1796
1952
  }?,
1953
+ gen_ai_resource: {
1954
+ agent: {
1955
+ agent_identifier: ::String
1956
+ }?
1957
+ }?,
1797
1958
  inference_configuration: {
1798
1959
  text: {
1799
1960
  max_tokens: ::Integer?,
@@ -1811,6 +1972,51 @@ module Aws
1811
1972
  model_id: ::String?,
1812
1973
  name: ::String,
1813
1974
  template_configuration: {
1975
+ chat: {
1976
+ input_variables: Array[
1977
+ {
1978
+ name: ::String?
1979
+ },
1980
+ ]?,
1981
+ messages: Array[
1982
+ {
1983
+ content: Array[
1984
+ {
1985
+ text: ::String?
1986
+ },
1987
+ ],
1988
+ role: ("user" | "assistant")
1989
+ },
1990
+ ],
1991
+ system: Array[
1992
+ {
1993
+ text: ::String?
1994
+ },
1995
+ ]?,
1996
+ tool_configuration: {
1997
+ tool_choice: {
1998
+ any: {
1999
+ }?,
2000
+ auto: {
2001
+ }?,
2002
+ tool: {
2003
+ name: ::String
2004
+ }?
2005
+ }?,
2006
+ tools: Array[
2007
+ {
2008
+ tool_spec: {
2009
+ description: ::String?,
2010
+ input_schema: {
2011
+ json: {
2012
+ }?
2013
+ },
2014
+ name: ::String
2015
+ }?
2016
+ },
2017
+ ]
2018
+ }?
2019
+ }?,
1814
2020
  text: {
1815
2021
  input_variables: Array[
1816
2022
  {
@@ -1820,11 +2026,188 @@ module Aws
1820
2026
  text: ::String
1821
2027
  }?
1822
2028
  },
1823
- template_type: ("TEXT")
2029
+ template_type: ("TEXT" | "CHAT")
1824
2030
  },
1825
2031
  ]
1826
2032
  ) -> _UpdatePromptResponseSuccess
1827
2033
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdatePromptResponseSuccess
2034
+
2035
+ interface _ValidateFlowDefinitionResponseSuccess
2036
+ include ::Seahorse::Client::_ResponseSuccess[Types::ValidateFlowDefinitionResponse]
2037
+ def validations: () -> ::Array[Types::FlowValidation]
2038
+ end
2039
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#validate_flow_definition-instance_method
2040
+ def validate_flow_definition: (
2041
+ definition: {
2042
+ connections: Array[
2043
+ {
2044
+ configuration: {
2045
+ conditional: {
2046
+ condition: ::String
2047
+ }?,
2048
+ data: {
2049
+ source_output: ::String,
2050
+ target_input: ::String
2051
+ }?
2052
+ }?,
2053
+ name: ::String,
2054
+ source: ::String,
2055
+ target: ::String,
2056
+ type: ("Data" | "Conditional")
2057
+ },
2058
+ ]?,
2059
+ nodes: Array[
2060
+ {
2061
+ configuration: {
2062
+ agent: {
2063
+ agent_alias_arn: ::String
2064
+ }?,
2065
+ collector: {
2066
+ }?,
2067
+ condition: {
2068
+ conditions: Array[
2069
+ {
2070
+ expression: ::String?,
2071
+ name: ::String
2072
+ },
2073
+ ]
2074
+ }?,
2075
+ input: {
2076
+ }?,
2077
+ iterator: {
2078
+ }?,
2079
+ knowledge_base: {
2080
+ guardrail_configuration: {
2081
+ guardrail_identifier: ::String?,
2082
+ guardrail_version: ::String?
2083
+ }?,
2084
+ knowledge_base_id: ::String,
2085
+ model_id: ::String?
2086
+ }?,
2087
+ lambda_function: {
2088
+ lambda_arn: ::String
2089
+ }?,
2090
+ lex: {
2091
+ bot_alias_arn: ::String,
2092
+ locale_id: ::String
2093
+ }?,
2094
+ output: {
2095
+ }?,
2096
+ prompt: {
2097
+ guardrail_configuration: {
2098
+ guardrail_identifier: ::String?,
2099
+ guardrail_version: ::String?
2100
+ }?,
2101
+ source_configuration: {
2102
+ inline: {
2103
+ additional_model_request_fields: {
2104
+ }?,
2105
+ inference_configuration: {
2106
+ text: {
2107
+ max_tokens: ::Integer?,
2108
+ stop_sequences: Array[::String]?,
2109
+ temperature: ::Float?,
2110
+ top_p: ::Float?
2111
+ }?
2112
+ }?,
2113
+ model_id: ::String,
2114
+ template_configuration: {
2115
+ chat: {
2116
+ input_variables: Array[
2117
+ {
2118
+ name: ::String?
2119
+ },
2120
+ ]?,
2121
+ messages: Array[
2122
+ {
2123
+ content: Array[
2124
+ {
2125
+ text: ::String?
2126
+ },
2127
+ ],
2128
+ role: ("user" | "assistant")
2129
+ },
2130
+ ],
2131
+ system: Array[
2132
+ {
2133
+ text: ::String?
2134
+ },
2135
+ ]?,
2136
+ tool_configuration: {
2137
+ tool_choice: {
2138
+ any: {
2139
+ }?,
2140
+ auto: {
2141
+ }?,
2142
+ tool: {
2143
+ name: ::String
2144
+ }?
2145
+ }?,
2146
+ tools: Array[
2147
+ {
2148
+ tool_spec: {
2149
+ description: ::String?,
2150
+ input_schema: {
2151
+ json: {
2152
+ }?
2153
+ },
2154
+ name: ::String
2155
+ }?
2156
+ },
2157
+ ]
2158
+ }?
2159
+ }?,
2160
+ text: {
2161
+ input_variables: Array[
2162
+ {
2163
+ name: ::String?
2164
+ },
2165
+ ]?,
2166
+ text: ::String
2167
+ }?
2168
+ },
2169
+ template_type: ("TEXT" | "CHAT")
2170
+ }?,
2171
+ resource: {
2172
+ prompt_arn: ::String
2173
+ }?
2174
+ }
2175
+ }?,
2176
+ retrieval: {
2177
+ service_configuration: {
2178
+ s3: {
2179
+ bucket_name: ::String
2180
+ }?
2181
+ }
2182
+ }?,
2183
+ storage: {
2184
+ service_configuration: {
2185
+ s3: {
2186
+ bucket_name: ::String
2187
+ }?
2188
+ }
2189
+ }?
2190
+ }?,
2191
+ inputs: Array[
2192
+ {
2193
+ expression: ::String,
2194
+ name: ::String,
2195
+ type: ("String" | "Number" | "Boolean" | "Object" | "Array")
2196
+ },
2197
+ ]?,
2198
+ name: ::String,
2199
+ outputs: Array[
2200
+ {
2201
+ name: ::String,
2202
+ type: ("String" | "Number" | "Boolean" | "Object" | "Array")
2203
+ },
2204
+ ]?,
2205
+ type: ("Input" | "Output" | "KnowledgeBase" | "Condition" | "Lex" | "Prompt" | "LambdaFunction" | "Storage" | "Agent" | "Retrieval" | "Iterator" | "Collector")
2206
+ },
2207
+ ]?
2208
+ }
2209
+ ) -> _ValidateFlowDefinitionResponseSuccess
2210
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ValidateFlowDefinitionResponseSuccess
1828
2211
  end
1829
2212
  end
1830
2213
  end