aws-sdk-bedrockruntime 1.11.0 → 1.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockruntime/client.rb +40 -3
- data/lib/aws-sdk-bedrockruntime/client_api.rb +20 -0
- data/lib/aws-sdk-bedrockruntime/types.rb +74 -0
- data/lib/aws-sdk-bedrockruntime.rb +1 -1
- data/sig/client.rbs +28 -0
- data/sig/types.rbs +24 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0bbf3fefa57aae57748dc18c49623c308b949cb1ec6c194b0aa120ae80dc83b
|
4
|
+
data.tar.gz: 0a7d12811452bd8390982ffeb8ad34a46b639ed9679d39da8047f0290690deda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28158c59b6fbc641287bd3f218e224c5fd5e2fc01da7b2c9f072bf33966b6a52399b64edd864127d2d4d9a39a38ea38ad66fb799bd1b098c0d69b4fa363f685f
|
7
|
+
data.tar.gz: 55d0e3ddd30aad3a63c2b6dd417d15750cc9c0d56a1f4622149845c0995a8966b792fb5d14220015fd0422917190d76a42a4c9d0f8e8192b182aadfa7c105945
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.13.0 (2024-06-24)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Increases Converse API's document name length
|
8
|
+
|
9
|
+
1.12.0 (2024-06-20)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - This release adds document support to Converse and ConverseStream APIs
|
13
|
+
|
4
14
|
1.11.0 (2024-06-18)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.13.0
|
@@ -91,6 +91,11 @@ module Aws::BedrockRuntime
|
|
91
91
|
|
92
92
|
# @overload initialize(options)
|
93
93
|
# @param [Hash] options
|
94
|
+
#
|
95
|
+
# @option options [Array<Seahorse::Client::Plugin>] :plugins ([]])
|
96
|
+
# A list of plugins to apply to the client. Each plugin is either a
|
97
|
+
# class name or an instance of a plugin class.
|
98
|
+
#
|
94
99
|
# @option options [required, Aws::CredentialProvider] :credentials
|
95
100
|
# Your AWS credentials. This can be an instance of any one of the
|
96
101
|
# following classes:
|
@@ -211,7 +216,6 @@ module Aws::BedrockRuntime
|
|
211
216
|
# 'https://example.com'
|
212
217
|
# 'http://example.com:123'
|
213
218
|
#
|
214
|
-
#
|
215
219
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
216
220
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
217
221
|
# for endpoint discovery enabled operations. Defaults to 1000.
|
@@ -309,7 +313,6 @@ module Aws::BedrockRuntime
|
|
309
313
|
# throttling. This is a provisional mode that may change behavior
|
310
314
|
# in the future.
|
311
315
|
#
|
312
|
-
#
|
313
316
|
# @option options [String] :sdk_ua_app_id
|
314
317
|
# A unique and opaque application ID that is appended to the
|
315
318
|
# User-Agent header as app/sdk_ua_app_id. It should have a
|
@@ -551,6 +554,13 @@ module Aws::BedrockRuntime
|
|
551
554
|
# bytes: "data",
|
552
555
|
# },
|
553
556
|
# },
|
557
|
+
# document: {
|
558
|
+
# format: "pdf", # required, accepts pdf, csv, doc, docx, xls, xlsx, html, txt, md
|
559
|
+
# name: "DocumentBlockNameString", # required
|
560
|
+
# source: { # required
|
561
|
+
# bytes: "data",
|
562
|
+
# },
|
563
|
+
# },
|
554
564
|
# tool_use: {
|
555
565
|
# tool_use_id: "ToolUseId", # required
|
556
566
|
# name: "ToolName", # required
|
@@ -570,6 +580,13 @@ module Aws::BedrockRuntime
|
|
570
580
|
# bytes: "data",
|
571
581
|
# },
|
572
582
|
# },
|
583
|
+
# document: {
|
584
|
+
# format: "pdf", # required, accepts pdf, csv, doc, docx, xls, xlsx, html, txt, md
|
585
|
+
# name: "DocumentBlockNameString", # required
|
586
|
+
# source: { # required
|
587
|
+
# bytes: "data",
|
588
|
+
# },
|
589
|
+
# },
|
573
590
|
# },
|
574
591
|
# ],
|
575
592
|
# status: "success", # accepts success, error
|
@@ -639,6 +656,9 @@ module Aws::BedrockRuntime
|
|
639
656
|
# resp.output.message.content[0].text #=> String
|
640
657
|
# resp.output.message.content[0].image.format #=> String, one of "png", "jpeg", "gif", "webp"
|
641
658
|
# resp.output.message.content[0].image.source.bytes #=> String
|
659
|
+
# resp.output.message.content[0].document.format #=> String, one of "pdf", "csv", "doc", "docx", "xls", "xlsx", "html", "txt", "md"
|
660
|
+
# resp.output.message.content[0].document.name #=> String
|
661
|
+
# resp.output.message.content[0].document.source.bytes #=> String
|
642
662
|
# resp.output.message.content[0].tool_use.tool_use_id #=> String
|
643
663
|
# resp.output.message.content[0].tool_use.name #=> String
|
644
664
|
# resp.output.message.content[0].tool_result.tool_use_id #=> String
|
@@ -646,6 +666,9 @@ module Aws::BedrockRuntime
|
|
646
666
|
# resp.output.message.content[0].tool_result.content[0].text #=> String
|
647
667
|
# resp.output.message.content[0].tool_result.content[0].image.format #=> String, one of "png", "jpeg", "gif", "webp"
|
648
668
|
# resp.output.message.content[0].tool_result.content[0].image.source.bytes #=> String
|
669
|
+
# resp.output.message.content[0].tool_result.content[0].document.format #=> String, one of "pdf", "csv", "doc", "docx", "xls", "xlsx", "html", "txt", "md"
|
670
|
+
# resp.output.message.content[0].tool_result.content[0].document.name #=> String
|
671
|
+
# resp.output.message.content[0].tool_result.content[0].document.source.bytes #=> String
|
649
672
|
# resp.output.message.content[0].tool_result.status #=> String, one of "success", "error"
|
650
673
|
# resp.output.message.content[0].guard_content.text.text #=> String
|
651
674
|
# resp.stop_reason #=> String, one of "end_turn", "tool_use", "max_tokens", "stop_sequence", "guardrail_intervened", "content_filtered"
|
@@ -1005,6 +1028,13 @@ module Aws::BedrockRuntime
|
|
1005
1028
|
# bytes: "data",
|
1006
1029
|
# },
|
1007
1030
|
# },
|
1031
|
+
# document: {
|
1032
|
+
# format: "pdf", # required, accepts pdf, csv, doc, docx, xls, xlsx, html, txt, md
|
1033
|
+
# name: "DocumentBlockNameString", # required
|
1034
|
+
# source: { # required
|
1035
|
+
# bytes: "data",
|
1036
|
+
# },
|
1037
|
+
# },
|
1008
1038
|
# tool_use: {
|
1009
1039
|
# tool_use_id: "ToolUseId", # required
|
1010
1040
|
# name: "ToolName", # required
|
@@ -1024,6 +1054,13 @@ module Aws::BedrockRuntime
|
|
1024
1054
|
# bytes: "data",
|
1025
1055
|
# },
|
1026
1056
|
# },
|
1057
|
+
# document: {
|
1058
|
+
# format: "pdf", # required, accepts pdf, csv, doc, docx, xls, xlsx, html, txt, md
|
1059
|
+
# name: "DocumentBlockNameString", # required
|
1060
|
+
# source: { # required
|
1061
|
+
# bytes: "data",
|
1062
|
+
# },
|
1063
|
+
# },
|
1027
1064
|
# },
|
1028
1065
|
# ],
|
1029
1066
|
# status: "success", # accepts success, error
|
@@ -1619,7 +1656,7 @@ module Aws::BedrockRuntime
|
|
1619
1656
|
params: params,
|
1620
1657
|
config: config)
|
1621
1658
|
context[:gem_name] = 'aws-sdk-bedrockruntime'
|
1622
|
-
context[:gem_version] = '1.
|
1659
|
+
context[:gem_version] = '1.13.0'
|
1623
1660
|
Seahorse::Client::Request.new(handlers, context)
|
1624
1661
|
end
|
1625
1662
|
|
@@ -42,6 +42,11 @@ module Aws::BedrockRuntime
|
|
42
42
|
ConverseStreamTrace = Shapes::StructureShape.new(name: 'ConverseStreamTrace')
|
43
43
|
ConverseTrace = Shapes::StructureShape.new(name: 'ConverseTrace')
|
44
44
|
Document = Shapes::DocumentShape.new(name: 'Document', document: true)
|
45
|
+
DocumentBlock = Shapes::StructureShape.new(name: 'DocumentBlock')
|
46
|
+
DocumentBlockNameString = Shapes::StringShape.new(name: 'DocumentBlockNameString')
|
47
|
+
DocumentFormat = Shapes::StringShape.new(name: 'DocumentFormat')
|
48
|
+
DocumentSource = Shapes::UnionShape.new(name: 'DocumentSource')
|
49
|
+
DocumentSourceBytesBlob = Shapes::BlobShape.new(name: 'DocumentSourceBytesBlob')
|
45
50
|
GuardrailAssessment = Shapes::StructureShape.new(name: 'GuardrailAssessment')
|
46
51
|
GuardrailAssessmentList = Shapes::ListShape.new(name: 'GuardrailAssessmentList')
|
47
52
|
GuardrailAssessmentListMap = Shapes::MapShape.new(name: 'GuardrailAssessmentListMap')
|
@@ -153,12 +158,14 @@ module Aws::BedrockRuntime
|
|
153
158
|
|
154
159
|
ContentBlock.add_member(:text, Shapes::ShapeRef.new(shape: String, location_name: "text"))
|
155
160
|
ContentBlock.add_member(:image, Shapes::ShapeRef.new(shape: ImageBlock, location_name: "image"))
|
161
|
+
ContentBlock.add_member(:document, Shapes::ShapeRef.new(shape: DocumentBlock, location_name: "document"))
|
156
162
|
ContentBlock.add_member(:tool_use, Shapes::ShapeRef.new(shape: ToolUseBlock, location_name: "toolUse"))
|
157
163
|
ContentBlock.add_member(:tool_result, Shapes::ShapeRef.new(shape: ToolResultBlock, location_name: "toolResult"))
|
158
164
|
ContentBlock.add_member(:guard_content, Shapes::ShapeRef.new(shape: GuardrailConverseContentBlock, location_name: "guardContent"))
|
159
165
|
ContentBlock.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
160
166
|
ContentBlock.add_member_subclass(:text, Types::ContentBlock::Text)
|
161
167
|
ContentBlock.add_member_subclass(:image, Types::ContentBlock::Image)
|
168
|
+
ContentBlock.add_member_subclass(:document, Types::ContentBlock::Document)
|
162
169
|
ContentBlock.add_member_subclass(:tool_use, Types::ContentBlock::ToolUse)
|
163
170
|
ContentBlock.add_member_subclass(:tool_result, Types::ContentBlock::ToolResult)
|
164
171
|
ContentBlock.add_member_subclass(:guard_content, Types::ContentBlock::GuardContent)
|
@@ -264,6 +271,17 @@ module Aws::BedrockRuntime
|
|
264
271
|
ConverseTrace.add_member(:guardrail, Shapes::ShapeRef.new(shape: GuardrailTraceAssessment, location_name: "guardrail"))
|
265
272
|
ConverseTrace.struct_class = Types::ConverseTrace
|
266
273
|
|
274
|
+
DocumentBlock.add_member(:format, Shapes::ShapeRef.new(shape: DocumentFormat, required: true, location_name: "format"))
|
275
|
+
DocumentBlock.add_member(:name, Shapes::ShapeRef.new(shape: DocumentBlockNameString, required: true, location_name: "name"))
|
276
|
+
DocumentBlock.add_member(:source, Shapes::ShapeRef.new(shape: DocumentSource, required: true, location_name: "source"))
|
277
|
+
DocumentBlock.struct_class = Types::DocumentBlock
|
278
|
+
|
279
|
+
DocumentSource.add_member(:bytes, Shapes::ShapeRef.new(shape: DocumentSourceBytesBlob, location_name: "bytes"))
|
280
|
+
DocumentSource.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
281
|
+
DocumentSource.add_member_subclass(:bytes, Types::DocumentSource::Bytes)
|
282
|
+
DocumentSource.add_member_subclass(:unknown, Types::DocumentSource::Unknown)
|
283
|
+
DocumentSource.struct_class = Types::DocumentSource
|
284
|
+
|
267
285
|
GuardrailAssessment.add_member(:topic_policy, Shapes::ShapeRef.new(shape: GuardrailTopicPolicyAssessment, location_name: "topicPolicy"))
|
268
286
|
GuardrailAssessment.add_member(:content_policy, Shapes::ShapeRef.new(shape: GuardrailContentPolicyAssessment, location_name: "contentPolicy"))
|
269
287
|
GuardrailAssessment.add_member(:word_policy, Shapes::ShapeRef.new(shape: GuardrailWordPolicyAssessment, location_name: "wordPolicy"))
|
@@ -519,10 +537,12 @@ module Aws::BedrockRuntime
|
|
519
537
|
ToolResultContentBlock.add_member(:json, Shapes::ShapeRef.new(shape: Document, location_name: "json"))
|
520
538
|
ToolResultContentBlock.add_member(:text, Shapes::ShapeRef.new(shape: String, location_name: "text"))
|
521
539
|
ToolResultContentBlock.add_member(:image, Shapes::ShapeRef.new(shape: ImageBlock, location_name: "image"))
|
540
|
+
ToolResultContentBlock.add_member(:document, Shapes::ShapeRef.new(shape: DocumentBlock, location_name: "document"))
|
522
541
|
ToolResultContentBlock.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
523
542
|
ToolResultContentBlock.add_member_subclass(:json, Types::ToolResultContentBlock::Json)
|
524
543
|
ToolResultContentBlock.add_member_subclass(:text, Types::ToolResultContentBlock::Text)
|
525
544
|
ToolResultContentBlock.add_member_subclass(:image, Types::ToolResultContentBlock::Image)
|
545
|
+
ToolResultContentBlock.add_member_subclass(:document, Types::ToolResultContentBlock::Document)
|
526
546
|
ToolResultContentBlock.add_member_subclass(:unknown, Types::ToolResultContentBlock::Unknown)
|
527
547
|
ToolResultContentBlock.struct_class = Types::ToolResultContentBlock
|
528
548
|
|
@@ -60,6 +60,10 @@ module Aws::BedrockRuntime
|
|
60
60
|
# </note>
|
61
61
|
# @return [Types::ImageBlock]
|
62
62
|
#
|
63
|
+
# @!attribute [rw] document
|
64
|
+
# A document to include in the message.
|
65
|
+
# @return [Types::DocumentBlock]
|
66
|
+
#
|
63
67
|
# @!attribute [rw] tool_use
|
64
68
|
# Information about a tool use request from a model.
|
65
69
|
# @return [Types::ToolUseBlock]
|
@@ -82,6 +86,7 @@ module Aws::BedrockRuntime
|
|
82
86
|
class ContentBlock < Struct.new(
|
83
87
|
:text,
|
84
88
|
:image,
|
89
|
+
:document,
|
85
90
|
:tool_use,
|
86
91
|
:tool_result,
|
87
92
|
:guard_content,
|
@@ -92,6 +97,7 @@ module Aws::BedrockRuntime
|
|
92
97
|
|
93
98
|
class Text < ContentBlock; end
|
94
99
|
class Image < ContentBlock; end
|
100
|
+
class Document < ContentBlock; end
|
95
101
|
class ToolUse < ContentBlock; end
|
96
102
|
class ToolResult < ContentBlock; end
|
97
103
|
class GuardContent < ContentBlock; end
|
@@ -564,6 +570,68 @@ module Aws::BedrockRuntime
|
|
564
570
|
include Aws::Structure
|
565
571
|
end
|
566
572
|
|
573
|
+
# A document to include in a message when sending a [Converse][1] or
|
574
|
+
# [ConverseStream][2] request. You can include up to 5 documents in a
|
575
|
+
# request. The maximum document size is 50 MB.
|
576
|
+
#
|
577
|
+
#
|
578
|
+
#
|
579
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html
|
580
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ConverseStream.html
|
581
|
+
#
|
582
|
+
# @!attribute [rw] format
|
583
|
+
# The format of a document, or its extension.
|
584
|
+
# @return [String]
|
585
|
+
#
|
586
|
+
# @!attribute [rw] name
|
587
|
+
# A name for the document.
|
588
|
+
# @return [String]
|
589
|
+
#
|
590
|
+
# @!attribute [rw] source
|
591
|
+
# Contains the content of the document.
|
592
|
+
# @return [Types::DocumentSource]
|
593
|
+
#
|
594
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/DocumentBlock AWS API Documentation
|
595
|
+
#
|
596
|
+
class DocumentBlock < Struct.new(
|
597
|
+
:format,
|
598
|
+
:name,
|
599
|
+
:source)
|
600
|
+
SENSITIVE = []
|
601
|
+
include Aws::Structure
|
602
|
+
end
|
603
|
+
|
604
|
+
# Contains the content of the document included in a message when
|
605
|
+
# sending a [Converse][1] or [ConverseStream][2] request or in the
|
606
|
+
# response.
|
607
|
+
#
|
608
|
+
#
|
609
|
+
#
|
610
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html
|
611
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ConverseStream.html
|
612
|
+
#
|
613
|
+
# @note DocumentSource is a union - when making an API calls you must set exactly one of the members.
|
614
|
+
#
|
615
|
+
# @note DocumentSource is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of DocumentSource corresponding to the set member.
|
616
|
+
#
|
617
|
+
# @!attribute [rw] bytes
|
618
|
+
# A base64-encoded string of a UTF-8 encoded file, that is the
|
619
|
+
# document to include in the message.
|
620
|
+
# @return [String]
|
621
|
+
#
|
622
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/DocumentSource AWS API Documentation
|
623
|
+
#
|
624
|
+
class DocumentSource < Struct.new(
|
625
|
+
:bytes,
|
626
|
+
:unknown)
|
627
|
+
SENSITIVE = []
|
628
|
+
include Aws::Structure
|
629
|
+
include Aws::Structure::Union
|
630
|
+
|
631
|
+
class Bytes < DocumentSource; end
|
632
|
+
class Unknown < DocumentSource; end
|
633
|
+
end
|
634
|
+
|
567
635
|
# A behavior assessment of the guardrail policies used in a call to the
|
568
636
|
# Converse API.
|
569
637
|
#
|
@@ -1704,12 +1772,17 @@ module Aws::BedrockRuntime
|
|
1704
1772
|
# </note>
|
1705
1773
|
# @return [Types::ImageBlock]
|
1706
1774
|
#
|
1775
|
+
# @!attribute [rw] document
|
1776
|
+
# A tool result that is a document.
|
1777
|
+
# @return [Types::DocumentBlock]
|
1778
|
+
#
|
1707
1779
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/ToolResultContentBlock AWS API Documentation
|
1708
1780
|
#
|
1709
1781
|
class ToolResultContentBlock < Struct.new(
|
1710
1782
|
:json,
|
1711
1783
|
:text,
|
1712
1784
|
:image,
|
1785
|
+
:document,
|
1713
1786
|
:unknown)
|
1714
1787
|
SENSITIVE = []
|
1715
1788
|
include Aws::Structure
|
@@ -1718,6 +1791,7 @@ module Aws::BedrockRuntime
|
|
1718
1791
|
class Json < ToolResultContentBlock; end
|
1719
1792
|
class Text < ToolResultContentBlock; end
|
1720
1793
|
class Image < ToolResultContentBlock; end
|
1794
|
+
class Document < ToolResultContentBlock; end
|
1721
1795
|
class Unknown < ToolResultContentBlock; end
|
1722
1796
|
end
|
1723
1797
|
|
data/sig/client.rbs
CHANGED
@@ -99,6 +99,13 @@ module Aws
|
|
99
99
|
bytes: ::String?
|
100
100
|
}
|
101
101
|
}?,
|
102
|
+
document: {
|
103
|
+
format: ("pdf" | "csv" | "doc" | "docx" | "xls" | "xlsx" | "html" | "txt" | "md"),
|
104
|
+
name: ::String,
|
105
|
+
source: {
|
106
|
+
bytes: ::String?
|
107
|
+
}
|
108
|
+
}?,
|
102
109
|
tool_use: {
|
103
110
|
tool_use_id: ::String,
|
104
111
|
name: ::String,
|
@@ -117,6 +124,13 @@ module Aws
|
|
117
124
|
source: {
|
118
125
|
bytes: ::String?
|
119
126
|
}
|
127
|
+
}?,
|
128
|
+
document: {
|
129
|
+
format: ("pdf" | "csv" | "doc" | "docx" | "xls" | "xlsx" | "html" | "txt" | "md"),
|
130
|
+
name: ::String,
|
131
|
+
source: {
|
132
|
+
bytes: ::String?
|
133
|
+
}
|
120
134
|
}?
|
121
135
|
},
|
122
136
|
],
|
@@ -200,6 +214,13 @@ module Aws
|
|
200
214
|
bytes: ::String?
|
201
215
|
}
|
202
216
|
}?,
|
217
|
+
document: {
|
218
|
+
format: ("pdf" | "csv" | "doc" | "docx" | "xls" | "xlsx" | "html" | "txt" | "md"),
|
219
|
+
name: ::String,
|
220
|
+
source: {
|
221
|
+
bytes: ::String?
|
222
|
+
}
|
223
|
+
}?,
|
203
224
|
tool_use: {
|
204
225
|
tool_use_id: ::String,
|
205
226
|
name: ::String,
|
@@ -218,6 +239,13 @@ module Aws
|
|
218
239
|
source: {
|
219
240
|
bytes: ::String?
|
220
241
|
}
|
242
|
+
}?,
|
243
|
+
document: {
|
244
|
+
format: ("pdf" | "csv" | "doc" | "docx" | "xls" | "xlsx" | "html" | "txt" | "md"),
|
245
|
+
name: ::String,
|
246
|
+
source: {
|
247
|
+
bytes: ::String?
|
248
|
+
}
|
221
249
|
}?
|
222
250
|
},
|
223
251
|
],
|
data/sig/types.rbs
CHANGED
@@ -22,6 +22,7 @@ module Aws::BedrockRuntime
|
|
22
22
|
class ContentBlock
|
23
23
|
attr_accessor text: ::String
|
24
24
|
attr_accessor image: Types::ImageBlock
|
25
|
+
attr_accessor document: Types::DocumentBlock
|
25
26
|
attr_accessor tool_use: Types::ToolUseBlock
|
26
27
|
attr_accessor tool_result: Types::ToolResultBlock
|
27
28
|
attr_accessor guard_content: Types::GuardrailConverseContentBlock
|
@@ -32,6 +33,8 @@ module Aws::BedrockRuntime
|
|
32
33
|
end
|
33
34
|
class Image < ContentBlock
|
34
35
|
end
|
36
|
+
class Document < ContentBlock
|
37
|
+
end
|
35
38
|
class ToolUse < ContentBlock
|
36
39
|
end
|
37
40
|
class ToolResult < ContentBlock
|
@@ -165,6 +168,24 @@ module Aws::BedrockRuntime
|
|
165
168
|
SENSITIVE: []
|
166
169
|
end
|
167
170
|
|
171
|
+
class DocumentBlock
|
172
|
+
attr_accessor format: ("pdf" | "csv" | "doc" | "docx" | "xls" | "xlsx" | "html" | "txt" | "md")
|
173
|
+
attr_accessor name: ::String
|
174
|
+
attr_accessor source: Types::DocumentSource
|
175
|
+
SENSITIVE: []
|
176
|
+
end
|
177
|
+
|
178
|
+
class DocumentSource
|
179
|
+
attr_accessor bytes: ::String
|
180
|
+
attr_accessor unknown: untyped
|
181
|
+
SENSITIVE: []
|
182
|
+
|
183
|
+
class Bytes < DocumentSource
|
184
|
+
end
|
185
|
+
class Unknown < DocumentSource
|
186
|
+
end
|
187
|
+
end
|
188
|
+
|
168
189
|
class GuardrailAssessment
|
169
190
|
attr_accessor topic_policy: Types::GuardrailTopicPolicyAssessment
|
170
191
|
attr_accessor content_policy: Types::GuardrailContentPolicyAssessment
|
@@ -489,6 +510,7 @@ module Aws::BedrockRuntime
|
|
489
510
|
attr_accessor json: untyped
|
490
511
|
attr_accessor text: ::String
|
491
512
|
attr_accessor image: Types::ImageBlock
|
513
|
+
attr_accessor document: Types::DocumentBlock
|
492
514
|
attr_accessor unknown: untyped
|
493
515
|
SENSITIVE: []
|
494
516
|
|
@@ -498,6 +520,8 @@ module Aws::BedrockRuntime
|
|
498
520
|
end
|
499
521
|
class Image < ToolResultContentBlock
|
500
522
|
end
|
523
|
+
class Document < ToolResultContentBlock
|
524
|
+
end
|
501
525
|
class Unknown < ToolResultContentBlock
|
502
526
|
end
|
503
527
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-bedrockruntime
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.198.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.198.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|