aws-sdk-bedrockruntime 1.72.0 → 1.73.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockruntime/async_client.rb +1 -1
- data/lib/aws-sdk-bedrockruntime/client.rb +34 -1
- data/lib/aws-sdk-bedrockruntime/client_api.rb +26 -0
- data/lib/aws-sdk-bedrockruntime/types.rb +108 -3
- data/lib/aws-sdk-bedrockruntime.rb +1 -1
- data/sig/client.rbs +30 -3
- data/sig/types.rbs +32 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c954e566176ffe4a5115d952631cc095d293077a32c450c87ef0e3878de327b0
|
|
4
|
+
data.tar.gz: b07886b2813cbe2495823f3b9d7566beea3a259c91bf5a63b95889410ff6d53b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 29e837287df6da304eec950765ce7560356073c1d3f4b524194964ebf8cd7838b808fcffa10981d7c37e460a2a95869c06a0eacc803ecd2e3998323363645faf
|
|
7
|
+
data.tar.gz: df49c34aaec9871bf6c5b09f5324cde2d29a7ff23a52d2d0c335e29b9919f660f472268302d4613196b6e46cdbe356d2111b3fe813c4bdb241a4ea0f9aac056f
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.73.0
|
|
@@ -924,6 +924,9 @@ module Aws::BedrockRuntime
|
|
|
924
924
|
# Specifies the processing tier configuration used for serving the
|
|
925
925
|
# request.
|
|
926
926
|
#
|
|
927
|
+
# @option params [Types::OutputConfig] :output_config
|
|
928
|
+
# Output configuration for a model response.
|
|
929
|
+
#
|
|
927
930
|
# @return [Types::ConverseResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
928
931
|
#
|
|
929
932
|
# * {Types::ConverseResponse#output #output} => Types::ConverseOutput
|
|
@@ -1197,6 +1200,7 @@ module Aws::BedrockRuntime
|
|
|
1197
1200
|
# json: {
|
|
1198
1201
|
# },
|
|
1199
1202
|
# },
|
|
1203
|
+
# strict: false,
|
|
1200
1204
|
# },
|
|
1201
1205
|
# system_tool: {
|
|
1202
1206
|
# name: "ToolName", # required
|
|
@@ -1239,6 +1243,18 @@ module Aws::BedrockRuntime
|
|
|
1239
1243
|
# service_tier: {
|
|
1240
1244
|
# type: "priority", # required, accepts priority, default, flex, reserved
|
|
1241
1245
|
# },
|
|
1246
|
+
# output_config: {
|
|
1247
|
+
# text_format: {
|
|
1248
|
+
# type: "json_schema", # required, accepts json_schema
|
|
1249
|
+
# structure: { # required
|
|
1250
|
+
# json_schema: {
|
|
1251
|
+
# schema: "String", # required
|
|
1252
|
+
# name: "String",
|
|
1253
|
+
# description: "String",
|
|
1254
|
+
# },
|
|
1255
|
+
# },
|
|
1256
|
+
# },
|
|
1257
|
+
# },
|
|
1242
1258
|
# })
|
|
1243
1259
|
#
|
|
1244
1260
|
# @example Response structure
|
|
@@ -1884,6 +1900,9 @@ module Aws::BedrockRuntime
|
|
|
1884
1900
|
# Specifies the processing tier configuration used for serving the
|
|
1885
1901
|
# request.
|
|
1886
1902
|
#
|
|
1903
|
+
# @option params [Types::OutputConfig] :output_config
|
|
1904
|
+
# Output configuration for a model response.
|
|
1905
|
+
#
|
|
1887
1906
|
# @return [Types::ConverseStreamResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1888
1907
|
#
|
|
1889
1908
|
# * {Types::ConverseStreamResponse#stream #stream} => Types::ConverseStreamOutput
|
|
@@ -2329,6 +2348,7 @@ module Aws::BedrockRuntime
|
|
|
2329
2348
|
# json: {
|
|
2330
2349
|
# },
|
|
2331
2350
|
# },
|
|
2351
|
+
# strict: false,
|
|
2332
2352
|
# },
|
|
2333
2353
|
# system_tool: {
|
|
2334
2354
|
# name: "ToolName", # required
|
|
@@ -2372,6 +2392,18 @@ module Aws::BedrockRuntime
|
|
|
2372
2392
|
# service_tier: {
|
|
2373
2393
|
# type: "priority", # required, accepts priority, default, flex, reserved
|
|
2374
2394
|
# },
|
|
2395
|
+
# output_config: {
|
|
2396
|
+
# text_format: {
|
|
2397
|
+
# type: "json_schema", # required, accepts json_schema
|
|
2398
|
+
# structure: { # required
|
|
2399
|
+
# json_schema: {
|
|
2400
|
+
# schema: "String", # required
|
|
2401
|
+
# name: "String",
|
|
2402
|
+
# description: "String",
|
|
2403
|
+
# },
|
|
2404
|
+
# },
|
|
2405
|
+
# },
|
|
2406
|
+
# },
|
|
2375
2407
|
# })
|
|
2376
2408
|
#
|
|
2377
2409
|
# @example Response structure
|
|
@@ -3144,6 +3176,7 @@ module Aws::BedrockRuntime
|
|
|
3144
3176
|
# json: {
|
|
3145
3177
|
# },
|
|
3146
3178
|
# },
|
|
3179
|
+
# strict: false,
|
|
3147
3180
|
# },
|
|
3148
3181
|
# system_tool: {
|
|
3149
3182
|
# name: "ToolName", # required
|
|
@@ -3893,7 +3926,7 @@ module Aws::BedrockRuntime
|
|
|
3893
3926
|
tracer: tracer
|
|
3894
3927
|
)
|
|
3895
3928
|
context[:gem_name] = 'aws-sdk-bedrockruntime'
|
|
3896
|
-
context[:gem_version] = '1.
|
|
3929
|
+
context[:gem_version] = '1.73.0'
|
|
3897
3930
|
Seahorse::Client::Request.new(handlers, context)
|
|
3898
3931
|
end
|
|
3899
3932
|
|
|
@@ -253,6 +253,7 @@ module Aws::BedrockRuntime
|
|
|
253
253
|
InvokeModelWithResponseStreamRequest = Shapes::StructureShape.new(name: 'InvokeModelWithResponseStreamRequest')
|
|
254
254
|
InvokeModelWithResponseStreamResponse = Shapes::StructureShape.new(name: 'InvokeModelWithResponseStreamResponse')
|
|
255
255
|
InvokedModelId = Shapes::StringShape.new(name: 'InvokedModelId')
|
|
256
|
+
JsonSchemaDefinition = Shapes::StructureShape.new(name: 'JsonSchemaDefinition')
|
|
256
257
|
KmsKeyId = Shapes::StringShape.new(name: 'KmsKeyId')
|
|
257
258
|
ListAsyncInvokesRequest = Shapes::StructureShape.new(name: 'ListAsyncInvokesRequest')
|
|
258
259
|
ListAsyncInvokesResponse = Shapes::StructureShape.new(name: 'ListAsyncInvokesResponse')
|
|
@@ -272,6 +273,10 @@ module Aws::BedrockRuntime
|
|
|
272
273
|
NonBlankString = Shapes::StringShape.new(name: 'NonBlankString')
|
|
273
274
|
NonEmptyString = Shapes::StringShape.new(name: 'NonEmptyString')
|
|
274
275
|
NonNegativeInteger = Shapes::IntegerShape.new(name: 'NonNegativeInteger')
|
|
276
|
+
OutputConfig = Shapes::StructureShape.new(name: 'OutputConfig')
|
|
277
|
+
OutputFormat = Shapes::StructureShape.new(name: 'OutputFormat')
|
|
278
|
+
OutputFormatStructure = Shapes::UnionShape.new(name: 'OutputFormatStructure')
|
|
279
|
+
OutputFormatType = Shapes::StringShape.new(name: 'OutputFormatType')
|
|
275
280
|
PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
|
|
276
281
|
PartBody = Shapes::BlobShape.new(name: 'PartBody')
|
|
277
282
|
PayloadPart = Shapes::StructureShape.new(name: 'PayloadPart')
|
|
@@ -582,6 +587,7 @@ module Aws::BedrockRuntime
|
|
|
582
587
|
ConverseRequest.add_member(:request_metadata, Shapes::ShapeRef.new(shape: RequestMetadata, location_name: "requestMetadata"))
|
|
583
588
|
ConverseRequest.add_member(:performance_config, Shapes::ShapeRef.new(shape: PerformanceConfiguration, location_name: "performanceConfig"))
|
|
584
589
|
ConverseRequest.add_member(:service_tier, Shapes::ShapeRef.new(shape: ServiceTier, location_name: "serviceTier"))
|
|
590
|
+
ConverseRequest.add_member(:output_config, Shapes::ShapeRef.new(shape: OutputConfig, location_name: "outputConfig"))
|
|
585
591
|
ConverseRequest.struct_class = Types::ConverseRequest
|
|
586
592
|
|
|
587
593
|
ConverseRequestAdditionalModelResponseFieldPathsList.member = Shapes::ShapeRef.new(shape: ConverseRequestAdditionalModelResponseFieldPathsListMemberString)
|
|
@@ -631,6 +637,7 @@ module Aws::BedrockRuntime
|
|
|
631
637
|
ConverseStreamRequest.add_member(:request_metadata, Shapes::ShapeRef.new(shape: RequestMetadata, location_name: "requestMetadata"))
|
|
632
638
|
ConverseStreamRequest.add_member(:performance_config, Shapes::ShapeRef.new(shape: PerformanceConfiguration, location_name: "performanceConfig"))
|
|
633
639
|
ConverseStreamRequest.add_member(:service_tier, Shapes::ShapeRef.new(shape: ServiceTier, location_name: "serviceTier"))
|
|
640
|
+
ConverseStreamRequest.add_member(:output_config, Shapes::ShapeRef.new(shape: OutputConfig, location_name: "outputConfig"))
|
|
634
641
|
ConverseStreamRequest.struct_class = Types::ConverseStreamRequest
|
|
635
642
|
|
|
636
643
|
ConverseStreamRequestAdditionalModelResponseFieldPathsList.member = Shapes::ShapeRef.new(shape: ConverseStreamRequestAdditionalModelResponseFieldPathsListMemberString)
|
|
@@ -1116,6 +1123,11 @@ module Aws::BedrockRuntime
|
|
|
1116
1123
|
InvokeModelWithResponseStreamResponse[:payload] = :body
|
|
1117
1124
|
InvokeModelWithResponseStreamResponse[:payload_member] = InvokeModelWithResponseStreamResponse.member(:body)
|
|
1118
1125
|
|
|
1126
|
+
JsonSchemaDefinition.add_member(:schema, Shapes::ShapeRef.new(shape: String, required: true, location_name: "schema"))
|
|
1127
|
+
JsonSchemaDefinition.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "name"))
|
|
1128
|
+
JsonSchemaDefinition.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "description"))
|
|
1129
|
+
JsonSchemaDefinition.struct_class = Types::JsonSchemaDefinition
|
|
1130
|
+
|
|
1119
1131
|
ListAsyncInvokesRequest.add_member(:submit_time_after, Shapes::ShapeRef.new(shape: Timestamp, location: "querystring", location_name: "submitTimeAfter"))
|
|
1120
1132
|
ListAsyncInvokesRequest.add_member(:submit_time_before, Shapes::ShapeRef.new(shape: Timestamp, location: "querystring", location_name: "submitTimeBefore"))
|
|
1121
1133
|
ListAsyncInvokesRequest.add_member(:status_equals, Shapes::ShapeRef.new(shape: AsyncInvokeStatus, location: "querystring", location_name: "statusEquals"))
|
|
@@ -1160,6 +1172,19 @@ module Aws::BedrockRuntime
|
|
|
1160
1172
|
ModelTimeoutException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
|
|
1161
1173
|
ModelTimeoutException.struct_class = Types::ModelTimeoutException
|
|
1162
1174
|
|
|
1175
|
+
OutputConfig.add_member(:text_format, Shapes::ShapeRef.new(shape: OutputFormat, location_name: "textFormat"))
|
|
1176
|
+
OutputConfig.struct_class = Types::OutputConfig
|
|
1177
|
+
|
|
1178
|
+
OutputFormat.add_member(:type, Shapes::ShapeRef.new(shape: OutputFormatType, required: true, location_name: "type"))
|
|
1179
|
+
OutputFormat.add_member(:structure, Shapes::ShapeRef.new(shape: OutputFormatStructure, required: true, location_name: "structure"))
|
|
1180
|
+
OutputFormat.struct_class = Types::OutputFormat
|
|
1181
|
+
|
|
1182
|
+
OutputFormatStructure.add_member(:json_schema, Shapes::ShapeRef.new(shape: JsonSchemaDefinition, location_name: "jsonSchema"))
|
|
1183
|
+
OutputFormatStructure.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
1184
|
+
OutputFormatStructure.add_member_subclass(:json_schema, Types::OutputFormatStructure::JsonSchema)
|
|
1185
|
+
OutputFormatStructure.add_member_subclass(:unknown, Types::OutputFormatStructure::Unknown)
|
|
1186
|
+
OutputFormatStructure.struct_class = Types::OutputFormatStructure
|
|
1187
|
+
|
|
1163
1188
|
PayloadPart.add_member(:bytes, Shapes::ShapeRef.new(shape: PartBody, location_name: "bytes"))
|
|
1164
1189
|
PayloadPart.struct_class = Types::PayloadPart
|
|
1165
1190
|
|
|
@@ -1363,6 +1388,7 @@ module Aws::BedrockRuntime
|
|
|
1363
1388
|
ToolSpecification.add_member(:name, Shapes::ShapeRef.new(shape: ToolName, required: true, location_name: "name"))
|
|
1364
1389
|
ToolSpecification.add_member(:description, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "description"))
|
|
1365
1390
|
ToolSpecification.add_member(:input_schema, Shapes::ShapeRef.new(shape: ToolInputSchema, required: true, location_name: "inputSchema"))
|
|
1391
|
+
ToolSpecification.add_member(:strict, Shapes::ShapeRef.new(shape: Boolean, location_name: "strict"))
|
|
1366
1392
|
ToolSpecification.struct_class = Types::ToolSpecification
|
|
1367
1393
|
|
|
1368
1394
|
ToolUseBlock.add_member(:tool_use_id, Shapes::ShapeRef.new(shape: ToolUseId, required: true, location_name: "toolUseId"))
|
|
@@ -1086,6 +1086,10 @@ module Aws::BedrockRuntime
|
|
|
1086
1086
|
# request.
|
|
1087
1087
|
# @return [Types::ServiceTier]
|
|
1088
1088
|
#
|
|
1089
|
+
# @!attribute [rw] output_config
|
|
1090
|
+
# Output configuration for a model response.
|
|
1091
|
+
# @return [Types::OutputConfig]
|
|
1092
|
+
#
|
|
1089
1093
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/ConverseRequest AWS API Documentation
|
|
1090
1094
|
#
|
|
1091
1095
|
class ConverseRequest < Struct.new(
|
|
@@ -1100,7 +1104,8 @@ module Aws::BedrockRuntime
|
|
|
1100
1104
|
:additional_model_response_field_paths,
|
|
1101
1105
|
:request_metadata,
|
|
1102
1106
|
:performance_config,
|
|
1103
|
-
:service_tier
|
|
1107
|
+
:service_tier,
|
|
1108
|
+
:output_config)
|
|
1104
1109
|
SENSITIVE = [:prompt_variables, :request_metadata]
|
|
1105
1110
|
include Aws::Structure
|
|
1106
1111
|
end
|
|
@@ -1341,6 +1346,10 @@ module Aws::BedrockRuntime
|
|
|
1341
1346
|
# request.
|
|
1342
1347
|
# @return [Types::ServiceTier]
|
|
1343
1348
|
#
|
|
1349
|
+
# @!attribute [rw] output_config
|
|
1350
|
+
# Output configuration for a model response.
|
|
1351
|
+
# @return [Types::OutputConfig]
|
|
1352
|
+
#
|
|
1344
1353
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/ConverseStreamRequest AWS API Documentation
|
|
1345
1354
|
#
|
|
1346
1355
|
class ConverseStreamRequest < Struct.new(
|
|
@@ -1355,7 +1364,8 @@ module Aws::BedrockRuntime
|
|
|
1355
1364
|
:additional_model_response_field_paths,
|
|
1356
1365
|
:request_metadata,
|
|
1357
1366
|
:performance_config,
|
|
1358
|
-
:service_tier
|
|
1367
|
+
:service_tier,
|
|
1368
|
+
:output_config)
|
|
1359
1369
|
SENSITIVE = [:prompt_variables, :request_metadata]
|
|
1360
1370
|
include Aws::Structure
|
|
1361
1371
|
end
|
|
@@ -3586,6 +3596,35 @@ module Aws::BedrockRuntime
|
|
|
3586
3596
|
include Aws::Structure
|
|
3587
3597
|
end
|
|
3588
3598
|
|
|
3599
|
+
# JSON schema structured output format options.
|
|
3600
|
+
#
|
|
3601
|
+
# @!attribute [rw] schema
|
|
3602
|
+
# The JSON schema to constrain the model's output. For more
|
|
3603
|
+
# information, see [JSON Schema Reference][1].
|
|
3604
|
+
#
|
|
3605
|
+
#
|
|
3606
|
+
#
|
|
3607
|
+
# [1]: https://json-schema.org/understanding-json-schema/reference
|
|
3608
|
+
# @return [String]
|
|
3609
|
+
#
|
|
3610
|
+
# @!attribute [rw] name
|
|
3611
|
+
# The name of the JSON schema.
|
|
3612
|
+
# @return [String]
|
|
3613
|
+
#
|
|
3614
|
+
# @!attribute [rw] description
|
|
3615
|
+
# A description of the JSON schema.
|
|
3616
|
+
# @return [String]
|
|
3617
|
+
#
|
|
3618
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/JsonSchemaDefinition AWS API Documentation
|
|
3619
|
+
#
|
|
3620
|
+
class JsonSchemaDefinition < Struct.new(
|
|
3621
|
+
:schema,
|
|
3622
|
+
:name,
|
|
3623
|
+
:description)
|
|
3624
|
+
SENSITIVE = []
|
|
3625
|
+
include Aws::Structure
|
|
3626
|
+
end
|
|
3627
|
+
|
|
3589
3628
|
# @!attribute [rw] submit_time_after
|
|
3590
3629
|
# Include invocations submitted after this time.
|
|
3591
3630
|
# @return [Time]
|
|
@@ -3801,6 +3840,66 @@ module Aws::BedrockRuntime
|
|
|
3801
3840
|
include Aws::Structure
|
|
3802
3841
|
end
|
|
3803
3842
|
|
|
3843
|
+
# Output configuration for a model response in a call to [Converse][1]
|
|
3844
|
+
# or [ConverseStream][2].
|
|
3845
|
+
#
|
|
3846
|
+
#
|
|
3847
|
+
#
|
|
3848
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html
|
|
3849
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ConverseStream.html
|
|
3850
|
+
#
|
|
3851
|
+
# @!attribute [rw] text_format
|
|
3852
|
+
# Structured output parameters to control the model's text response.
|
|
3853
|
+
# @return [Types::OutputFormat]
|
|
3854
|
+
#
|
|
3855
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/OutputConfig AWS API Documentation
|
|
3856
|
+
#
|
|
3857
|
+
class OutputConfig < Struct.new(
|
|
3858
|
+
:text_format)
|
|
3859
|
+
SENSITIVE = []
|
|
3860
|
+
include Aws::Structure
|
|
3861
|
+
end
|
|
3862
|
+
|
|
3863
|
+
# Structured output parameters to control the model's response.
|
|
3864
|
+
#
|
|
3865
|
+
# @!attribute [rw] type
|
|
3866
|
+
# The type of structured output format.
|
|
3867
|
+
# @return [String]
|
|
3868
|
+
#
|
|
3869
|
+
# @!attribute [rw] structure
|
|
3870
|
+
# The structure that the model's output must adhere to.
|
|
3871
|
+
# @return [Types::OutputFormatStructure]
|
|
3872
|
+
#
|
|
3873
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/OutputFormat AWS API Documentation
|
|
3874
|
+
#
|
|
3875
|
+
class OutputFormat < Struct.new(
|
|
3876
|
+
:type,
|
|
3877
|
+
:structure)
|
|
3878
|
+
SENSITIVE = [:structure]
|
|
3879
|
+
include Aws::Structure
|
|
3880
|
+
end
|
|
3881
|
+
|
|
3882
|
+
# The structure that the model's output must adhere to.
|
|
3883
|
+
#
|
|
3884
|
+
# @note OutputFormatStructure is a union - when making an API calls you must set exactly one of the members.
|
|
3885
|
+
#
|
|
3886
|
+
# @!attribute [rw] json_schema
|
|
3887
|
+
# A JSON schema structure that the model's output must adhere to.
|
|
3888
|
+
# @return [Types::JsonSchemaDefinition]
|
|
3889
|
+
#
|
|
3890
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/OutputFormatStructure AWS API Documentation
|
|
3891
|
+
#
|
|
3892
|
+
class OutputFormatStructure < Struct.new(
|
|
3893
|
+
:json_schema,
|
|
3894
|
+
:unknown)
|
|
3895
|
+
SENSITIVE = []
|
|
3896
|
+
include Aws::Structure
|
|
3897
|
+
include Aws::Structure::Union
|
|
3898
|
+
|
|
3899
|
+
class JsonSchema < OutputFormatStructure; end
|
|
3900
|
+
class Unknown < OutputFormatStructure; end
|
|
3901
|
+
end
|
|
3902
|
+
|
|
3804
3903
|
# Payload content included in the response.
|
|
3805
3904
|
#
|
|
3806
3905
|
# @!attribute [rw] bytes
|
|
@@ -4672,12 +4771,18 @@ module Aws::BedrockRuntime
|
|
|
4672
4771
|
# The input schema for the tool in JSON format.
|
|
4673
4772
|
# @return [Types::ToolInputSchema]
|
|
4674
4773
|
#
|
|
4774
|
+
# @!attribute [rw] strict
|
|
4775
|
+
# Flag to enable structured output enforcement on a tool usage
|
|
4776
|
+
# response.
|
|
4777
|
+
# @return [Boolean]
|
|
4778
|
+
#
|
|
4675
4779
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/ToolSpecification AWS API Documentation
|
|
4676
4780
|
#
|
|
4677
4781
|
class ToolSpecification < Struct.new(
|
|
4678
4782
|
:name,
|
|
4679
4783
|
:description,
|
|
4680
|
-
:input_schema
|
|
4784
|
+
:input_schema,
|
|
4785
|
+
:strict)
|
|
4681
4786
|
SENSITIVE = []
|
|
4682
4787
|
include Aws::Structure
|
|
4683
4788
|
end
|
data/sig/client.rbs
CHANGED
|
@@ -384,7 +384,8 @@ module Aws
|
|
|
384
384
|
input_schema: {
|
|
385
385
|
json: {
|
|
386
386
|
}?
|
|
387
|
-
}
|
|
387
|
+
},
|
|
388
|
+
strict: bool?
|
|
388
389
|
}?,
|
|
389
390
|
system_tool: {
|
|
390
391
|
name: ::String
|
|
@@ -422,6 +423,18 @@ module Aws
|
|
|
422
423
|
},
|
|
423
424
|
?service_tier: {
|
|
424
425
|
type: ("priority" | "default" | "flex" | "reserved")
|
|
426
|
+
},
|
|
427
|
+
?output_config: {
|
|
428
|
+
text_format: {
|
|
429
|
+
type: ("json_schema"),
|
|
430
|
+
structure: {
|
|
431
|
+
json_schema: {
|
|
432
|
+
schema: ::String,
|
|
433
|
+
name: ::String?,
|
|
434
|
+
description: ::String?
|
|
435
|
+
}?
|
|
436
|
+
}
|
|
437
|
+
}?
|
|
425
438
|
}
|
|
426
439
|
) -> _ConverseResponseSuccess
|
|
427
440
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ConverseResponseSuccess
|
|
@@ -690,7 +703,8 @@ module Aws
|
|
|
690
703
|
input_schema: {
|
|
691
704
|
json: {
|
|
692
705
|
}?
|
|
693
|
-
}
|
|
706
|
+
},
|
|
707
|
+
strict: bool?
|
|
694
708
|
}?,
|
|
695
709
|
system_tool: {
|
|
696
710
|
name: ::String
|
|
@@ -729,6 +743,18 @@ module Aws
|
|
|
729
743
|
},
|
|
730
744
|
?service_tier: {
|
|
731
745
|
type: ("priority" | "default" | "flex" | "reserved")
|
|
746
|
+
},
|
|
747
|
+
?output_config: {
|
|
748
|
+
text_format: {
|
|
749
|
+
type: ("json_schema"),
|
|
750
|
+
structure: {
|
|
751
|
+
json_schema: {
|
|
752
|
+
schema: ::String,
|
|
753
|
+
name: ::String?,
|
|
754
|
+
description: ::String?
|
|
755
|
+
}?
|
|
756
|
+
}
|
|
757
|
+
}?
|
|
732
758
|
}
|
|
733
759
|
) ?{ (*untyped) -> void } -> _ConverseStreamResponseSuccess
|
|
734
760
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _ConverseStreamResponseSuccess
|
|
@@ -996,7 +1022,8 @@ module Aws
|
|
|
996
1022
|
input_schema: {
|
|
997
1023
|
json: {
|
|
998
1024
|
}?
|
|
999
|
-
}
|
|
1025
|
+
},
|
|
1026
|
+
strict: bool?
|
|
1000
1027
|
}?,
|
|
1001
1028
|
system_tool: {
|
|
1002
1029
|
name: ::String
|
data/sig/types.rbs
CHANGED
|
@@ -341,6 +341,7 @@ module Aws::BedrockRuntime
|
|
|
341
341
|
attr_accessor request_metadata: ::Hash[::String, ::String]
|
|
342
342
|
attr_accessor performance_config: Types::PerformanceConfiguration
|
|
343
343
|
attr_accessor service_tier: Types::ServiceTier
|
|
344
|
+
attr_accessor output_config: Types::OutputConfig
|
|
344
345
|
SENSITIVE: [:prompt_variables, :request_metadata]
|
|
345
346
|
end
|
|
346
347
|
|
|
@@ -384,6 +385,7 @@ module Aws::BedrockRuntime
|
|
|
384
385
|
attr_accessor request_metadata: ::Hash[::String, ::String]
|
|
385
386
|
attr_accessor performance_config: Types::PerformanceConfiguration
|
|
386
387
|
attr_accessor service_tier: Types::ServiceTier
|
|
388
|
+
attr_accessor output_config: Types::OutputConfig
|
|
387
389
|
SENSITIVE: [:prompt_variables, :request_metadata]
|
|
388
390
|
end
|
|
389
391
|
|
|
@@ -981,6 +983,13 @@ module Aws::BedrockRuntime
|
|
|
981
983
|
SENSITIVE: []
|
|
982
984
|
end
|
|
983
985
|
|
|
986
|
+
class JsonSchemaDefinition
|
|
987
|
+
attr_accessor schema: ::String
|
|
988
|
+
attr_accessor name: ::String
|
|
989
|
+
attr_accessor description: ::String
|
|
990
|
+
SENSITIVE: []
|
|
991
|
+
end
|
|
992
|
+
|
|
984
993
|
class ListAsyncInvokesRequest
|
|
985
994
|
attr_accessor submit_time_after: ::Time
|
|
986
995
|
attr_accessor submit_time_before: ::Time
|
|
@@ -1043,6 +1052,28 @@ module Aws::BedrockRuntime
|
|
|
1043
1052
|
SENSITIVE: []
|
|
1044
1053
|
end
|
|
1045
1054
|
|
|
1055
|
+
class OutputConfig
|
|
1056
|
+
attr_accessor text_format: Types::OutputFormat
|
|
1057
|
+
SENSITIVE: []
|
|
1058
|
+
end
|
|
1059
|
+
|
|
1060
|
+
class OutputFormat
|
|
1061
|
+
attr_accessor type: ("json_schema")
|
|
1062
|
+
attr_accessor structure: Types::OutputFormatStructure
|
|
1063
|
+
SENSITIVE: [:structure]
|
|
1064
|
+
end
|
|
1065
|
+
|
|
1066
|
+
class OutputFormatStructure
|
|
1067
|
+
attr_accessor json_schema: Types::JsonSchemaDefinition
|
|
1068
|
+
attr_accessor unknown: untyped
|
|
1069
|
+
SENSITIVE: []
|
|
1070
|
+
|
|
1071
|
+
class JsonSchema < OutputFormatStructure
|
|
1072
|
+
end
|
|
1073
|
+
class Unknown < OutputFormatStructure
|
|
1074
|
+
end
|
|
1075
|
+
end
|
|
1076
|
+
|
|
1046
1077
|
class PayloadPart
|
|
1047
1078
|
attr_accessor bytes: ::String
|
|
1048
1079
|
attr_accessor event_type: untyped
|
|
@@ -1327,6 +1358,7 @@ module Aws::BedrockRuntime
|
|
|
1327
1358
|
attr_accessor name: ::String
|
|
1328
1359
|
attr_accessor description: ::String
|
|
1329
1360
|
attr_accessor input_schema: Types::ToolInputSchema
|
|
1361
|
+
attr_accessor strict: bool
|
|
1330
1362
|
SENSITIVE: []
|
|
1331
1363
|
end
|
|
1332
1364
|
|