aws-sdk-bedrockagentruntime 1.73.0 → 1.74.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.
data/sig/params.rbs ADDED
@@ -0,0 +1,483 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module BedrockAgentRuntime
10
+ module Params
11
+ type conversation_history = {
12
+ messages: Array[
13
+ {
14
+ content: Array[
15
+ {
16
+ text: ::String?
17
+ }
18
+ ],
19
+ role: ("user" | "assistant")
20
+ }
21
+ ]?
22
+ }
23
+
24
+ type file_source = {
25
+ byte_content: {
26
+ data: ::String,
27
+ media_type: ::String
28
+ }?,
29
+ s3_location: {
30
+ uri: ::String
31
+ }?,
32
+ source_type: ("S3" | "BYTE_CONTENT")
33
+ }
34
+
35
+ type input_file = {
36
+ name: ::String,
37
+ source: Params::file_source,
38
+ use_case: ("CODE_INTERPRETER" | "CHAT")
39
+ }
40
+
41
+ type retrieval_filter = {
42
+ and_all: Array[
43
+ {
44
+ and_all: untyped?,
45
+ equals: {
46
+ key: ::String,
47
+ value: {
48
+ }
49
+ }?,
50
+ greater_than: {
51
+ key: ::String,
52
+ value: {
53
+ }
54
+ }?,
55
+ greater_than_or_equals: {
56
+ key: ::String,
57
+ value: {
58
+ }
59
+ }?,
60
+ in: {
61
+ key: ::String,
62
+ value: {
63
+ }
64
+ }?,
65
+ less_than: {
66
+ key: ::String,
67
+ value: {
68
+ }
69
+ }?,
70
+ less_than_or_equals: {
71
+ key: ::String,
72
+ value: {
73
+ }
74
+ }?,
75
+ list_contains: {
76
+ key: ::String,
77
+ value: {
78
+ }
79
+ }?,
80
+ not_equals: {
81
+ key: ::String,
82
+ value: {
83
+ }
84
+ }?,
85
+ not_in: {
86
+ key: ::String,
87
+ value: {
88
+ }
89
+ }?,
90
+ or_all: untyped?,
91
+ starts_with: {
92
+ key: ::String,
93
+ value: {
94
+ }
95
+ }?,
96
+ string_contains: {
97
+ key: ::String,
98
+ value: {
99
+ }
100
+ }?
101
+ }
102
+ ]?,
103
+ equals: {
104
+ key: ::String,
105
+ value: {
106
+ }
107
+ }?,
108
+ greater_than: {
109
+ key: ::String,
110
+ value: {
111
+ }
112
+ }?,
113
+ greater_than_or_equals: {
114
+ key: ::String,
115
+ value: {
116
+ }
117
+ }?,
118
+ in: {
119
+ key: ::String,
120
+ value: {
121
+ }
122
+ }?,
123
+ less_than: {
124
+ key: ::String,
125
+ value: {
126
+ }
127
+ }?,
128
+ less_than_or_equals: {
129
+ key: ::String,
130
+ value: {
131
+ }
132
+ }?,
133
+ list_contains: {
134
+ key: ::String,
135
+ value: {
136
+ }
137
+ }?,
138
+ not_equals: {
139
+ key: ::String,
140
+ value: {
141
+ }
142
+ }?,
143
+ not_in: {
144
+ key: ::String,
145
+ value: {
146
+ }
147
+ }?,
148
+ or_all: Array[
149
+ {
150
+ and_all: untyped?,
151
+ equals: {
152
+ key: ::String,
153
+ value: {
154
+ }
155
+ }?,
156
+ greater_than: {
157
+ key: ::String,
158
+ value: {
159
+ }
160
+ }?,
161
+ greater_than_or_equals: {
162
+ key: ::String,
163
+ value: {
164
+ }
165
+ }?,
166
+ in: {
167
+ key: ::String,
168
+ value: {
169
+ }
170
+ }?,
171
+ less_than: {
172
+ key: ::String,
173
+ value: {
174
+ }
175
+ }?,
176
+ less_than_or_equals: {
177
+ key: ::String,
178
+ value: {
179
+ }
180
+ }?,
181
+ list_contains: {
182
+ key: ::String,
183
+ value: {
184
+ }
185
+ }?,
186
+ not_equals: {
187
+ key: ::String,
188
+ value: {
189
+ }
190
+ }?,
191
+ not_in: {
192
+ key: ::String,
193
+ value: {
194
+ }
195
+ }?,
196
+ or_all: untyped?,
197
+ starts_with: {
198
+ key: ::String,
199
+ value: {
200
+ }
201
+ }?,
202
+ string_contains: {
203
+ key: ::String,
204
+ value: {
205
+ }
206
+ }?
207
+ }
208
+ ]?,
209
+ starts_with: {
210
+ key: ::String,
211
+ value: {
212
+ }
213
+ }?,
214
+ string_contains: {
215
+ key: ::String,
216
+ value: {
217
+ }
218
+ }?
219
+ }
220
+
221
+ type implicit_filter_configuration = {
222
+ metadata_attributes: Array[
223
+ {
224
+ description: ::String,
225
+ key: ::String,
226
+ type: ("STRING" | "NUMBER" | "BOOLEAN" | "STRING_LIST")
227
+ }
228
+ ],
229
+ model_arn: ::String
230
+ }
231
+
232
+ type reranking_metadata_selective_mode_configuration = {
233
+ fields_to_exclude: Array[
234
+ {
235
+ field_name: ::String
236
+ }
237
+ ]?,
238
+ fields_to_include: Array[
239
+ {
240
+ field_name: ::String
241
+ }
242
+ ]?
243
+ }
244
+
245
+ type metadata_configuration_for_reranking = {
246
+ selection_mode: ("SELECTIVE" | "ALL"),
247
+ selective_mode_configuration: Params::reranking_metadata_selective_mode_configuration?
248
+ }
249
+
250
+ type vector_search_bedrock_reranking_configuration = {
251
+ metadata_configuration: Params::metadata_configuration_for_reranking?,
252
+ model_configuration: {
253
+ additional_model_request_fields: Hash[::String, {
254
+ }]?,
255
+ model_arn: ::String
256
+ },
257
+ number_of_reranked_results: ::Integer?
258
+ }
259
+
260
+ type vector_search_reranking_configuration = {
261
+ bedrock_reranking_configuration: Params::vector_search_bedrock_reranking_configuration?,
262
+ type: ("BEDROCK_RERANKING_MODEL")
263
+ }
264
+
265
+ type knowledge_base_vector_search_configuration = {
266
+ filter: Params::retrieval_filter?,
267
+ implicit_filter_configuration: Params::implicit_filter_configuration?,
268
+ number_of_results: ::Integer?,
269
+ override_search_type: ("HYBRID" | "SEMANTIC")?,
270
+ reranking_configuration: Params::vector_search_reranking_configuration?
271
+ }
272
+
273
+ type knowledge_base_retrieval_configuration = {
274
+ vector_search_configuration: Params::knowledge_base_vector_search_configuration
275
+ }
276
+
277
+ type api_result = {
278
+ action_group: ::String,
279
+ agent_id: ::String?,
280
+ api_path: ::String?,
281
+ confirmation_state: ("CONFIRM" | "DENY")?,
282
+ http_method: ::String?,
283
+ http_status_code: ::Integer?,
284
+ response_body: Hash[::String, Params::content_body]?,
285
+ response_state: ("FAILURE" | "REPROMPT")?
286
+ }
287
+
288
+ type function_result = {
289
+ action_group: ::String,
290
+ agent_id: ::String?,
291
+ confirmation_state: ("CONFIRM" | "DENY")?,
292
+ function: ::String?,
293
+ response_body: Hash[::String, Params::content_body]?,
294
+ response_state: ("FAILURE" | "REPROMPT")?
295
+ }
296
+
297
+ type invocation_result_member = {
298
+ api_result: Params::api_result?,
299
+ function_result: Params::function_result?
300
+ }
301
+
302
+ type content_body = {
303
+ body: ::String?,
304
+ images: Array[
305
+ {
306
+ format: ("png" | "jpeg" | "gif" | "webp"),
307
+ source: {
308
+ bytes: ::String?
309
+ }
310
+ }
311
+ ]?
312
+ }
313
+
314
+ type flow_input = {
315
+ content: {
316
+ document: {
317
+ }?
318
+ },
319
+ node_input_name: ::String?,
320
+ node_name: ::String,
321
+ node_output_name: ::String?
322
+ }
323
+
324
+ type function_schema = {
325
+ functions: Array[
326
+ Params::function_definition
327
+ ]?
328
+ }
329
+
330
+ type agent_action_group = {
331
+ action_group_executor: {
332
+ custom_control: ("RETURN_CONTROL")?,
333
+ lambda: ::String?
334
+ }?,
335
+ action_group_name: ::String,
336
+ api_schema: {
337
+ payload: ::String?,
338
+ s3: {
339
+ s3_bucket_name: ::String?,
340
+ s3_object_key: ::String?
341
+ }?
342
+ }?,
343
+ description: ::String?,
344
+ function_schema: Params::function_schema?,
345
+ parent_action_group_signature: ("AMAZON.UserInput" | "AMAZON.CodeInterpreter" | "ANTHROPIC.Computer" | "ANTHROPIC.Bash" | "ANTHROPIC.TextEditor")?,
346
+ parent_action_group_signature_params: Hash[::String, ::String]?
347
+ }
348
+
349
+ type function_definition = {
350
+ description: ::String?,
351
+ name: ::String,
352
+ parameters: Hash[::String, {
353
+ description: ::String?,
354
+ required: bool?,
355
+ type: ("string" | "number" | "integer" | "boolean" | "array")
356
+ }]?,
357
+ require_confirmation: ("ENABLED" | "DISABLED")?
358
+ }
359
+
360
+ type knowledge_base = {
361
+ description: ::String,
362
+ knowledge_base_id: ::String,
363
+ retrieval_configuration: Params::knowledge_base_retrieval_configuration?
364
+ }
365
+
366
+ type prompt_override_configuration = {
367
+ override_lambda: ::String?,
368
+ prompt_configurations: Array[
369
+ Params::prompt_configuration
370
+ ]
371
+ }
372
+
373
+ type prompt_configuration = {
374
+ additional_model_request_fields: {
375
+ }?,
376
+ base_prompt_template: ::String?,
377
+ foundation_model: ::String?,
378
+ inference_configuration: {
379
+ maximum_length: ::Integer?,
380
+ stop_sequences: Array[::String]?,
381
+ temperature: ::Float?,
382
+ top_k: ::Integer?,
383
+ top_p: ::Float?
384
+ }?,
385
+ parser_mode: ("DEFAULT" | "OVERRIDDEN")?,
386
+ prompt_creation_mode: ("DEFAULT" | "OVERRIDDEN")?,
387
+ prompt_state: ("ENABLED" | "DISABLED")?,
388
+ prompt_type: ("PRE_PROCESSING" | "ORCHESTRATION" | "KNOWLEDGE_BASE_RESPONSE_GENERATION" | "POST_PROCESSING" | "ROUTING_CLASSIFIER")?
389
+ }
390
+
391
+ type inference_config = {
392
+ text_inference_config: {
393
+ max_tokens: ::Integer?,
394
+ stop_sequences: Array[::String]?,
395
+ temperature: ::Float?,
396
+ top_p: ::Float?
397
+ }?
398
+ }
399
+
400
+ type external_sources_generation_configuration = {
401
+ additional_model_request_fields: Hash[::String, {
402
+ }]?,
403
+ guardrail_configuration: {
404
+ guardrail_id: ::String,
405
+ guardrail_version: ::String
406
+ }?,
407
+ inference_config: Params::inference_config?,
408
+ performance_config: {
409
+ latency: ("standard" | "optimized")?
410
+ }?,
411
+ prompt_template: {
412
+ text_prompt_template: ::String?
413
+ }?
414
+ }
415
+
416
+ type external_sources_retrieve_and_generate_configuration = {
417
+ generation_configuration: Params::external_sources_generation_configuration?,
418
+ model_arn: ::String,
419
+ sources: Array[
420
+ Params::external_source
421
+ ]
422
+ }
423
+
424
+ type generation_configuration = {
425
+ additional_model_request_fields: Hash[::String, {
426
+ }]?,
427
+ guardrail_configuration: {
428
+ guardrail_id: ::String,
429
+ guardrail_version: ::String
430
+ }?,
431
+ inference_config: Params::inference_config?,
432
+ performance_config: {
433
+ latency: ("standard" | "optimized")?
434
+ }?,
435
+ prompt_template: {
436
+ text_prompt_template: ::String?
437
+ }?
438
+ }
439
+
440
+ type orchestration_configuration = {
441
+ additional_model_request_fields: Hash[::String, {
442
+ }]?,
443
+ inference_config: Params::inference_config?,
444
+ performance_config: {
445
+ latency: ("standard" | "optimized")?
446
+ }?,
447
+ prompt_template: {
448
+ text_prompt_template: ::String?
449
+ }?,
450
+ query_transformation_configuration: {
451
+ type: ("QUERY_DECOMPOSITION")
452
+ }?
453
+ }
454
+
455
+ type knowledge_base_retrieve_and_generate_configuration = {
456
+ generation_configuration: Params::generation_configuration?,
457
+ knowledge_base_id: ::String,
458
+ model_arn: ::String,
459
+ orchestration_configuration: Params::orchestration_configuration?,
460
+ retrieval_configuration: Params::knowledge_base_retrieval_configuration?
461
+ }
462
+
463
+ type retrieve_and_generate_configuration = {
464
+ external_sources_configuration: Params::external_sources_retrieve_and_generate_configuration?,
465
+ knowledge_base_configuration: Params::knowledge_base_retrieve_and_generate_configuration?,
466
+ type: ("KNOWLEDGE_BASE" | "EXTERNAL_SOURCES")
467
+ }
468
+
469
+ type external_source = {
470
+ byte_content: {
471
+ content_type: ::String,
472
+ data: ::String,
473
+ identifier: ::String
474
+ }?,
475
+ s3_location: {
476
+ uri: ::String
477
+ }?,
478
+ source_type: ("S3" | "BYTE_CONTENT")
479
+ }
480
+
481
+ end
482
+ end
483
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-bedrockagentruntime
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.73.0
4
+ version: 1.74.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
@@ -69,6 +69,7 @@ files:
69
69
  - lib/aws-sdk-bedrockagentruntime/waiters.rb
70
70
  - sig/client.rbs
71
71
  - sig/errors.rbs
72
+ - sig/params.rbs
72
73
  - sig/resource.rbs
73
74
  - sig/types.rbs
74
75
  - sig/waiters.rbs