aws-sdk-bedrockruntime 1.82.0 → 1.83.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 +51 -1
- data/lib/aws-sdk-bedrockruntime/client_api.rb +23 -0
- data/lib/aws-sdk-bedrockruntime/types.rb +95 -1
- data/lib/aws-sdk-bedrockruntime.rb +1 -1
- data/sig/params.rbs +17 -2
- data/sig/types.rbs +24 -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: 4d71186225b5d89147337a99f2d83363d3d79a30ddf54d191332dead75f3d1e8
|
|
4
|
+
data.tar.gz: a0d3772a3f8ed07dfaa5d4126d3a033549d5863efa217b8a764f0ee5eb0f0cf4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a92a65c3815c6a4731992caad916d0da4496ae7ec7cfb2de6fee18d96b0cd851b49a155c41aa71b6c5dd15022d3f9a62c336ac5a2c02f38c15d20a38f0d72b7f
|
|
7
|
+
data.tar.gz: 9ce5b56a4ceb907c2e6d1fd9cea393b3605477a0ebe26ebb11388c9ecb738d5356bf5faf4a15d0c6e60023c9f7983994ccf3be5db3033a6d159b2ee847a65e81
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.83.0
|
|
@@ -1157,6 +1157,20 @@ module Aws::BedrockRuntime
|
|
|
1157
1157
|
# enabled: false, # required
|
|
1158
1158
|
# },
|
|
1159
1159
|
# },
|
|
1160
|
+
# tool_addition: {
|
|
1161
|
+
# tool: { # required
|
|
1162
|
+
# type: "ToolReferenceTypeString",
|
|
1163
|
+
# name: "ToolReferenceNameString",
|
|
1164
|
+
# server_name: "ToolReferenceServerNameString",
|
|
1165
|
+
# },
|
|
1166
|
+
# },
|
|
1167
|
+
# tool_removal: {
|
|
1168
|
+
# tool: { # required
|
|
1169
|
+
# type: "ToolReferenceTypeString",
|
|
1170
|
+
# name: "ToolReferenceNameString",
|
|
1171
|
+
# server_name: "ToolReferenceServerNameString",
|
|
1172
|
+
# },
|
|
1173
|
+
# },
|
|
1160
1174
|
# },
|
|
1161
1175
|
# ],
|
|
1162
1176
|
# },
|
|
@@ -1252,6 +1266,7 @@ module Aws::BedrockRuntime
|
|
|
1252
1266
|
# },
|
|
1253
1267
|
# },
|
|
1254
1268
|
# },
|
|
1269
|
+
# effort: "OutputConfigEffortString",
|
|
1255
1270
|
# },
|
|
1256
1271
|
# })
|
|
1257
1272
|
#
|
|
@@ -1352,6 +1367,12 @@ module Aws::BedrockRuntime
|
|
|
1352
1367
|
# resp.output.message.content[0].search_result.content #=> Array
|
|
1353
1368
|
# resp.output.message.content[0].search_result.content[0].text #=> String
|
|
1354
1369
|
# resp.output.message.content[0].search_result.citations.enabled #=> Boolean
|
|
1370
|
+
# resp.output.message.content[0].tool_addition.tool.type #=> String
|
|
1371
|
+
# resp.output.message.content[0].tool_addition.tool.name #=> String
|
|
1372
|
+
# resp.output.message.content[0].tool_addition.tool.server_name #=> String
|
|
1373
|
+
# resp.output.message.content[0].tool_removal.tool.type #=> String
|
|
1374
|
+
# resp.output.message.content[0].tool_removal.tool.name #=> String
|
|
1375
|
+
# resp.output.message.content[0].tool_removal.tool.server_name #=> String
|
|
1355
1376
|
# resp.stop_reason #=> String, one of "end_turn", "tool_use", "max_tokens", "stop_sequence", "guardrail_intervened", "content_filtered", "malformed_model_output", "malformed_tool_use", "model_context_window_exceeded"
|
|
1356
1377
|
# resp.usage.input_tokens #=> Integer
|
|
1357
1378
|
# resp.usage.output_tokens #=> Integer
|
|
@@ -2305,6 +2326,20 @@ module Aws::BedrockRuntime
|
|
|
2305
2326
|
# enabled: false, # required
|
|
2306
2327
|
# },
|
|
2307
2328
|
# },
|
|
2329
|
+
# tool_addition: {
|
|
2330
|
+
# tool: { # required
|
|
2331
|
+
# type: "ToolReferenceTypeString",
|
|
2332
|
+
# name: "ToolReferenceNameString",
|
|
2333
|
+
# server_name: "ToolReferenceServerNameString",
|
|
2334
|
+
# },
|
|
2335
|
+
# },
|
|
2336
|
+
# tool_removal: {
|
|
2337
|
+
# tool: { # required
|
|
2338
|
+
# type: "ToolReferenceTypeString",
|
|
2339
|
+
# name: "ToolReferenceNameString",
|
|
2340
|
+
# server_name: "ToolReferenceServerNameString",
|
|
2341
|
+
# },
|
|
2342
|
+
# },
|
|
2308
2343
|
# },
|
|
2309
2344
|
# ],
|
|
2310
2345
|
# },
|
|
@@ -2401,6 +2436,7 @@ module Aws::BedrockRuntime
|
|
|
2401
2436
|
# },
|
|
2402
2437
|
# },
|
|
2403
2438
|
# },
|
|
2439
|
+
# effort: "OutputConfigEffortString",
|
|
2404
2440
|
# },
|
|
2405
2441
|
# })
|
|
2406
2442
|
#
|
|
@@ -3139,6 +3175,20 @@ module Aws::BedrockRuntime
|
|
|
3139
3175
|
# enabled: false, # required
|
|
3140
3176
|
# },
|
|
3141
3177
|
# },
|
|
3178
|
+
# tool_addition: {
|
|
3179
|
+
# tool: { # required
|
|
3180
|
+
# type: "ToolReferenceTypeString",
|
|
3181
|
+
# name: "ToolReferenceNameString",
|
|
3182
|
+
# server_name: "ToolReferenceServerNameString",
|
|
3183
|
+
# },
|
|
3184
|
+
# },
|
|
3185
|
+
# tool_removal: {
|
|
3186
|
+
# tool: { # required
|
|
3187
|
+
# type: "ToolReferenceTypeString",
|
|
3188
|
+
# name: "ToolReferenceNameString",
|
|
3189
|
+
# server_name: "ToolReferenceServerNameString",
|
|
3190
|
+
# },
|
|
3191
|
+
# },
|
|
3142
3192
|
# },
|
|
3143
3193
|
# ],
|
|
3144
3194
|
# },
|
|
@@ -4016,7 +4066,7 @@ module Aws::BedrockRuntime
|
|
|
4016
4066
|
tracer: tracer
|
|
4017
4067
|
)
|
|
4018
4068
|
context[:gem_name] = 'aws-sdk-bedrockruntime'
|
|
4019
|
-
context[:gem_version] = '1.
|
|
4069
|
+
context[:gem_version] = '1.83.0'
|
|
4020
4070
|
Seahorse::Client::Request.new(handlers, context)
|
|
4021
4071
|
end
|
|
4022
4072
|
|
|
@@ -316,6 +316,7 @@ module Aws::BedrockRuntime
|
|
|
316
316
|
NonEmptyString = Shapes::StringShape.new(name: 'NonEmptyString')
|
|
317
317
|
NonNegativeInteger = Shapes::IntegerShape.new(name: 'NonNegativeInteger')
|
|
318
318
|
OutputConfig = Shapes::StructureShape.new(name: 'OutputConfig')
|
|
319
|
+
OutputConfigEffortString = Shapes::StringShape.new(name: 'OutputConfigEffortString')
|
|
319
320
|
OutputFormat = Shapes::StructureShape.new(name: 'OutputFormat')
|
|
320
321
|
OutputFormatStructure = Shapes::UnionShape.new(name: 'OutputFormatStructure')
|
|
321
322
|
OutputFormatType = Shapes::StringShape.new(name: 'OutputFormatType')
|
|
@@ -375,11 +376,17 @@ module Aws::BedrockRuntime
|
|
|
375
376
|
TokenUsageOutputTokensInteger = Shapes::IntegerShape.new(name: 'TokenUsageOutputTokensInteger')
|
|
376
377
|
TokenUsageTotalTokensInteger = Shapes::IntegerShape.new(name: 'TokenUsageTotalTokensInteger')
|
|
377
378
|
Tool = Shapes::UnionShape.new(name: 'Tool')
|
|
379
|
+
ToolAdditionBlock = Shapes::StructureShape.new(name: 'ToolAdditionBlock')
|
|
378
380
|
ToolChoice = Shapes::UnionShape.new(name: 'ToolChoice')
|
|
379
381
|
ToolConfiguration = Shapes::StructureShape.new(name: 'ToolConfiguration')
|
|
380
382
|
ToolConfigurationToolsList = Shapes::ListShape.new(name: 'ToolConfigurationToolsList')
|
|
381
383
|
ToolInputSchema = Shapes::UnionShape.new(name: 'ToolInputSchema')
|
|
382
384
|
ToolName = Shapes::StringShape.new(name: 'ToolName')
|
|
385
|
+
ToolReference = Shapes::StructureShape.new(name: 'ToolReference')
|
|
386
|
+
ToolReferenceNameString = Shapes::StringShape.new(name: 'ToolReferenceNameString')
|
|
387
|
+
ToolReferenceServerNameString = Shapes::StringShape.new(name: 'ToolReferenceServerNameString')
|
|
388
|
+
ToolReferenceTypeString = Shapes::StringShape.new(name: 'ToolReferenceTypeString')
|
|
389
|
+
ToolRemovalBlock = Shapes::StructureShape.new(name: 'ToolRemovalBlock')
|
|
383
390
|
ToolResultBlock = Shapes::StructureShape.new(name: 'ToolResultBlock')
|
|
384
391
|
ToolResultBlockDelta = Shapes::UnionShape.new(name: 'ToolResultBlockDelta')
|
|
385
392
|
ToolResultBlockStart = Shapes::StructureShape.new(name: 'ToolResultBlockStart')
|
|
@@ -554,6 +561,8 @@ module Aws::BedrockRuntime
|
|
|
554
561
|
ContentBlock.add_member(:reasoning_content, Shapes::ShapeRef.new(shape: ReasoningContentBlock, location_name: "reasoningContent"))
|
|
555
562
|
ContentBlock.add_member(:citations_content, Shapes::ShapeRef.new(shape: CitationsContentBlock, location_name: "citationsContent"))
|
|
556
563
|
ContentBlock.add_member(:search_result, Shapes::ShapeRef.new(shape: SearchResultBlock, location_name: "searchResult"))
|
|
564
|
+
ContentBlock.add_member(:tool_addition, Shapes::ShapeRef.new(shape: ToolAdditionBlock, location_name: "toolAddition"))
|
|
565
|
+
ContentBlock.add_member(:tool_removal, Shapes::ShapeRef.new(shape: ToolRemovalBlock, location_name: "toolRemoval"))
|
|
557
566
|
ContentBlock.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
558
567
|
ContentBlock.add_member_subclass(:text, Types::ContentBlock::Text)
|
|
559
568
|
ContentBlock.add_member_subclass(:image, Types::ContentBlock::Image)
|
|
@@ -567,6 +576,8 @@ module Aws::BedrockRuntime
|
|
|
567
576
|
ContentBlock.add_member_subclass(:reasoning_content, Types::ContentBlock::ReasoningContent)
|
|
568
577
|
ContentBlock.add_member_subclass(:citations_content, Types::ContentBlock::CitationsContent)
|
|
569
578
|
ContentBlock.add_member_subclass(:search_result, Types::ContentBlock::SearchResult)
|
|
579
|
+
ContentBlock.add_member_subclass(:tool_addition, Types::ContentBlock::ToolAddition)
|
|
580
|
+
ContentBlock.add_member_subclass(:tool_removal, Types::ContentBlock::ToolRemoval)
|
|
570
581
|
ContentBlock.add_member_subclass(:unknown, Types::ContentBlock::Unknown)
|
|
571
582
|
ContentBlock.struct_class = Types::ContentBlock
|
|
572
583
|
|
|
@@ -1320,6 +1331,7 @@ module Aws::BedrockRuntime
|
|
|
1320
1331
|
ModelTimeoutException.struct_class = Types::ModelTimeoutException
|
|
1321
1332
|
|
|
1322
1333
|
OutputConfig.add_member(:text_format, Shapes::ShapeRef.new(shape: OutputFormat, location_name: "textFormat"))
|
|
1334
|
+
OutputConfig.add_member(:effort, Shapes::ShapeRef.new(shape: OutputConfigEffortString, location_name: "effort"))
|
|
1323
1335
|
OutputConfig.struct_class = Types::OutputConfig
|
|
1324
1336
|
|
|
1325
1337
|
OutputFormat.add_member(:type, Shapes::ShapeRef.new(shape: OutputFormatType, required: true, location_name: "type"))
|
|
@@ -1471,6 +1483,9 @@ module Aws::BedrockRuntime
|
|
|
1471
1483
|
Tool.add_member_subclass(:unknown, Types::Tool::Unknown)
|
|
1472
1484
|
Tool.struct_class = Types::Tool
|
|
1473
1485
|
|
|
1486
|
+
ToolAdditionBlock.add_member(:tool, Shapes::ShapeRef.new(shape: ToolReference, required: true, location_name: "tool"))
|
|
1487
|
+
ToolAdditionBlock.struct_class = Types::ToolAdditionBlock
|
|
1488
|
+
|
|
1474
1489
|
ToolChoice.add_member(:auto, Shapes::ShapeRef.new(shape: AutoToolChoice, location_name: "auto"))
|
|
1475
1490
|
ToolChoice.add_member(:any, Shapes::ShapeRef.new(shape: AnyToolChoice, location_name: "any"))
|
|
1476
1491
|
ToolChoice.add_member(:tool, Shapes::ShapeRef.new(shape: SpecificToolChoice, location_name: "tool"))
|
|
@@ -1493,6 +1508,14 @@ module Aws::BedrockRuntime
|
|
|
1493
1508
|
ToolInputSchema.add_member_subclass(:unknown, Types::ToolInputSchema::Unknown)
|
|
1494
1509
|
ToolInputSchema.struct_class = Types::ToolInputSchema
|
|
1495
1510
|
|
|
1511
|
+
ToolReference.add_member(:type, Shapes::ShapeRef.new(shape: ToolReferenceTypeString, location_name: "type"))
|
|
1512
|
+
ToolReference.add_member(:name, Shapes::ShapeRef.new(shape: ToolReferenceNameString, location_name: "name"))
|
|
1513
|
+
ToolReference.add_member(:server_name, Shapes::ShapeRef.new(shape: ToolReferenceServerNameString, location_name: "serverName"))
|
|
1514
|
+
ToolReference.struct_class = Types::ToolReference
|
|
1515
|
+
|
|
1516
|
+
ToolRemovalBlock.add_member(:tool, Shapes::ShapeRef.new(shape: ToolReference, required: true, location_name: "tool"))
|
|
1517
|
+
ToolRemovalBlock.struct_class = Types::ToolRemovalBlock
|
|
1518
|
+
|
|
1496
1519
|
ToolResultBlock.add_member(:tool_use_id, Shapes::ShapeRef.new(shape: ToolUseId, required: true, location_name: "toolUseId"))
|
|
1497
1520
|
ToolResultBlock.add_member(:content, Shapes::ShapeRef.new(shape: ToolResultContentBlocks, required: true, location_name: "content"))
|
|
1498
1521
|
ToolResultBlock.add_member(:status, Shapes::ShapeRef.new(shape: ToolResultStatus, location_name: "status"))
|
|
@@ -737,6 +737,20 @@ module Aws::BedrockRuntime
|
|
|
737
737
|
# Search result to include in the message.
|
|
738
738
|
# @return [Types::SearchResultBlock]
|
|
739
739
|
#
|
|
740
|
+
# @!attribute [rw] tool_addition
|
|
741
|
+
# A content block for adding a tool to the available tool set
|
|
742
|
+
# mid-conversation. Each block references a single tool via its `tool`
|
|
743
|
+
# field. Use within a `system` role message to make a tool available
|
|
744
|
+
# without re-sending the full tool configuration.
|
|
745
|
+
# @return [Types::ToolAdditionBlock]
|
|
746
|
+
#
|
|
747
|
+
# @!attribute [rw] tool_removal
|
|
748
|
+
# A content block for removing a tool from the available tool set
|
|
749
|
+
# mid-conversation. Each block references a single tool via its `tool`
|
|
750
|
+
# field. Use within a `system` role message to remove a tool without
|
|
751
|
+
# re-sending the full tool configuration.
|
|
752
|
+
# @return [Types::ToolRemovalBlock]
|
|
753
|
+
#
|
|
740
754
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/ContentBlock AWS API Documentation
|
|
741
755
|
#
|
|
742
756
|
class ContentBlock < Struct.new(
|
|
@@ -752,6 +766,8 @@ module Aws::BedrockRuntime
|
|
|
752
766
|
:reasoning_content,
|
|
753
767
|
:citations_content,
|
|
754
768
|
:search_result,
|
|
769
|
+
:tool_addition,
|
|
770
|
+
:tool_removal,
|
|
755
771
|
:unknown)
|
|
756
772
|
SENSITIVE = [:reasoning_content]
|
|
757
773
|
include Aws::Structure
|
|
@@ -769,6 +785,8 @@ module Aws::BedrockRuntime
|
|
|
769
785
|
class ReasoningContent < ContentBlock; end
|
|
770
786
|
class CitationsContent < ContentBlock; end
|
|
771
787
|
class SearchResult < ContentBlock; end
|
|
788
|
+
class ToolAddition < ContentBlock; end
|
|
789
|
+
class ToolRemoval < ContentBlock; end
|
|
772
790
|
class Unknown < ContentBlock; end
|
|
773
791
|
end
|
|
774
792
|
|
|
@@ -4279,10 +4297,24 @@ module Aws::BedrockRuntime
|
|
|
4279
4297
|
# Structured output parameters to control the model's text response.
|
|
4280
4298
|
# @return [Types::OutputFormat]
|
|
4281
4299
|
#
|
|
4300
|
+
# @!attribute [rw] effort
|
|
4301
|
+
# The effort level for the model to use when generating a response.
|
|
4302
|
+
# Higher effort levels allow the model to spend more time reasoning
|
|
4303
|
+
# before responding. Supported values are `low`, `medium`, `high`,
|
|
4304
|
+
# `xhigh`, and `max`.
|
|
4305
|
+
#
|
|
4306
|
+
# <note markdown="1"> When extended thinking is disabled, the effort level is capped at
|
|
4307
|
+
# `high`. Use effort `high` or below, or enable thinking to use higher
|
|
4308
|
+
# effort levels.
|
|
4309
|
+
#
|
|
4310
|
+
# </note>
|
|
4311
|
+
# @return [String]
|
|
4312
|
+
#
|
|
4282
4313
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/OutputConfig AWS API Documentation
|
|
4283
4314
|
#
|
|
4284
4315
|
class OutputConfig < Struct.new(
|
|
4285
|
-
:text_format
|
|
4316
|
+
:text_format,
|
|
4317
|
+
:effort)
|
|
4286
4318
|
SENSITIVE = []
|
|
4287
4319
|
include Aws::Structure
|
|
4288
4320
|
end
|
|
@@ -4914,6 +4946,23 @@ module Aws::BedrockRuntime
|
|
|
4914
4946
|
class Unknown < Tool; end
|
|
4915
4947
|
end
|
|
4916
4948
|
|
|
4949
|
+
# A content block for adding a tool to the available tool set
|
|
4950
|
+
# mid-conversation. Each block references a single tool via its `tool`
|
|
4951
|
+
# field. Use within a `system` role message to make a tool available
|
|
4952
|
+
# without re-sending the full tool configuration.
|
|
4953
|
+
#
|
|
4954
|
+
# @!attribute [rw] tool
|
|
4955
|
+
# A reference to the tool to add to the available tool set.
|
|
4956
|
+
# @return [Types::ToolReference]
|
|
4957
|
+
#
|
|
4958
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/ToolAdditionBlock AWS API Documentation
|
|
4959
|
+
#
|
|
4960
|
+
class ToolAdditionBlock < Struct.new(
|
|
4961
|
+
:tool)
|
|
4962
|
+
SENSITIVE = []
|
|
4963
|
+
include Aws::Structure
|
|
4964
|
+
end
|
|
4965
|
+
|
|
4917
4966
|
# Determines which tools the model should request in a call to
|
|
4918
4967
|
# `Converse` or `ConverseStream`. For more information, see [Call a tool
|
|
4919
4968
|
# with the Converse API][1] in the Amazon Bedrock User Guide.
|
|
@@ -5012,6 +5061,51 @@ module Aws::BedrockRuntime
|
|
|
5012
5061
|
class Unknown < ToolInputSchema; end
|
|
5013
5062
|
end
|
|
5014
5063
|
|
|
5064
|
+
# A reference to a tool in the tool configuration. Used with
|
|
5065
|
+
# `ToolAdditionBlock` and `ToolRemovalBlock` to identify which tool to
|
|
5066
|
+
# add or remove mid-conversation.
|
|
5067
|
+
#
|
|
5068
|
+
# @!attribute [rw] type
|
|
5069
|
+
# The type of tool reference.
|
|
5070
|
+
# @return [String]
|
|
5071
|
+
#
|
|
5072
|
+
# @!attribute [rw] name
|
|
5073
|
+
# The name of the tool. Must match the name of a tool declared in the
|
|
5074
|
+
# top-level tool configuration.
|
|
5075
|
+
# @return [String]
|
|
5076
|
+
#
|
|
5077
|
+
# @!attribute [rw] server_name
|
|
5078
|
+
# The name of the MCP server that provides the tool. Required when
|
|
5079
|
+
# referencing an MCP tool.
|
|
5080
|
+
# @return [String]
|
|
5081
|
+
#
|
|
5082
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/ToolReference AWS API Documentation
|
|
5083
|
+
#
|
|
5084
|
+
class ToolReference < Struct.new(
|
|
5085
|
+
:type,
|
|
5086
|
+
:name,
|
|
5087
|
+
:server_name)
|
|
5088
|
+
SENSITIVE = []
|
|
5089
|
+
include Aws::Structure
|
|
5090
|
+
end
|
|
5091
|
+
|
|
5092
|
+
# A content block for removing a tool from the available tool set
|
|
5093
|
+
# mid-conversation. Each block references a single tool via its `tool`
|
|
5094
|
+
# field. Use within a `system` role message to remove a tool without
|
|
5095
|
+
# re-sending the full tool configuration.
|
|
5096
|
+
#
|
|
5097
|
+
# @!attribute [rw] tool
|
|
5098
|
+
# A reference to the tool to remove from the available tool set.
|
|
5099
|
+
# @return [Types::ToolReference]
|
|
5100
|
+
#
|
|
5101
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/ToolRemovalBlock AWS API Documentation
|
|
5102
|
+
#
|
|
5103
|
+
class ToolRemovalBlock < Struct.new(
|
|
5104
|
+
:tool)
|
|
5105
|
+
SENSITIVE = []
|
|
5106
|
+
include Aws::Structure
|
|
5107
|
+
end
|
|
5108
|
+
|
|
5015
5109
|
# A tool result block that contains the results for a tool request that
|
|
5016
5110
|
# the model previously made. For more information, see [Call a tool with
|
|
5017
5111
|
# the Converse API][1] in the Amazon Bedrock User Guide.
|
data/sig/params.rbs
CHANGED
|
@@ -151,7 +151,21 @@ module Aws
|
|
|
151
151
|
redacted_content: ::String?
|
|
152
152
|
}?,
|
|
153
153
|
citations_content: Params::citations_content_block?,
|
|
154
|
-
search_result: Params::search_result_block
|
|
154
|
+
search_result: Params::search_result_block?,
|
|
155
|
+
tool_addition: {
|
|
156
|
+
tool: {
|
|
157
|
+
type: ::String?,
|
|
158
|
+
name: ::String?,
|
|
159
|
+
server_name: ::String?
|
|
160
|
+
}
|
|
161
|
+
}?,
|
|
162
|
+
tool_removal: {
|
|
163
|
+
tool: {
|
|
164
|
+
type: ::String?,
|
|
165
|
+
name: ::String?,
|
|
166
|
+
server_name: ::String?
|
|
167
|
+
}
|
|
168
|
+
}?
|
|
155
169
|
}
|
|
156
170
|
|
|
157
171
|
type tool_result_content_block = {
|
|
@@ -261,7 +275,8 @@ module Aws
|
|
|
261
275
|
}
|
|
262
276
|
|
|
263
277
|
type output_config = {
|
|
264
|
-
text_format: Params::output_format
|
|
278
|
+
text_format: Params::output_format?,
|
|
279
|
+
effort: ::String?
|
|
265
280
|
}
|
|
266
281
|
|
|
267
282
|
end
|
data/sig/types.rbs
CHANGED
|
@@ -218,6 +218,8 @@ module Aws::BedrockRuntime
|
|
|
218
218
|
attr_accessor reasoning_content: Types::ReasoningContentBlock
|
|
219
219
|
attr_accessor citations_content: Types::CitationsContentBlock
|
|
220
220
|
attr_accessor search_result: Types::SearchResultBlock
|
|
221
|
+
attr_accessor tool_addition: Types::ToolAdditionBlock
|
|
222
|
+
attr_accessor tool_removal: Types::ToolRemovalBlock
|
|
221
223
|
attr_accessor unknown: untyped
|
|
222
224
|
SENSITIVE: [:reasoning_content]
|
|
223
225
|
|
|
@@ -245,6 +247,10 @@ module Aws::BedrockRuntime
|
|
|
245
247
|
end
|
|
246
248
|
class SearchResult < ContentBlock
|
|
247
249
|
end
|
|
250
|
+
class ToolAddition < ContentBlock
|
|
251
|
+
end
|
|
252
|
+
class ToolRemoval < ContentBlock
|
|
253
|
+
end
|
|
248
254
|
class Unknown < ContentBlock
|
|
249
255
|
end
|
|
250
256
|
end
|
|
@@ -1189,6 +1195,7 @@ module Aws::BedrockRuntime
|
|
|
1189
1195
|
|
|
1190
1196
|
class OutputConfig
|
|
1191
1197
|
attr_accessor text_format: Types::OutputFormat
|
|
1198
|
+
attr_accessor effort: ::String
|
|
1192
1199
|
SENSITIVE: []
|
|
1193
1200
|
end
|
|
1194
1201
|
|
|
@@ -1400,6 +1407,11 @@ module Aws::BedrockRuntime
|
|
|
1400
1407
|
end
|
|
1401
1408
|
end
|
|
1402
1409
|
|
|
1410
|
+
class ToolAdditionBlock
|
|
1411
|
+
attr_accessor tool: Types::ToolReference
|
|
1412
|
+
SENSITIVE: []
|
|
1413
|
+
end
|
|
1414
|
+
|
|
1403
1415
|
class ToolChoice
|
|
1404
1416
|
attr_accessor auto: Types::AutoToolChoice
|
|
1405
1417
|
attr_accessor any: Types::AnyToolChoice
|
|
@@ -1434,6 +1446,18 @@ module Aws::BedrockRuntime
|
|
|
1434
1446
|
end
|
|
1435
1447
|
end
|
|
1436
1448
|
|
|
1449
|
+
class ToolReference
|
|
1450
|
+
attr_accessor type: ::String
|
|
1451
|
+
attr_accessor name: ::String
|
|
1452
|
+
attr_accessor server_name: ::String
|
|
1453
|
+
SENSITIVE: []
|
|
1454
|
+
end
|
|
1455
|
+
|
|
1456
|
+
class ToolRemovalBlock
|
|
1457
|
+
attr_accessor tool: Types::ToolReference
|
|
1458
|
+
SENSITIVE: []
|
|
1459
|
+
end
|
|
1460
|
+
|
|
1437
1461
|
class ToolResultBlock
|
|
1438
1462
|
attr_accessor tool_use_id: ::String
|
|
1439
1463
|
attr_accessor content: ::Array[Types::ToolResultContentBlock]
|