aws-sdk-bedrockruntime 1.63.0 → 1.65.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockruntime/async_client.rb +1 -1
- data/lib/aws-sdk-bedrockruntime/client.rb +169 -1
- data/lib/aws-sdk-bedrockruntime/client_api.rb +46 -0
- data/lib/aws-sdk-bedrockruntime/types.rb +191 -8
- data/lib/aws-sdk-bedrockruntime.rb +1 -1
- data/sig/client.rbs +135 -3
- data/sig/types.rbs +46 -0
- metadata +1 -1
|
@@ -292,6 +292,11 @@ module Aws::BedrockRuntime
|
|
|
292
292
|
# The title or identifier of the source document being cited.
|
|
293
293
|
# @return [String]
|
|
294
294
|
#
|
|
295
|
+
# @!attribute [rw] source
|
|
296
|
+
# The source from the original search result that provided the cited
|
|
297
|
+
# content.
|
|
298
|
+
# @return [String]
|
|
299
|
+
#
|
|
295
300
|
# @!attribute [rw] source_content
|
|
296
301
|
# The specific content from the source document that was referenced or
|
|
297
302
|
# cited in the generated response.
|
|
@@ -307,6 +312,7 @@ module Aws::BedrockRuntime
|
|
|
307
312
|
#
|
|
308
313
|
class Citation < Struct.new(
|
|
309
314
|
:title,
|
|
315
|
+
:source,
|
|
310
316
|
:source_content,
|
|
311
317
|
:location)
|
|
312
318
|
SENSITIVE = []
|
|
@@ -367,6 +373,12 @@ module Aws::BedrockRuntime
|
|
|
367
373
|
# logical chunks.
|
|
368
374
|
# @return [Types::DocumentChunkLocation]
|
|
369
375
|
#
|
|
376
|
+
# @!attribute [rw] search_result_location
|
|
377
|
+
# The search result location where the cited content is found,
|
|
378
|
+
# including the search result index and block positions within the
|
|
379
|
+
# content array.
|
|
380
|
+
# @return [Types::SearchResultLocation]
|
|
381
|
+
#
|
|
370
382
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/CitationLocation AWS API Documentation
|
|
371
383
|
#
|
|
372
384
|
class CitationLocation < Struct.new(
|
|
@@ -374,6 +386,7 @@ module Aws::BedrockRuntime
|
|
|
374
386
|
:document_char,
|
|
375
387
|
:document_page,
|
|
376
388
|
:document_chunk,
|
|
389
|
+
:search_result_location,
|
|
377
390
|
:unknown)
|
|
378
391
|
SENSITIVE = []
|
|
379
392
|
include Aws::Structure
|
|
@@ -383,6 +396,7 @@ module Aws::BedrockRuntime
|
|
|
383
396
|
class DocumentChar < CitationLocation; end
|
|
384
397
|
class DocumentPage < CitationLocation; end
|
|
385
398
|
class DocumentChunk < CitationLocation; end
|
|
399
|
+
class SearchResultLocation < CitationLocation; end
|
|
386
400
|
class Unknown < CitationLocation; end
|
|
387
401
|
end
|
|
388
402
|
|
|
@@ -478,6 +492,11 @@ module Aws::BedrockRuntime
|
|
|
478
492
|
# The title or identifier of the source document being cited.
|
|
479
493
|
# @return [String]
|
|
480
494
|
#
|
|
495
|
+
# @!attribute [rw] source
|
|
496
|
+
# The source from the original search result that provided the cited
|
|
497
|
+
# content.
|
|
498
|
+
# @return [String]
|
|
499
|
+
#
|
|
481
500
|
# @!attribute [rw] source_content
|
|
482
501
|
# The specific content from the source document that was referenced or
|
|
483
502
|
# cited in the generated response.
|
|
@@ -494,6 +513,7 @@ module Aws::BedrockRuntime
|
|
|
494
513
|
#
|
|
495
514
|
class CitationsDelta < Struct.new(
|
|
496
515
|
:title,
|
|
516
|
+
:source,
|
|
497
517
|
:source_content,
|
|
498
518
|
:location)
|
|
499
519
|
SENSITIVE = []
|
|
@@ -578,6 +598,10 @@ module Aws::BedrockRuntime
|
|
|
578
598
|
# and source documents.
|
|
579
599
|
# @return [Types::CitationsContentBlock]
|
|
580
600
|
#
|
|
601
|
+
# @!attribute [rw] search_result
|
|
602
|
+
# Search result to include in the message.
|
|
603
|
+
# @return [Types::SearchResultBlock]
|
|
604
|
+
#
|
|
581
605
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/ContentBlock AWS API Documentation
|
|
582
606
|
#
|
|
583
607
|
class ContentBlock < Struct.new(
|
|
@@ -591,6 +615,7 @@ module Aws::BedrockRuntime
|
|
|
591
615
|
:cache_point,
|
|
592
616
|
:reasoning_content,
|
|
593
617
|
:citations_content,
|
|
618
|
+
:search_result,
|
|
594
619
|
:unknown)
|
|
595
620
|
SENSITIVE = [:reasoning_content]
|
|
596
621
|
include Aws::Structure
|
|
@@ -606,6 +631,7 @@ module Aws::BedrockRuntime
|
|
|
606
631
|
class CachePoint < ContentBlock; end
|
|
607
632
|
class ReasoningContent < ContentBlock; end
|
|
608
633
|
class CitationsContent < ContentBlock; end
|
|
634
|
+
class SearchResult < ContentBlock; end
|
|
609
635
|
class Unknown < ContentBlock; end
|
|
610
636
|
end
|
|
611
637
|
|
|
@@ -906,6 +932,11 @@ module Aws::BedrockRuntime
|
|
|
906
932
|
# Model performance settings for the request.
|
|
907
933
|
# @return [Types::PerformanceConfiguration]
|
|
908
934
|
#
|
|
935
|
+
# @!attribute [rw] service_tier
|
|
936
|
+
# Specifies the processing tier configuration used for serving the
|
|
937
|
+
# request.
|
|
938
|
+
# @return [Types::ServiceTier]
|
|
939
|
+
#
|
|
909
940
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/ConverseRequest AWS API Documentation
|
|
910
941
|
#
|
|
911
942
|
class ConverseRequest < Struct.new(
|
|
@@ -919,7 +950,8 @@ module Aws::BedrockRuntime
|
|
|
919
950
|
:prompt_variables,
|
|
920
951
|
:additional_model_response_field_paths,
|
|
921
952
|
:request_metadata,
|
|
922
|
-
:performance_config
|
|
953
|
+
:performance_config,
|
|
954
|
+
:service_tier)
|
|
923
955
|
SENSITIVE = [:prompt_variables, :request_metadata]
|
|
924
956
|
include Aws::Structure
|
|
925
957
|
end
|
|
@@ -955,6 +987,11 @@ module Aws::BedrockRuntime
|
|
|
955
987
|
# Model performance settings for the request.
|
|
956
988
|
# @return [Types::PerformanceConfiguration]
|
|
957
989
|
#
|
|
990
|
+
# @!attribute [rw] service_tier
|
|
991
|
+
# Specifies the processing tier configuration used for serving the
|
|
992
|
+
# request.
|
|
993
|
+
# @return [Types::ServiceTier]
|
|
994
|
+
#
|
|
958
995
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/ConverseResponse AWS API Documentation
|
|
959
996
|
#
|
|
960
997
|
class ConverseResponse < Struct.new(
|
|
@@ -964,7 +1001,8 @@ module Aws::BedrockRuntime
|
|
|
964
1001
|
:metrics,
|
|
965
1002
|
:additional_model_response_fields,
|
|
966
1003
|
:trace,
|
|
967
|
-
:performance_config
|
|
1004
|
+
:performance_config,
|
|
1005
|
+
:service_tier)
|
|
968
1006
|
SENSITIVE = []
|
|
969
1007
|
include Aws::Structure
|
|
970
1008
|
end
|
|
@@ -993,6 +1031,11 @@ module Aws::BedrockRuntime
|
|
|
993
1031
|
# event.
|
|
994
1032
|
# @return [Types::PerformanceConfiguration]
|
|
995
1033
|
#
|
|
1034
|
+
# @!attribute [rw] service_tier
|
|
1035
|
+
# Specifies the processing tier configuration used for serving the
|
|
1036
|
+
# request.
|
|
1037
|
+
# @return [Types::ServiceTier]
|
|
1038
|
+
#
|
|
996
1039
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/ConverseStreamMetadataEvent AWS API Documentation
|
|
997
1040
|
#
|
|
998
1041
|
class ConverseStreamMetadataEvent < Struct.new(
|
|
@@ -1000,6 +1043,7 @@ module Aws::BedrockRuntime
|
|
|
1000
1043
|
:metrics,
|
|
1001
1044
|
:trace,
|
|
1002
1045
|
:performance_config,
|
|
1046
|
+
:service_tier,
|
|
1003
1047
|
:event_type)
|
|
1004
1048
|
SENSITIVE = []
|
|
1005
1049
|
include Aws::Structure
|
|
@@ -1143,6 +1187,11 @@ module Aws::BedrockRuntime
|
|
|
1143
1187
|
# Model performance settings for the request.
|
|
1144
1188
|
# @return [Types::PerformanceConfiguration]
|
|
1145
1189
|
#
|
|
1190
|
+
# @!attribute [rw] service_tier
|
|
1191
|
+
# Specifies the processing tier configuration used for serving the
|
|
1192
|
+
# request.
|
|
1193
|
+
# @return [Types::ServiceTier]
|
|
1194
|
+
#
|
|
1146
1195
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/ConverseStreamRequest AWS API Documentation
|
|
1147
1196
|
#
|
|
1148
1197
|
class ConverseStreamRequest < Struct.new(
|
|
@@ -1156,7 +1205,8 @@ module Aws::BedrockRuntime
|
|
|
1156
1205
|
:prompt_variables,
|
|
1157
1206
|
:additional_model_response_field_paths,
|
|
1158
1207
|
:request_metadata,
|
|
1159
|
-
:performance_config
|
|
1208
|
+
:performance_config,
|
|
1209
|
+
:service_tier)
|
|
1160
1210
|
SENSITIVE = [:prompt_variables, :request_metadata]
|
|
1161
1211
|
include Aws::Structure
|
|
1162
1212
|
end
|
|
@@ -1213,11 +1263,25 @@ module Aws::BedrockRuntime
|
|
|
1213
1263
|
# provided.
|
|
1214
1264
|
# @return [Array<Types::SystemContentBlock>]
|
|
1215
1265
|
#
|
|
1266
|
+
# @!attribute [rw] tool_config
|
|
1267
|
+
# The toolConfig of Converse input request to count tokens for.
|
|
1268
|
+
# Configuration information for the tools that the model can use when
|
|
1269
|
+
# generating a response.
|
|
1270
|
+
# @return [Types::ToolConfiguration]
|
|
1271
|
+
#
|
|
1272
|
+
# @!attribute [rw] additional_model_request_fields
|
|
1273
|
+
# The additionalModelRequestFields of Converse input request to count
|
|
1274
|
+
# tokens for. Use this field when you want to pass additional
|
|
1275
|
+
# parameters that the model supports.
|
|
1276
|
+
# @return [Hash,Array,String,Numeric,Boolean]
|
|
1277
|
+
#
|
|
1216
1278
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/ConverseTokensRequest AWS API Documentation
|
|
1217
1279
|
#
|
|
1218
1280
|
class ConverseTokensRequest < Struct.new(
|
|
1219
1281
|
:messages,
|
|
1220
|
-
:system
|
|
1282
|
+
:system,
|
|
1283
|
+
:tool_config,
|
|
1284
|
+
:additional_model_request_fields)
|
|
1221
1285
|
SENSITIVE = []
|
|
1222
1286
|
include Aws::Structure
|
|
1223
1287
|
end
|
|
@@ -3047,6 +3111,10 @@ module Aws::BedrockRuntime
|
|
|
3047
3111
|
# Model performance settings for the request.
|
|
3048
3112
|
# @return [String]
|
|
3049
3113
|
#
|
|
3114
|
+
# @!attribute [rw] service_tier
|
|
3115
|
+
# Specifies the processing tier type used for serving the request.
|
|
3116
|
+
# @return [String]
|
|
3117
|
+
#
|
|
3050
3118
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/InvokeModelRequest AWS API Documentation
|
|
3051
3119
|
#
|
|
3052
3120
|
class InvokeModelRequest < Struct.new(
|
|
@@ -3057,7 +3125,8 @@ module Aws::BedrockRuntime
|
|
|
3057
3125
|
:trace,
|
|
3058
3126
|
:guardrail_identifier,
|
|
3059
3127
|
:guardrail_version,
|
|
3060
|
-
:performance_config_latency
|
|
3128
|
+
:performance_config_latency,
|
|
3129
|
+
:service_tier)
|
|
3061
3130
|
SENSITIVE = [:body]
|
|
3062
3131
|
include Aws::Structure
|
|
3063
3132
|
end
|
|
@@ -3081,12 +3150,17 @@ module Aws::BedrockRuntime
|
|
|
3081
3150
|
# Model performance settings for the request.
|
|
3082
3151
|
# @return [String]
|
|
3083
3152
|
#
|
|
3153
|
+
# @!attribute [rw] service_tier
|
|
3154
|
+
# Specifies the processing tier type used for serving the request.
|
|
3155
|
+
# @return [String]
|
|
3156
|
+
#
|
|
3084
3157
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/InvokeModelResponse AWS API Documentation
|
|
3085
3158
|
#
|
|
3086
3159
|
class InvokeModelResponse < Struct.new(
|
|
3087
3160
|
:body,
|
|
3088
3161
|
:content_type,
|
|
3089
|
-
:performance_config_latency
|
|
3162
|
+
:performance_config_latency,
|
|
3163
|
+
:service_tier)
|
|
3090
3164
|
SENSITIVE = [:body]
|
|
3091
3165
|
include Aws::Structure
|
|
3092
3166
|
end
|
|
@@ -3246,6 +3320,10 @@ module Aws::BedrockRuntime
|
|
|
3246
3320
|
# Model performance settings for the request.
|
|
3247
3321
|
# @return [String]
|
|
3248
3322
|
#
|
|
3323
|
+
# @!attribute [rw] service_tier
|
|
3324
|
+
# Specifies the processing tier type used for serving the request.
|
|
3325
|
+
# @return [String]
|
|
3326
|
+
#
|
|
3249
3327
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/InvokeModelWithResponseStreamRequest AWS API Documentation
|
|
3250
3328
|
#
|
|
3251
3329
|
class InvokeModelWithResponseStreamRequest < Struct.new(
|
|
@@ -3256,7 +3334,8 @@ module Aws::BedrockRuntime
|
|
|
3256
3334
|
:trace,
|
|
3257
3335
|
:guardrail_identifier,
|
|
3258
3336
|
:guardrail_version,
|
|
3259
|
-
:performance_config_latency
|
|
3337
|
+
:performance_config_latency,
|
|
3338
|
+
:service_tier)
|
|
3260
3339
|
SENSITIVE = [:body]
|
|
3261
3340
|
include Aws::Structure
|
|
3262
3341
|
end
|
|
@@ -3279,12 +3358,17 @@ module Aws::BedrockRuntime
|
|
|
3279
3358
|
# Model performance settings for the request.
|
|
3280
3359
|
# @return [String]
|
|
3281
3360
|
#
|
|
3361
|
+
# @!attribute [rw] service_tier
|
|
3362
|
+
# Specifies the processing tier type used for serving the request.
|
|
3363
|
+
# @return [String]
|
|
3364
|
+
#
|
|
3282
3365
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/InvokeModelWithResponseStreamResponse AWS API Documentation
|
|
3283
3366
|
#
|
|
3284
3367
|
class InvokeModelWithResponseStreamResponse < Struct.new(
|
|
3285
3368
|
:body,
|
|
3286
3369
|
:content_type,
|
|
3287
|
-
:performance_config_latency
|
|
3370
|
+
:performance_config_latency,
|
|
3371
|
+
:service_tier)
|
|
3288
3372
|
SENSITIVE = []
|
|
3289
3373
|
include Aws::Structure
|
|
3290
3374
|
end
|
|
@@ -3708,6 +3792,84 @@ module Aws::BedrockRuntime
|
|
|
3708
3792
|
include Aws::Structure
|
|
3709
3793
|
end
|
|
3710
3794
|
|
|
3795
|
+
# A search result block that enables natural citations with proper
|
|
3796
|
+
# source attribution for retrieved content.
|
|
3797
|
+
#
|
|
3798
|
+
# <note markdown="1"> This field is only supported by Anthropic Claude Opus 4.1, Opus 4,
|
|
3799
|
+
# Sonnet 4.5, Sonnet 4, Sonnet 3.7, and 3.5 Haiku models.
|
|
3800
|
+
#
|
|
3801
|
+
# </note>
|
|
3802
|
+
#
|
|
3803
|
+
# @!attribute [rw] source
|
|
3804
|
+
# The source URL or identifier for the content.
|
|
3805
|
+
# @return [String]
|
|
3806
|
+
#
|
|
3807
|
+
# @!attribute [rw] title
|
|
3808
|
+
# A descriptive title for the search result.
|
|
3809
|
+
# @return [String]
|
|
3810
|
+
#
|
|
3811
|
+
# @!attribute [rw] content
|
|
3812
|
+
# An array of search result content block.
|
|
3813
|
+
# @return [Array<Types::SearchResultContentBlock>]
|
|
3814
|
+
#
|
|
3815
|
+
# @!attribute [rw] citations
|
|
3816
|
+
# Configuration setting for citations
|
|
3817
|
+
# @return [Types::CitationsConfig]
|
|
3818
|
+
#
|
|
3819
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/SearchResultBlock AWS API Documentation
|
|
3820
|
+
#
|
|
3821
|
+
class SearchResultBlock < Struct.new(
|
|
3822
|
+
:source,
|
|
3823
|
+
:title,
|
|
3824
|
+
:content,
|
|
3825
|
+
:citations)
|
|
3826
|
+
SENSITIVE = []
|
|
3827
|
+
include Aws::Structure
|
|
3828
|
+
end
|
|
3829
|
+
|
|
3830
|
+
# A block within a search result that contains the content.
|
|
3831
|
+
#
|
|
3832
|
+
# @!attribute [rw] text
|
|
3833
|
+
# The actual text content
|
|
3834
|
+
# @return [String]
|
|
3835
|
+
#
|
|
3836
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/SearchResultContentBlock AWS API Documentation
|
|
3837
|
+
#
|
|
3838
|
+
class SearchResultContentBlock < Struct.new(
|
|
3839
|
+
:text)
|
|
3840
|
+
SENSITIVE = []
|
|
3841
|
+
include Aws::Structure
|
|
3842
|
+
end
|
|
3843
|
+
|
|
3844
|
+
# Specifies a search result location within the content array, providing
|
|
3845
|
+
# positioning information for cited content using search result index
|
|
3846
|
+
# and block positions.
|
|
3847
|
+
#
|
|
3848
|
+
# @!attribute [rw] search_result_index
|
|
3849
|
+
# The index of the search result content block where the cited content
|
|
3850
|
+
# is found.
|
|
3851
|
+
# @return [Integer]
|
|
3852
|
+
#
|
|
3853
|
+
# @!attribute [rw] start
|
|
3854
|
+
# The starting position in the content array where the cited content
|
|
3855
|
+
# begins.
|
|
3856
|
+
# @return [Integer]
|
|
3857
|
+
#
|
|
3858
|
+
# @!attribute [rw] end
|
|
3859
|
+
# The ending position in the content array where the cited content
|
|
3860
|
+
# ends.
|
|
3861
|
+
# @return [Integer]
|
|
3862
|
+
#
|
|
3863
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/SearchResultLocation AWS API Documentation
|
|
3864
|
+
#
|
|
3865
|
+
class SearchResultLocation < Struct.new(
|
|
3866
|
+
:search_result_index,
|
|
3867
|
+
:start,
|
|
3868
|
+
:end)
|
|
3869
|
+
SENSITIVE = []
|
|
3870
|
+
include Aws::Structure
|
|
3871
|
+
end
|
|
3872
|
+
|
|
3711
3873
|
# Your request exceeds the service quota for your account. You can view
|
|
3712
3874
|
# your quotas at [Viewing service quotas][1]. You can resubmit your
|
|
3713
3875
|
# request later.
|
|
@@ -3727,6 +3889,21 @@ module Aws::BedrockRuntime
|
|
|
3727
3889
|
include Aws::Structure
|
|
3728
3890
|
end
|
|
3729
3891
|
|
|
3892
|
+
# Specifies the processing tier configuration used for serving the
|
|
3893
|
+
# request.
|
|
3894
|
+
#
|
|
3895
|
+
# @!attribute [rw] type
|
|
3896
|
+
# Specifies the processing tier type used for serving the request.
|
|
3897
|
+
# @return [String]
|
|
3898
|
+
#
|
|
3899
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/ServiceTier AWS API Documentation
|
|
3900
|
+
#
|
|
3901
|
+
class ServiceTier < Struct.new(
|
|
3902
|
+
:type)
|
|
3903
|
+
SENSITIVE = []
|
|
3904
|
+
include Aws::Structure
|
|
3905
|
+
end
|
|
3906
|
+
|
|
3730
3907
|
# The service isn't currently available. For troubleshooting this
|
|
3731
3908
|
# error, see [ServiceUnavailable][1] in the Amazon Bedrock User Guide
|
|
3732
3909
|
#
|
|
@@ -4219,6 +4396,10 @@ module Aws::BedrockRuntime
|
|
|
4219
4396
|
# A tool result that is video.
|
|
4220
4397
|
# @return [Types::VideoBlock]
|
|
4221
4398
|
#
|
|
4399
|
+
# @!attribute [rw] search_result
|
|
4400
|
+
# A tool result that is a search result.
|
|
4401
|
+
# @return [Types::SearchResultBlock]
|
|
4402
|
+
#
|
|
4222
4403
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/ToolResultContentBlock AWS API Documentation
|
|
4223
4404
|
#
|
|
4224
4405
|
class ToolResultContentBlock < Struct.new(
|
|
@@ -4227,6 +4408,7 @@ module Aws::BedrockRuntime
|
|
|
4227
4408
|
:image,
|
|
4228
4409
|
:document,
|
|
4229
4410
|
:video,
|
|
4411
|
+
:search_result,
|
|
4230
4412
|
:unknown)
|
|
4231
4413
|
SENSITIVE = []
|
|
4232
4414
|
include Aws::Structure
|
|
@@ -4237,6 +4419,7 @@ module Aws::BedrockRuntime
|
|
|
4237
4419
|
class Image < ToolResultContentBlock; end
|
|
4238
4420
|
class Document < ToolResultContentBlock; end
|
|
4239
4421
|
class Video < ToolResultContentBlock; end
|
|
4422
|
+
class SearchResult < ToolResultContentBlock; end
|
|
4240
4423
|
class Unknown < ToolResultContentBlock; end
|
|
4241
4424
|
end
|
|
4242
4425
|
|
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
|
]
|
|
@@ -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")
|
|
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
|
]
|
|
@@ -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")
|
|
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")
|
|
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")
|
|
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")
|
|
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")
|
|
886
1018
|
) ?{ (*untyped) -> void } -> _InvokeModelWithResponseStreamResponseSuccess
|
|
887
1019
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _InvokeModelWithResponseStreamResponseSuccess
|
|
888
1020
|
|