aws-sdk-bedrockruntime 1.63.0 → 1.67.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.
data/sig/client.rbs CHANGED
@@ -122,6 +122,7 @@ module Aws
122
122
  def additional_model_response_fields: () -> untyped
123
123
  def trace: () -> Types::ConverseTrace
124
124
  def performance_config: () -> Types::PerformanceConfiguration
125
+ def service_tier: () -> Types::ServiceTier
125
126
  end
126
127
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockRuntime/Client.html#converse-instance_method
127
128
  def converse: (
@@ -227,6 +228,18 @@ module Aws
227
228
  bucket_owner: ::String?
228
229
  }?
229
230
  }
231
+ }?,
232
+ search_result: {
233
+ source: ::String,
234
+ title: ::String,
235
+ content: Array[
236
+ {
237
+ text: ::String
238
+ },
239
+ ],
240
+ citations: {
241
+ enabled: bool
242
+ }?
230
243
  }?
231
244
  },
232
245
  ],
@@ -264,6 +277,7 @@ module Aws
264
277
  citations: Array[
265
278
  {
266
279
  title: ::String?,
280
+ source: ::String?,
267
281
  source_content: Array[
268
282
  {
269
283
  text: ::String?
@@ -288,10 +302,27 @@ module Aws
288
302
  document_index: ::Integer?,
289
303
  start: ::Integer?,
290
304
  end: ::Integer?
305
+ }?,
306
+ search_result_location: {
307
+ search_result_index: ::Integer?,
308
+ start: ::Integer?,
309
+ end: ::Integer?
291
310
  }?
292
311
  }?
293
312
  },
294
313
  ]?
314
+ }?,
315
+ search_result: {
316
+ source: ::String,
317
+ title: ::String,
318
+ content: Array[
319
+ {
320
+ text: ::String
321
+ },
322
+ ],
323
+ citations: {
324
+ enabled: bool
325
+ }?
295
326
  }?
296
327
  },
297
328
  ]
@@ -353,8 +384,8 @@ module Aws
353
384
  }?
354
385
  },
355
386
  ?guardrail_config: {
356
- guardrail_identifier: ::String,
357
- guardrail_version: ::String,
387
+ guardrail_identifier: ::String?,
388
+ guardrail_version: ::String?,
358
389
  trace: ("enabled" | "disabled" | "enabled_full")?
359
390
  },
360
391
  ?additional_model_request_fields: {
@@ -366,6 +397,9 @@ module Aws
366
397
  ?request_metadata: Hash[::String, ::String],
367
398
  ?performance_config: {
368
399
  latency: ("standard" | "optimized")?
400
+ },
401
+ ?service_tier: {
402
+ type: ("priority" | "default" | "flex" | "reserved")
369
403
  }
370
404
  ) -> _ConverseResponseSuccess
371
405
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ConverseResponseSuccess
@@ -478,6 +512,18 @@ module Aws
478
512
  bucket_owner: ::String?
479
513
  }?
480
514
  }
515
+ }?,
516
+ search_result: {
517
+ source: ::String,
518
+ title: ::String,
519
+ content: Array[
520
+ {
521
+ text: ::String
522
+ },
523
+ ],
524
+ citations: {
525
+ enabled: bool
526
+ }?
481
527
  }?
482
528
  },
483
529
  ],
@@ -515,6 +561,7 @@ module Aws
515
561
  citations: Array[
516
562
  {
517
563
  title: ::String?,
564
+ source: ::String?,
518
565
  source_content: Array[
519
566
  {
520
567
  text: ::String?
@@ -539,10 +586,27 @@ module Aws
539
586
  document_index: ::Integer?,
540
587
  start: ::Integer?,
541
588
  end: ::Integer?
589
+ }?,
590
+ search_result_location: {
591
+ search_result_index: ::Integer?,
592
+ start: ::Integer?,
593
+ end: ::Integer?
542
594
  }?
543
595
  }?
544
596
  },
545
597
  ]?
598
+ }?,
599
+ search_result: {
600
+ source: ::String,
601
+ title: ::String,
602
+ content: Array[
603
+ {
604
+ text: ::String
605
+ },
606
+ ],
607
+ citations: {
608
+ enabled: bool
609
+ }?
546
610
  }?
