aws-sdk-bedrockruntime 1.49.0 → 1.50.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 +158 -13
- data/lib/aws-sdk-bedrockruntime/client_api.rb +111 -2
- data/lib/aws-sdk-bedrockruntime/types.rb +372 -10
- data/lib/aws-sdk-bedrockruntime.rb +1 -1
- data/sig/client.rbs +120 -12
- data/sig/types.rbs +115 -0
- metadata +1 -1
data/sig/types.rbs
CHANGED
@@ -86,6 +86,75 @@ module Aws::BedrockRuntime
|
|
86
86
|
SENSITIVE: []
|
87
87
|
end
|
88
88
|
|
89
|
+
class Citation
|
90
|
+
attr_accessor title: ::String
|
91
|
+
attr_accessor source_content: ::Array[Types::CitationSourceContent]
|
92
|
+
attr_accessor location: Types::CitationLocation
|
93
|
+
SENSITIVE: []
|
94
|
+
end
|
95
|
+
|
96
|
+
class CitationGeneratedContent
|
97
|
+
attr_accessor text: ::String
|
98
|
+
attr_accessor unknown: untyped
|
99
|
+
SENSITIVE: []
|
100
|
+
|
101
|
+
class Text < CitationGeneratedContent
|
102
|
+
end
|
103
|
+
class Unknown < CitationGeneratedContent
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
class CitationLocation
|
108
|
+
attr_accessor document_char: Types::DocumentCharLocation
|
109
|
+
attr_accessor document_page: Types::DocumentPageLocation
|
110
|
+
attr_accessor document_chunk: Types::DocumentChunkLocation
|
111
|
+
attr_accessor unknown: untyped
|
112
|
+
SENSITIVE: []
|
113
|
+
|
114
|
+
class DocumentChar < CitationLocation
|
115
|
+
end
|
116
|
+
class DocumentPage < CitationLocation
|
117
|
+
end
|
118
|
+
class DocumentChunk < CitationLocation
|
119
|
+
end
|
120
|
+
class Unknown < CitationLocation
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
class CitationSourceContent
|
125
|
+
attr_accessor text: ::String
|
126
|
+
attr_accessor unknown: untyped
|
127
|
+
SENSITIVE: []
|
128
|
+
|
129
|
+
class Text < CitationSourceContent
|
130
|
+
end
|
131
|
+
class Unknown < CitationSourceContent
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
class CitationSourceContentDelta
|
136
|
+
attr_accessor text: ::String
|
137
|
+
SENSITIVE: []
|
138
|
+
end
|
139
|
+
|
140
|
+
class CitationsConfig
|
141
|
+
attr_accessor enabled: bool
|
142
|
+
SENSITIVE: []
|
143
|
+
end
|
144
|
+
|
145
|
+
class CitationsContentBlock
|
146
|
+
attr_accessor content: ::Array[Types::CitationGeneratedContent]
|
147
|
+
attr_accessor citations: ::Array[Types::Citation]
|
148
|
+
SENSITIVE: []
|
149
|
+
end
|
150
|
+
|
151
|
+
class CitationsDelta
|
152
|
+
attr_accessor title: ::String
|
153
|
+
attr_accessor source_content: ::Array[Types::CitationSourceContentDelta]
|
154
|
+
attr_accessor location: Types::CitationLocation
|
155
|
+
SENSITIVE: []
|
156
|
+
end
|
157
|
+
|
89
158
|
class ConflictException
|
90
159
|
attr_accessor message: ::String
|
91
160
|
SENSITIVE: []
|
@@ -101,6 +170,7 @@ module Aws::BedrockRuntime
|
|
101
170
|
attr_accessor guard_content: Types::GuardrailConverseContentBlock
|
102
171
|
attr_accessor cache_point: Types::CachePointBlock
|
103
172
|
attr_accessor reasoning_content: Types::ReasoningContentBlock
|
173
|
+
attr_accessor citations_content: Types::CitationsContentBlock
|
104
174
|
attr_accessor unknown: untyped
|
105
175
|
SENSITIVE: [:reasoning_content]
|
106
176
|
|
@@ -122,6 +192,8 @@ module Aws::BedrockRuntime
|
|
122
192
|
end
|
123
193
|
class ReasoningContent < ContentBlock
|
124
194
|
end
|
195
|
+
class CitationsContent < ContentBlock
|
196
|
+
end
|
125
197
|
class Unknown < ContentBlock
|
126
198
|
end
|
127
199
|
end
|
@@ -130,6 +202,7 @@ module Aws::BedrockRuntime
|
|
130
202
|
attr_accessor text: ::String
|
131
203
|
attr_accessor tool_use: Types::ToolUseBlockDelta
|
132
204
|
attr_accessor reasoning_content: Types::ReasoningContentBlockDelta
|
205
|
+
attr_accessor citation: Types::CitationsDelta
|
133
206
|
attr_accessor unknown: untyped
|
134
207
|
SENSITIVE: [:reasoning_content]
|
135
208
|
|
@@ -139,6 +212,8 @@ module Aws::BedrockRuntime
|
|
139
212
|
end
|
140
213
|
class ReasoningContent < ContentBlockDelta
|
141
214
|
end
|
215
|
+
class Citation < ContentBlockDelta
|
216
|
+
end
|
142
217
|
class Unknown < ContentBlockDelta
|
143
218
|
end
|
144
219
|
end
|
@@ -266,12 +341,48 @@ module Aws::BedrockRuntime
|
|
266
341
|
attr_accessor format: ("pdf" | "csv" | "doc" | "docx" | "xls" | "xlsx" | "html" | "txt" | "md")
|
267
342
|
attr_accessor name: ::String
|
268
343
|
attr_accessor source: Types::DocumentSource
|
344
|
+
attr_accessor context: ::String
|
345
|
+
attr_accessor citations: Types::CitationsConfig
|
346
|
+
SENSITIVE: []
|
347
|
+
end
|
348
|
+
|
349
|
+
class DocumentCharLocation
|
350
|
+
attr_accessor document_index: ::Integer
|
351
|
+
attr_accessor start: ::Integer
|
352
|
+
attr_accessor end: ::Integer
|
353
|
+
SENSITIVE: []
|
354
|
+
end
|
355
|
+
|
356
|
+
class DocumentChunkLocation
|
357
|
+
attr_accessor document_index: ::Integer
|
358
|
+
attr_accessor start: ::Integer
|
359
|
+
attr_accessor end: ::Integer
|
360
|
+
SENSITIVE: []
|
361
|
+
end
|
362
|
+
|
363
|
+
class DocumentContentBlock
|
364
|
+
attr_accessor text: ::String
|
365
|
+
attr_accessor unknown: untyped
|
366
|
+
SENSITIVE: []
|
367
|
+
|
368
|
+
class Text < DocumentContentBlock
|
369
|
+
end
|
370
|
+
class Unknown < DocumentContentBlock
|
371
|
+
end
|
372
|
+
end
|
373
|
+
|
374
|
+
class DocumentPageLocation
|
375
|
+
attr_accessor document_index: ::Integer
|
376
|
+
attr_accessor start: ::Integer
|
377
|
+
attr_accessor end: ::Integer
|
269
378
|
SENSITIVE: []
|
270
379
|
end
|
271
380
|
|
272
381
|
class DocumentSource
|
273
382
|
attr_accessor bytes: ::String
|
274
383
|
attr_accessor s3_location: Types::S3Location
|
384
|
+
attr_accessor text: ::String
|
385
|
+
attr_accessor content: ::Array[Types::DocumentContentBlock]
|
275
386
|
attr_accessor unknown: untyped
|
276
387
|
SENSITIVE: []
|
277
388
|
|
@@ -279,6 +390,10 @@ module Aws::BedrockRuntime
|
|
279
390
|
end
|
280
391
|
class S3Location < DocumentSource
|
281
392
|
end
|
393
|
+
class Text < DocumentSource
|
394
|
+
end
|
395
|
+
class Content < DocumentSource
|
396
|
+
end
|
282
397
|
class Unknown < DocumentSource
|
283
398
|
end
|
284
399
|
end
|