547
611
  },
548
612
  ]
@@ -604,8 +668,8 @@ module Aws
604
668
  }?
605
669
  },
606
670
  ?guardrail_config: {
607
- guardrail_identifier: ::String,
608
- guardrail_version: ::String,
671
+ guardrail_identifier: ::String?,
672
+ guardrail_version: ::String?,
609
673
  trace: ("enabled" | "disabled" | "enabled_full")?,
610
674
  stream_processing_mode: ("sync" | "async")?
611
675
  },
@@ -618,6 +682,9 @@ module Aws
618
682
  ?request_metadata: Hash[::String, ::String],
619
683
  ?performance_config: {
620
684
  latency: ("standard" | "optimized")?
685
+ },
686
+ ?service_tier: {
687
+ type: ("priority" | "default" | "flex" | "reserved")
621
688
  }
622
689
  ) ?{ (*untyped) -> void } -> _ConverseStreamResponseSuccess
623
690
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _ConverseStreamResponseSuccess
@@ -735,6 +802,18 @@ module Aws
735
802
  bucket_owner: ::String?
736
803
  }?
737
804
  }
805
+ }?,
806
+ search_result: {
807
+ source: ::String,
808
+ title: ::String,
809
+ content: Array[
810
+ {
811
+ text: ::String
812
+ },
813
+ ],
814
+ citations: {
815
+ enabled: bool
816
+ }?
738
817
  }?
739
818
  },
740
819
  ],
@@ -772,6 +851,7 @@ module Aws
772
851
  citations: Array[
773
852
  {
774
853
  title: ::String?,
854
+ source: ::String?,
775
855
  source_content: Array[
776
856
  {
777
857
  text: ::String?
@@ -796,10 +876,27 @@ module Aws
796
876
  document_index: ::Integer?,
797
877
  start: ::Integer?,
798
878
  end: ::Integer?
879
+ }?,
880
+ search_result_location: {
881
+ search_result_index: ::Integer?,
882
+ start: ::Integer?,
883
+ end: ::Integer?
799
884
  }?
800
885
  }?
801
886
  },
802
887
  ]?
888
+ }?,
889
+ search_result: {
890
+ source: ::String,
891
+ title: ::String,
892
+ content: Array[
893
+ {
894
+ text: ::String
895
+ },
896
+ ],
897
+ citations: {
898
+ enabled: bool
899
+ }?
803
900
  }?
804
901
  },
805
902
  ]
@@ -824,7 +921,38 @@ module Aws
824
921
  type: ("default")
825
922
  }?
826
923
  },
827
- ]?
924
+ ]?,
925
+ tool_config: {
926
+ tools: Array[
927
+ {
928
+ tool_spec: {
929
+ name: ::String,
930
+ description: ::String?,
931
+ input_schema: {
932
+ json: {
933
+ }?
934
+ }
935
+ }?,
936
+ system_tool: {
937
+ name: ::String
938
+ }?,
939
+ cache_point: {
940
+ type: ("default")
941
+ }?
942
+ },
943
+ ],
944
+ tool_choice: {
945
+ auto: {
946
+ }?,
947
+ any: {
948
+ }?,
949
+ tool: {
950
+ name: ::String
951
+ }?
952
+ }?
953
+ }?,
954
+ additional_model_request_fields: {
955
+ }?
828
956
  }?
829
957
  }
830
958
  ) -> _CountTokensResponseSuccess
@@ -853,6 +981,7 @@ module Aws
853
981
  def body: () -> ::String
854
982
  def content_type: () -> ::String
855
983
  def performance_config_latency: () -> ("standard" | "optimized")
984
+ def service_tier: () -> ("priority" | "default" | "flex" | "reserved")
856
985
  end
857
986
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockRuntime/Client.html#invoke_model-instance_method
858
987
  def invoke_model: (
@@ -863,7 +992,8 @@ module Aws
863
992
  ?trace: ("ENABLED" | "DISABLED" | "ENABLED_FULL"),
864
993
  ?guardrail_identifier: ::String,
865
994
  ?guardrail_version: ::String,
866
- ?performance_config_latency: ("standard" | "optimized")
995
+ ?performance_config_latency: ("standard" | "optimized"),
996
+ ?service_tier: ("priority" | "default" | "flex" | "reserved")
867
997
  ) -> _InvokeModelResponseSuccess
868
998
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _InvokeModelResponseSuccess
869
999
 
@@ -872,6 +1002,7 @@ module Aws
872
1002
  def body: () -> Types::ResponseStream
873
1003
  def content_type: () -> ::String
874
1004
  def performance_config_latency: () -> ("standard" | "optimized")
1005
+ def service_tier: () -> ("priority" | "default" | "flex" | "reserved")
875
1006
  end
876
1007
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockRuntime/Client.html#invoke_model_with_response_stream-instance_method
877
1008
  def invoke_model_with_response_stream: (
@@ -882,7 +1013,8 @@ module Aws
882
1013
  ?trace: ("ENABLED" | "DISABLED" | "ENABLED_FULL"),
883
1014
  ?guardrail_identifier: ::String,
884
1015
  ?guardrail_version: ::String,
885
- ?performance_config_latency: ("standard" | "optimized")
1016
+ ?performance_config_latency: ("standard" | "optimized"),
1017
+ ?service_tier: ("priority" | "default" | "flex" | "reserved")
886
1018
  ) ?{ (*untyped) -> void } -> _InvokeModelWithResponseStreamResponseSuccess
887
1019
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _InvokeModelWithResponseStreamResponseSuccess
888
1020
 
data/sig/types.rbs CHANGED
@@ -16,6 +16,15 @@ module Aws::BedrockRuntime
16
16
  class AnyToolChoice < Aws::EmptyStructure
17
17
  end
18
18
 
19
+ class AppliedGuardrailDetails
20
+ attr_accessor guardrail_id: ::String
21
+ attr_accessor guardrail_version: ::String
22
+ attr_accessor guardrail_arn: ::String
23
+ attr_accessor guardrail_origin: ::Array[("REQUEST" | "ACCOUNT_ENFORCED" | "ORGANIZATION_ENFORCED")]
24
+ attr_accessor guardrail_ownership: ("SELF" | "CROSS_ACCOUNT")
25
+ SENSITIVE: []
26
+ end
27
+
19
28
  class ApplyGuardrailRequest
20
29
  attr_accessor guardrail_identifier: ::String
21
30
  attr_accessor guardrail_version: ::String
@@ -88,6 +97,7 @@ module Aws::BedrockRuntime
88
97
 
89
98
  class Citation
90
99
  attr_accessor title: ::String
100
+ attr_accessor source: ::String
91
101
  attr_accessor source_content: ::Array[Types::CitationSourceContent]
92
102
  attr_accessor location: Types::CitationLocation
93
103
  SENSITIVE: []
@@ -109,6 +119,7 @@ module Aws::BedrockRuntime
109
119
  attr_accessor document_char: Types::DocumentCharLocation
110
120
  attr_accessor document_page: Types::DocumentPageLocation
111
121
  attr_accessor document_chunk: Types::DocumentChunkLocation
122
+ attr_accessor search_result_location: Types::SearchResultLocation
112
123
  attr_accessor unknown: untyped
113
124
  SENSITIVE: []
114
125
 
@@ -120,6 +131,8 @@ module Aws::BedrockRuntime
120
131
  end
121
132
  class DocumentChunk < CitationLocation
122
133
  end
134
+ class SearchResultLocation < CitationLocation
135
+ end
123
136
  class Unknown < CitationLocation
124
137
  end
125
138
  end
@@ -153,6 +166,7 @@ module Aws::BedrockRuntime
153
166
 
154
167
  class CitationsDelta
155
168
  attr_accessor title: ::String
169
+ attr_accessor source: ::String
156
170
  attr_accessor source_content: ::Array[Types::CitationSourceContentDelta]
157
171
  attr_accessor location: Types::CitationLocation
158
172
  SENSITIVE: []
@@ -174,6 +188,7 @@ module Aws::BedrockRuntime
174
188
  attr_accessor cache_point: Types::CachePointBlock
175
189
  attr_accessor reasoning_content: Types::ReasoningContentBlock
176
190
  attr_accessor citations_content: Types::CitationsContentBlock
191
+ attr_accessor search_result: Types::SearchResultBlock
177
192
  attr_accessor unknown: untyped
178
193
  SENSITIVE: [:reasoning_content]
179
194
 
@@ -197,6 +212,8 @@ module Aws::BedrockRuntime
197
212
  end
198
213
  class CitationsContent < ContentBlock
199
214
  end
215
+ class SearchResult < ContentBlock
216
+ end
200
217
  class Unknown < ContentBlock
201
218
  end
202
219
  end
@@ -286,6 +303,7 @@ module Aws::BedrockRuntime
286
303
  attr_accessor additional_model_response_field_paths: ::Array[::String]
287
304
  attr_accessor request_metadata: ::Hash[::String, ::String]
288
305
  attr_accessor performance_config: Types::PerformanceConfiguration
306
+ attr_accessor service_tier: Types::ServiceTier
289
307
  SENSITIVE: [:prompt_variables, :request_metadata]
290
308
  end
291
309
 
@@ -297,6 +315,7 @@ module Aws::BedrockRuntime
297
315
  attr_accessor additional_model_response_fields: untyped
298
316
  attr_accessor trace: Types::ConverseTrace
299
317
  attr_accessor performance_config: Types::PerformanceConfiguration
318
+ attr_accessor service_tier: Types::ServiceTier
300
319
  SENSITIVE: []
301
320
  end
302
321
 
@@ -305,6 +324,7 @@ module Aws::BedrockRuntime
305
324
  attr_accessor metrics: Types::ConverseStreamMetrics
306
325
  attr_accessor trace: Types::ConverseStreamTrace
307
326
  attr_accessor performance_config: Types::PerformanceConfiguration
327
+ attr_accessor service_tier: Types::ServiceTier
308
328
  attr_accessor event_type: untyped
309
329
  SENSITIVE: []
310
330
  end
@@ -326,6 +346,7 @@ module Aws::BedrockRuntime
326
346
  attr_accessor additional_model_response_field_paths: ::Array[::String]
327
347
  attr_accessor request_metadata: ::Hash[::String, ::String]
328
348
  attr_accessor performance_config: Types::PerformanceConfiguration
349
+ attr_accessor service_tier: Types::ServiceTier
329
350
  SENSITIVE: [:prompt_variables, :request_metadata]
330
351
  end
331
352
 
@@ -343,6 +364,8 @@ module Aws::BedrockRuntime
343
364
  class ConverseTokensRequest
344
365
  attr_accessor messages: ::Array[Types::Message]
345
366
  attr_accessor system: ::Array[Types::SystemContentBlock]
367
+ attr_accessor tool_config: Types::ToolConfiguration
368
+ attr_accessor additional_model_request_fields: untyped
346
369
  SENSITIVE: []
347
370
  end
348
371
 
@@ -464,6 +487,7 @@ module Aws::BedrockRuntime
464
487
  attr_accessor contextual_grounding_policy: Types::GuardrailContextualGroundingPolicyAssessment
465
488
  attr_accessor automated_reasoning_policy: Types::GuardrailAutomatedReasoningPolicyAssessment
466
489
  attr_accessor invocation_metrics: Types::GuardrailInvocationMetrics
490
+ attr_accessor applied_guardrail_details: Types::AppliedGuardrailDetails
467
491
  SENSITIVE: []
468
492
  end
469
493
 
@@ -854,6 +878,7 @@ module Aws::BedrockRuntime
854
878
  attr_accessor guardrail_identifier: ::String
855
879
  attr_accessor guardrail_version: ::String
856
880
  attr_accessor performance_config_latency: ("standard" | "optimized")
881
+ attr_accessor service_tier: ("priority" | "default" | "flex" | "reserved")
857
882
  SENSITIVE: [:body]
858
883
  end
859
884
 
@@ -861,6 +886,7 @@ module Aws::BedrockRuntime
861
886
  attr_accessor body: ::String
862
887
  attr_accessor content_type: ::String
863
888
  attr_accessor performance_config_latency: ("standard" | "optimized")
889
+ attr_accessor service_tier: ("priority" | "default" | "flex" | "reserved")
864
890
  SENSITIVE: [:body]
865
891
  end
866
892
 
@@ -889,6 +915,7 @@ module Aws::BedrockRuntime
889
915
  attr_accessor guardrail_identifier: ::String
890
916
  attr_accessor guardrail_version: ::String
891
917
  attr_accessor performance_config_latency: ("standard" | "optimized")
918
+ attr_accessor service_tier: ("priority" | "default" | "flex" | "reserved")
892
919
  SENSITIVE: [:body]
893
920
  end
894
921
 
@@ -896,6 +923,7 @@ module Aws::BedrockRuntime
896
923
  attr_accessor body: Types::ResponseStream
897
924
  attr_accessor content_type: ::String
898
925
  attr_accessor performance_config_latency: ("standard" | "optimized")
926
+ attr_accessor service_tier: ("priority" | "default" | "flex" | "reserved")
899
927
  SENSITIVE: []
900
928
  end
901
929
 
@@ -1036,11 +1064,36 @@ module Aws::BedrockRuntime
1036
1064
  SENSITIVE: []
1037
1065
  end
1038
1066
 
1067
+ class SearchResultBlock
1068
+ attr_accessor source: ::String
1069
+ attr_accessor title: ::String
1070
+ attr_accessor content: ::Array[Types::SearchResultContentBlock]
1071
+ attr_accessor citations: Types::CitationsConfig
1072
+ SENSITIVE: []
1073
+ end
1074
+
1075
+ class SearchResultContentBlock
1076
+ attr_accessor text: ::String
1077
+ SENSITIVE: []
1078
+ end
1079
+
1080
+ class SearchResultLocation
1081
+ attr_accessor search_result_index: ::Integer
1082
+ attr_accessor start: ::Integer
1083
+ attr_accessor end: ::Integer
1084
+ SENSITIVE: []
1085
+ end
1086
+
1039
1087
  class ServiceQuotaExceededException
1040
1088
  attr_accessor message: ::String
1041
1089
  SENSITIVE: []
1042
1090
  end
1043
1091
 
1092
+ class ServiceTier
1093
+ attr_accessor type: ("priority" | "default" | "flex" | "reserved")
1094
+ SENSITIVE: []
1095
+ end
1096
+
1044
1097
  class ServiceUnavailableException
1045
1098
  attr_accessor message: ::String
1046
1099
  attr_accessor event_type: untyped
@@ -1192,6 +1245,7 @@ module Aws::BedrockRuntime
1192
1245
  attr_accessor image: Types::ImageBlock
1193
1246
  attr_accessor document: Types::DocumentBlock
1194
1247
  attr_accessor video: Types::VideoBlock
1248
+ attr_accessor search_result: Types::SearchResultBlock
1195
1249
  attr_accessor unknown: untyped
1196
1250
  SENSITIVE: []
1197
1251
 
@@ -1205,6 +1259,8 @@ module Aws::BedrockRuntime
1205
1259
  end
1206
1260
  class Video < ToolResultContentBlock
1207
1261
  end
1262
+ class SearchResult < ToolResultContentBlock
1263
+ end
1208
1264
  class Unknown < ToolResultContentBlock
1209
1265
  end
1210
1266
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-bedrockruntime
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.63.0
4
+ version: 1.67.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
@@ -18,7 +18,7 @@ dependencies:
18
18
  version: '3'
19
19
  - - ">="
20
20
  - !ruby/object:Gem::Version
21
- version: 3.234.0
21
+ version: 3.239.1
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -28,7 +28,7 @@ dependencies:
28
28
  version: '3'
29
29
  - - ">="
30
30
  - !ruby/object:Gem::Version
31
- version: 3.234.0
31
+ version: 3.239.1
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: aws-sigv4
34
34
  requirement: !ruby/object:Gem::Requirement