aws-sdk-bedrockagentruntime 1.63.0 → 1.64.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/client.rbs CHANGED
@@ -83,29 +83,29 @@ module Aws
83
83
 
84
84
  interface _CreateInvocationResponseSuccess
85
85
  include ::Seahorse::Client::_ResponseSuccess[Types::CreateInvocationResponse]
86
- def created_at: () -> ::Time
87
- def invocation_id: () -> ::String
88
86
  def session_id: () -> ::String
87
+ def invocation_id: () -> ::String
88
+ def created_at: () -> ::Time
89
89
  end
90
90
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#create_invocation-instance_method
91
91
  def create_invocation: (
92
- ?description: ::String,
93
92
  ?invocation_id: ::String,
93
+ ?description: ::String,
94
94
  session_identifier: ::String
95
95
  ) -> _CreateInvocationResponseSuccess
96
96
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateInvocationResponseSuccess
97
97
 
98
98
  interface _CreateSessionResponseSuccess
99
99
  include ::Seahorse::Client::_ResponseSuccess[Types::CreateSessionResponse]
100
- def created_at: () -> ::Time
101
- def session_arn: () -> ::String
102
100
  def session_id: () -> ::String
101
+ def session_arn: () -> ::String
103
102
  def session_status: () -> ("ACTIVE" | "EXPIRED" | "ENDED")
103
+ def created_at: () -> ::Time
104
104
  end
105
105
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#create_session-instance_method
106
106
  def create_session: (
107
- ?encryption_key_arn: ::String,
108
107
  ?session_metadata: Hash[::String, ::String],
108
+ ?encryption_key_arn: ::String,
109
109
  ?tags: Hash[::String, ::String]
110
110
  ) -> _CreateSessionResponseSuccess
111
111
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateSessionResponseSuccess
@@ -115,8 +115,8 @@ module Aws
115
115
  end
116
116
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#delete_agent_memory-instance_method
117
117
  def delete_agent_memory: (
118
- agent_alias_id: ::String,
119
118
  agent_id: ::String,
119
+ agent_alias_id: ::String,
120
120
  ?memory_id: ::String,
121
121
  ?session_id: ::String
122
122
  ) -> _DeleteAgentMemoryResponseSuccess
@@ -133,8 +133,8 @@ module Aws
133
133
 
134
134
  interface _EndSessionResponseSuccess
135
135
  include ::Seahorse::Client::_ResponseSuccess[Types::EndSessionResponse]
136
- def session_arn: () -> ::String
137
136
  def session_id: () -> ::String
137
+ def session_arn: () -> ::String
138
138
  def session_status: () -> ("ACTIVE" | "EXPIRED" | "ENDED")
139
139
  end
140
140
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#end_session-instance_method
@@ -150,16 +150,16 @@ module Aws
150
150
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#generate_query-instance_method
151
151
  def generate_query: (
152
152
  query_generation_input: {
153
- text: ::String,
154
- type: ("TEXT")
153
+ type: ("TEXT"),
154
+ text: ::String
155
155
  },
156
156
  transformation_configuration: {
157
157
  mode: ("TEXT_TO_SQL"),
158
158
  text_to_sql_configuration: {
159
+ type: ("KNOWLEDGE_BASE"),
159
160
  knowledge_base_configuration: {
160
161
  knowledge_base_arn: ::String
161
- }?,
162
- type: ("KNOWLEDGE_BASE")
162
+ }?
163
163
  }?
164
164
  }
165
165
  ) -> _GenerateQueryResponseSuccess
@@ -167,53 +167,53 @@ module Aws
167
167
 
168
168
  interface _GetAgentMemoryResponseSuccess
169
169
  include ::Seahorse::Client::_ResponseSuccess[Types::GetAgentMemoryResponse]
170
- def memory_contents: () -> ::Array[Types::Memory]
171
170
  def next_token: () -> ::String
171
+ def memory_contents: () -> ::Array[Types::Memory]
172
172
  end
173
173
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#get_agent_memory-instance_method
174
174
  def get_agent_memory: (
175
- agent_alias_id: ::String,
176
- agent_id: ::String,
175
+ ?next_token: ::String,
177
176
  ?max_items: ::Integer,
178
- memory_id: ::String,
177
+ agent_id: ::String,
178
+ agent_alias_id: ::String,
179
179
  memory_type: ("SESSION_SUMMARY"),
180
- ?next_token: ::String
180
+ memory_id: ::String
181
181
  ) -> _GetAgentMemoryResponseSuccess
182
182
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetAgentMemoryResponseSuccess
183
183
 
184
184
  interface _GetExecutionFlowSnapshotResponseSuccess
185
185
  include ::Seahorse::Client::_ResponseSuccess[Types::GetExecutionFlowSnapshotResponse]
186
- def customer_encryption_key_arn: () -> ::String
187
- def definition: () -> ::String
188
- def execution_role_arn: () -> ::String
189
- def flow_alias_identifier: () -> ::String
190
186
  def flow_identifier: () -> ::String
187
+ def flow_alias_identifier: () -> ::String
191
188
  def flow_version: () -> ::String
189
+ def execution_role_arn: () -> ::String
190
+ def definition: () -> ::String
191
+ def customer_encryption_key_arn: () -> ::String
192
192
  end
193
193
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#get_execution_flow_snapshot-instance_method
194
194
  def get_execution_flow_snapshot: (
195
- execution_identifier: ::String,
195
+ flow_identifier: ::String,
196
196
  flow_alias_identifier: ::String,
197
- flow_identifier: ::String
197
+ execution_identifier: ::String
198
198
  ) -> _GetExecutionFlowSnapshotResponseSuccess
199
199
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetExecutionFlowSnapshotResponseSuccess
200
200
 
201
201
  interface _GetFlowExecutionResponseSuccess
202
202
  include ::Seahorse::Client::_ResponseSuccess[Types::GetFlowExecutionResponse]
203
+ def execution_arn: () -> ::String
204
+ def status: () -> ("Running" | "Succeeded" | "Failed" | "TimedOut" | "Aborted")
205
+ def started_at: () -> ::Time
203
206
  def ended_at: () -> ::Time
204
207
  def errors: () -> ::Array[Types::FlowExecutionError]
205
- def execution_arn: () -> ::String
206
208
  def flow_alias_identifier: () -> ::String
207
209
  def flow_identifier: () -> ::String
208
210
  def flow_version: () -> ::String
209
- def started_at: () -> ::Time
210
- def status: () -> ("Running" | "Succeeded" | "Failed" | "TimedOut" | "Aborted")
211
211
  end
212
212
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#get_flow_execution-instance_method
213
213
  def get_flow_execution: (
214
- execution_identifier: ::String,
214
+ flow_identifier: ::String,
215
215
  flow_alias_identifier: ::String,
216
- flow_identifier: ::String
216
+ execution_identifier: ::String
217
217
  ) -> _GetFlowExecutionResponseSuccess
218
218
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetFlowExecutionResponseSuccess
219
219
 
@@ -231,13 +231,13 @@ module Aws
231
231
 
232
232
  interface _GetSessionResponseSuccess
233
233
  include ::Seahorse::Client::_ResponseSuccess[Types::GetSessionResponse]
234
+ def session_id: () -> ::String
235
+ def session_arn: () -> ::String
236
+ def session_status: () -> ("ACTIVE" | "EXPIRED" | "ENDED")
234
237
  def created_at: () -> ::Time
235
- def encryption_key_arn: () -> ::String
236
238
  def last_updated_at: () -> ::Time
237
- def session_arn: () -> ::String
238
- def session_id: () -> ::String
239
239
  def session_metadata: () -> ::Hash[::String, ::String]
240
- def session_status: () -> ("ACTIVE" | "EXPIRED" | "ENDED")
240
+ def encryption_key_arn: () -> ::String
241
241
  end
242
242
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#get_session-instance_method
243
243
  def get_session: (
@@ -249,82 +249,97 @@ module Aws
249
249
  include ::Seahorse::Client::_ResponseSuccess[Types::InvokeAgentResponse]
250
250
  def completion: () -> Types::ResponseStream
251
251
  def content_type: () -> ::String
252
- def memory_id: () -> ::String
253
252
  def session_id: () -> ::String
253
+ def memory_id: () -> ::String
254
254
  end
255
255
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#invoke_agent-instance_method
256
256
  def invoke_agent: (
257
- agent_alias_id: ::String,
258
- agent_id: ::String,
259
- ?bedrock_model_configurations: {
260
- performance_config: {
261
- latency: ("standard" | "optimized")?
262
- }?
263
- },
264
- ?enable_trace: bool,
265
- ?end_session: bool,
266
- ?input_text: ::String,
267
- ?memory_id: ::String,
268
- ?prompt_creation_configurations: {
269
- exclude_previous_thinking_steps: bool?,
270
- previous_conversation_turns_to_include: ::Integer?
271
- },
272
- session_id: ::String,
273
257
  ?session_state: {
274
- conversation_history: {
275
- messages: Array[
276
- {
277
- content: Array[
278
- {
279
- text: ::String?
280
- },
281
- ],
282
- role: ("user" | "assistant")
283
- },
284
- ]?
285
- }?,
258
+ session_attributes: Hash[::String, ::String]?,
259
+ prompt_session_attributes: Hash[::String, ::String]?,
260
+ return_control_invocation_results: Array[
261
+ {
262
+ api_result: {
263
+ action_group: ::String,
264
+ http_method: ::String?,
265
+ api_path: ::String?,
266
+ confirmation_state: ("CONFIRM" | "DENY")?,
267
+ response_state: ("FAILURE" | "REPROMPT")?,
268
+ http_status_code: ::Integer?,
269
+ response_body: Hash[::String, {
270
+ body: ::String?,
271
+ images: Array[
272
+ {
273
+ format: ("png" | "jpeg" | "gif" | "webp"),
274
+ source: {
275
+ bytes: ::String?
276
+ }
277
+ },
278
+ ]?
279
+ }]?,
280
+ agent_id: ::String?
281
+ }?,
282
+ function_result: {
283
+ action_group: ::String,
284
+ confirmation_state: ("CONFIRM" | "DENY")?,
285
+ function: ::String?,
286
+ response_body: Hash[::String, {
287
+ body: ::String?,
288
+ images: Array[
289
+ {
290
+ format: ("png" | "jpeg" | "gif" | "webp"),
291
+ source: {
292
+ bytes: ::String?
293
+ }
294
+ },
295
+ ]?
296
+ }]?,
297
+ response_state: ("FAILURE" | "REPROMPT")?,
298
+ agent_id: ::String?
299
+ }?
300
+ },
301
+ ]?,
302
+ invocation_id: ::String?,
286
303
  files: Array[
287
304
  {
288
305
  name: ::String,
289
306
  source: {
290
- byte_content: {
291
- data: ::String,
292
- media_type: ::String
293
- }?,
307
+ source_type: ("S3" | "BYTE_CONTENT"),
294
308
  s3_location: {
295
309
  uri: ::String
296
310
  }?,
297
- source_type: ("S3" | "BYTE_CONTENT")
311
+ byte_content: {
312
+ media_type: ::String,
313
+ data: ::String
314
+ }?
298
315
  },
299
316
  use_case: ("CODE_INTERPRETER" | "CHAT")
300
317
  },
301
318
  ]?,
302
- invocation_id: ::String?,
303
319
  knowledge_base_configurations: Array[
304
320
  {
305
321
  knowledge_base_id: ::String,
306
322
  retrieval_configuration: {
307
323
  vector_search_configuration: {
324
+ number_of_results: ::Integer?,
325
+ override_search_type: ("HYBRID" | "SEMANTIC")?,
308
326
  filter: {
309
- and_all: Array[
310
- untyped,
311
- ]?,
312
327
  equals: {
313
328
  key: ::String,
314
329
  value: {
315
330
  }
316
331
  }?,
317
- greater_than: {
332
+ not_equals: {
318
333
  key: ::String,
319
334
  value: {
320
335
  }
321
336
  }?,
322
- greater_than_or_equals: {
337
+ greater_than: {
323
338
  key: ::String,
324
339
  value: {
325
340
  }
326
341
  }?,
327
- in: {
342
+ greater_than_or_equals: {
328
343
  key: ::String,
329
344
  value: {
330
345
  }
@@ -339,25 +354,22 @@ module Aws
339
354
  value: {
340
355
  }
341
356
  }?,
342
- list_contains: {
357
+ in: {
343
358
  key: ::String,
344
359
  value: {
345
360
  }
346
361
  }?,
347
- not_equals: {
362
+ not_in: {
348
363
  key: ::String,
349
364
  value: {
350
365
  }
351
366
  }?,
352
- not_in: {
367
+ starts_with: {
353
368
  key: ::String,
354
369
  value: {
355
370
  }
356
371
  }?,
357
- or_all: Array[
358
- untyped,
359
- ]?,
360
- starts_with: {
372
+ list_contains: {
361
373
  key: ::String,
362
374
  value: {
363
375
  }
@@ -366,130 +378,118 @@ module Aws
366
378
  key: ::String,
367
379
  value: {
368
380
  }
369
- }?
370
- }?,
371
- implicit_filter_configuration: {
372
- metadata_attributes: Array[
373
- {
374
- description: ::String,
375
- key: ::String,
376
- type: ("STRING" | "NUMBER" | "BOOLEAN" | "STRING_LIST")
377
- },
378
- ],
379
- model_arn: ::String
381
+ }?,
382
+ and_all: Array[
383
+ untyped,
384
+ ]?,
385
+ or_all: Array[
386
+ untyped,
387
+ ]?
380
388
  }?,
381
- number_of_results: ::Integer?,
382
- override_search_type: ("HYBRID" | "SEMANTIC")?,
383
389
  reranking_configuration: {
390
+ type: ("BEDROCK_RERANKING_MODEL"),
384
391
  bedrock_reranking_configuration: {
392
+ model_configuration: {
393
+ model_arn: ::String,
394
+ additional_model_request_fields: Hash[::String, {
395
+ }]?
396
+ },
397
+ number_of_reranked_results: ::Integer?,
385
398
  metadata_configuration: {
386
399
  selection_mode: ("SELECTIVE" | "ALL"),
387
400
  selective_mode_configuration: {
388
- fields_to_exclude: Array[
401
+ fields_to_include: Array[
389
402
  {
390
403
  field_name: ::String
391
404
  },
392
405
  ]?,
393
- fields_to_include: Array[
406
+ fields_to_exclude: Array[
394
407
  {
395
408
  field_name: ::String
396
409
  },
397
410
  ]?
398
411
  }?
399
- }?,
400
- model_configuration: {
401
- additional_model_request_fields: Hash[::String, {
402
- }]?,
403
- model_arn: ::String
412
+ }?
413
+ }?
414
+ }?,
415
+ implicit_filter_configuration: {
416
+ metadata_attributes: Array[
417
+ {
418
+ key: ::String,
419
+ type: ("STRING" | "NUMBER" | "BOOLEAN" | "STRING_LIST"),
420
+ description: ::String
404
421
  },
405
- number_of_reranked_results: ::Integer?
406
- }?,
407
- type: ("BEDROCK_RERANKING_MODEL")
422
+ ],
423
+ model_arn: ::String
408
424
  }?
409
425
  }
410
426
  }
411
427
  },
412
428
  ]?,
413
- prompt_session_attributes: Hash[::String, ::String]?,
414
- return_control_invocation_results: Array[
415
- {
416
- api_result: {
417
- action_group: ::String,
418
- agent_id: ::String?,
419
- api_path: ::String?,
420
- confirmation_state: ("CONFIRM" | "DENY")?,
421
- http_method: ::String?,
422
- http_status_code: ::Integer?,
423
- response_body: Hash[::String, {
424
- body: ::String?,
425
- images: Array[
426
- {
427
- format: ("png" | "jpeg" | "gif" | "webp"),
428
- source: {
429
- bytes: ::String?
430
- }
431
- },
432
- ]?
433
- }]?,
434
- response_state: ("FAILURE" | "REPROMPT")?
435
- }?,
436
- function_result: {
437
- action_group: ::String,
438
- agent_id: ::String?,
439
- confirmation_state: ("CONFIRM" | "DENY")?,
440
- function: ::String?,
441
- response_body: Hash[::String, {
442
- body: ::String?,
443
- images: Array[
444
- {
445
- format: ("png" | "jpeg" | "gif" | "webp"),
446
- source: {
447
- bytes: ::String?
448
- }
449
- },
450
- ]?
451
- }]?,
452
- response_state: ("FAILURE" | "REPROMPT")?
453
- }?
454
- },
455
- ]?,
456
- session_attributes: Hash[::String, ::String]?
429
+ conversation_history: {
430
+ messages: Array[
431
+ {
432
+ role: ("user" | "assistant"),
433
+ content: Array[
434
+ {
435
+ text: ::String?
436
+ },
437
+ ]
438
+ },
439
+ ]?
440
+ }?
441
+ },
442
+ agent_id: ::String,
443
+ agent_alias_id: ::String,
444
+ session_id: ::String,
445
+ ?end_session: bool,
446
+ ?enable_trace: bool,
447
+ ?input_text: ::String,
448
+ ?memory_id: ::String,
449
+ ?bedrock_model_configurations: {
450
+ performance_config: {
451
+ latency: ("standard" | "optimized")?
452
+ }?
457
453
  },
458
- ?source_arn: ::String,
459
454
  ?streaming_configurations: {
460
- apply_guardrail_interval: ::Integer?,
461
- stream_final_response: bool?
462
- }
455
+ stream_final_response: bool?,
456
+ apply_guardrail_interval: ::Integer?
457
+ },
458
+ ?prompt_creation_configurations: {
459
+ previous_conversation_turns_to_include: ::Integer?,
460
+ exclude_previous_thinking_steps: bool?
461
+ },
462
+ ?source_arn: ::String
463
463
  ) ?{ (*untyped) -> void } -> _InvokeAgentResponseSuccess
464
464
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _InvokeAgentResponseSuccess
465
465
 
466
466
  interface _InvokeFlowResponseSuccess
467
467
  include ::Seahorse::Client::_ResponseSuccess[Types::InvokeFlowResponse]
468
- def execution_id: () -> ::String
469
468
  def response_stream: () -> Types::FlowResponseStream
469
+ def execution_id: () -> ::String
470
470
  end
471
471
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#invoke_flow-instance_method
472
472
  def invoke_flow: (
473
- ?enable_trace: bool,
474
- ?execution_id: ::String,
475
- flow_alias_identifier: ::String,
476
473
  flow_identifier: ::String,
474
+ flow_alias_identifier: ::String,
477
475
  inputs: Array[
478
476
  {
477
+ node_name: ::String,
478
+ node_output_name: ::String?,
479
479
  content: {
480
480
  document: {
481
481
  }?
482
482
  },
483
- node_input_name: ::String?,
484
- node_name: ::String,
485
- node_output_name: ::String?
483
+ node_input_name: ::String?
486
484
  },
487
485
  ],
486
+ ?enable_trace: bool,
488
487
  ?model_performance_configuration: {
489
488
  performance_config: {
490
489
  latency: ("standard" | "optimized")?
491
490
  }?
492
- }
491
+ },
492
+ ?execution_id: ::String
493
493
  ) ?{ (*untyped) -> void } -> _InvokeFlowResponseSuccess
494
494
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _InvokeFlowResponseSuccess
495
495
 
@@ -501,133 +501,341 @@ module Aws
501
501
  end
502
502
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#invoke_inline_agent-instance_method
503
503
  def invoke_inline_agent: (
504
+ ?customer_encryption_key_arn: ::String,
505
+ foundation_model: ::String,
506
+ instruction: ::String,
507
+ ?idle_session_ttl_in_seconds: ::Integer,
504
508
  ?action_groups: Array[
505
509
  {
510
+ action_group_name: ::String,
511
+ description: ::String?,
512
+ parent_action_group_signature: ("AMAZON.UserInput" | "AMAZON.CodeInterpreter" | "ANTHROPIC.Computer" | "ANTHROPIC.Bash" | "ANTHROPIC.TextEditor")?,
506
513
  action_group_executor: {
507
- custom_control: ("RETURN_CONTROL")?,
508
- lambda: ::String?
514
+ lambda: ::String?,
515
+ custom_control: ("RETURN_CONTROL")?
509
516
  }?,
510
- action_group_name: ::String,
511
517
  api_schema: {
512
- payload: ::String?,
513
518
  s3: {
514
519
  s3_bucket_name: ::String?,
515
520
  s3_object_key: ::String?
516
- }?
521
+ }?,
522
+ payload: ::String?
517
523
  }?,
518
- description: ::String?,
519
524
  function_schema: {
520
525
  functions: Array[
521
526
  {
522
- description: ::String?,
523
527
  name: ::String,
528
+ description: ::String?,
524
529
  parameters: Hash[::String, {
525
530
  description: ::String?,
526
- required: bool?,
527
- type: ("string" | "number" | "integer" | "boolean" | "array")
531
+ type: ("string" | "number" | "integer" | "boolean" | "array"),
532
+ required: bool?
528
533
  }]?,
529
534
  require_confirmation: ("ENABLED" | "DISABLED")?
530
535
  },
531
536
  ]?
532
537
  }?,
533
- parent_action_group_signature: ("AMAZON.UserInput" | "AMAZON.CodeInterpreter" | "ANTHROPIC.Computer" | "ANTHROPIC.Bash" | "ANTHROPIC.TextEditor")?,
534
538
  parent_action_group_signature_params: Hash[::String, ::String]?
535
539
  },
536
540
  ],
537
- ?agent_collaboration: ("SUPERVISOR" | "SUPERVISOR_ROUTER" | "DISABLED"),
538
- ?agent_name: ::String,
539
- ?bedrock_model_configurations: {
540
- performance_config: {
541
- latency: ("standard" | "optimized")?
542
- }?
541
+ ?knowledge_bases: Array[
542
+ {
543
+ knowledge_base_id: ::String,
544
+ description: ::String,
545
+ retrieval_configuration: {
546
+ vector_search_configuration: {
547
+ number_of_results: ::Integer?,
548
+ override_search_type: ("HYBRID" | "SEMANTIC")?,
549
+ filter: {
550
+ equals: {
551
+ key: ::String,
552
+ value: {
553
+ }
554
+ }?,
555
+ not_equals: {
556
+ key: ::String,
557
+ value: {
558
+ }
559
+ }?,
560
+ greater_than: {
561
+ key: ::String,
562
+ value: {
563
+ }
564
+ }?,
565
+ greater_than_or_equals: {
566
+ key: ::String,
567
+ value: {
568
+ }
569
+ }?,
570
+ less_than: {
571
+ key: ::String,
572
+ value: {
573
+ }
574
+ }?,
575
+ less_than_or_equals: {
576
+ key: ::String,
577
+ value: {
578
+ }
579
+ }?,
580
+ in: {
581
+ key: ::String,
582
+ value: {
583
+ }
584
+ }?,
585
+ not_in: {
586
+ key: ::String,
587
+ value: {
588
+ }
589
+ }?,
590
+ starts_with: {
591
+ key: ::String,
592
+ value: {
593
+ }
594
+ }?,
595
+ list_contains: {
596
+ key: ::String,
597
+ value: {
598
+ }
599
+ }?,
600
+ string_contains: {
601
+ key: ::String,
602
+ value: {
603
+ }
604
+ }?,
605
+ and_all: Array[
606
+ untyped,
607
+ ]?,
608
+ or_all: Array[
609
+ untyped,
610
+ ]?
611
+ }?,
612
+ reranking_configuration: {
613
+ type: ("BEDROCK_RERANKING_MODEL"),
614
+ bedrock_reranking_configuration: {
615
+ model_configuration: {
616
+ model_arn: ::String,
617
+ additional_model_request_fields: Hash[::String, {
618
+ }]?
619
+ },
620
+ number_of_reranked_results: ::Integer?,
621
+ metadata_configuration: {
622
+ selection_mode: ("SELECTIVE" | "ALL"),
623
+ selective_mode_configuration: {
624
+ fields_to_include: Array[
625
+ {
626
+ field_name: ::String
627
+ },
628
+ ]?,
629
+ fields_to_exclude: Array[
630
+ {
631
+ field_name: ::String
632
+ },
633
+ ]?
634
+ }?
635
+ }?
636
+ }?
637
+ }?,
638
+ implicit_filter_configuration: {
639
+ metadata_attributes: Array[
640
+ {
641
+ key: ::String,
642
+ type: ("STRING" | "NUMBER" | "BOOLEAN" | "STRING_LIST"),
643
+ description: ::String
644
+ },
645
+ ],
646
+ model_arn: ::String
647
+ }?
648
+ }
649
+ }?
650
+ },
651
+ ],
652
+ ?guardrail_configuration: {
653
+ guardrail_identifier: ::String,
654
+ guardrail_version: ::String
655
+ },
656
+ ?prompt_override_configuration: {
657
+ prompt_configurations: Array[
658
+ {
659
+ prompt_type: ("PRE_PROCESSING" | "ORCHESTRATION" | "KNOWLEDGE_BASE_RESPONSE_GENERATION" | "POST_PROCESSING" | "ROUTING_CLASSIFIER")?,
660
+ prompt_creation_mode: ("DEFAULT" | "OVERRIDDEN")?,
661
+ prompt_state: ("ENABLED" | "DISABLED")?,
662
+ base_prompt_template: ::String?,
663
+ inference_configuration: {
664
+ temperature: ::Float?,
665
+ top_p: ::Float?,
666
+ top_k: ::Integer?,
667
+ maximum_length: ::Integer?,
668
+ stop_sequences: Array[::String]?
669
+ }?,
670
+ parser_mode: ("DEFAULT" | "OVERRIDDEN")?,
671
+ foundation_model: ::String?,
672
+ additional_model_request_fields: {
673
+ }?
674
+ },
675
+ ],
676
+ override_lambda: ::String?
543
677
  },
678
+ ?agent_collaboration: ("SUPERVISOR" | "SUPERVISOR_ROUTER" | "DISABLED"),
544
679
  ?collaborator_configurations: Array[
545
680
  {
546
- agent_alias_arn: ::String?,
547
- collaborator_instruction: ::String,
548
681
  collaborator_name: ::String,
682
+ collaborator_instruction: ::String,
683
+ agent_alias_arn: ::String?,
549
684
  relay_conversation_history: ("TO_COLLABORATOR" | "DISABLED")?
550
685
  },
551
686
  ],
687
+ ?agent_name: ::String,
688
+ session_id: ::String,
689
+ ?end_session: bool,
690
+ ?enable_trace: bool,
691
+ ?input_text: ::String,
692
+ ?streaming_configurations: {
693
+ stream_final_response: bool?,
694
+ apply_guardrail_interval: ::Integer?
695
+ },
696
+ ?prompt_creation_configurations: {
697
+ previous_conversation_turns_to_include: ::Integer?,
698
+ exclude_previous_thinking_steps: bool?
699
+ },
700
+ ?inline_session_state: {
701
+ session_attributes: Hash[::String, ::String]?,
702
+ prompt_session_attributes: Hash[::String, ::String]?,
703
+ return_control_invocation_results: Array[
704
+ {
705
+ api_result: {
706
+ action_group: ::String,
707
+ http_method: ::String?,
708
+ api_path: ::String?,
709
+ confirmation_state: ("CONFIRM" | "DENY")?,
710
+ response_state: ("FAILURE" | "REPROMPT")?,
711
+ http_status_code: ::Integer?,
712
+ response_body: Hash[::String, {
713
+ body: ::String?,
714
+ images: Array[
715
+ {
716
+ format: ("png" | "jpeg" | "gif" | "webp"),
717
+ source: {
718
+ bytes: ::String?
719
+ }
720
+ },
721
+ ]?
722
+ }]?,
723
+ agent_id: ::String?
724
+ }?,
725
+ function_result: {
726
+ action_group: ::String,
727
+ confirmation_state: ("CONFIRM" | "DENY")?,
728
+ function: ::String?,
729
+ response_body: Hash[::String, {
730
+ body: ::String?,
731
+ images: Array[
732
+ {
733
+ format: ("png" | "jpeg" | "gif" | "webp"),
734
+ source: {
735
+ bytes: ::String?
736
+ }
737
+ },
738
+ ]?
739
+ }]?,
740
+ response_state: ("FAILURE" | "REPROMPT")?,
741
+ agent_id: ::String?
742
+ }?
743
+ },
744
+ ]?,
745
+ invocation_id: ::String?,
746
+ files: Array[
747
+ {
748
+ name: ::String,
749
+ source: {
750
+ source_type: ("S3" | "BYTE_CONTENT"),
751
+ s3_location: {
752
+ uri: ::String
753
+ }?,
754
+ byte_content: {
755
+ media_type: ::String,
756
+ data: ::String
757
+ }?
758
+ },
759
+ use_case: ("CODE_INTERPRETER" | "CHAT")
760
+ },
761
+ ]?,
762
+ conversation_history: {
763
+ messages: Array[
764
+ {
765
+ role: ("user" | "assistant"),
766
+ content: Array[
767
+ {
768
+ text: ::String?
769
+ },
770
+ ]
771
+ },
772
+ ]?
773
+ }?
774
+ },
552
775
  ?collaborators: Array[
553
776
  {
777
+ customer_encryption_key_arn: ::String?,
778
+ foundation_model: ::String,
779
+ instruction: ::String,
780
+ idle_session_ttl_in_seconds: ::Integer?,
554
781
  action_groups: Array[
555
782
  {
783
+ action_group_name: ::String,
784
+ description: ::String?,
785
+ parent_action_group_signature: ("AMAZON.UserInput" | "AMAZON.CodeInterpreter" | "ANTHROPIC.Computer" | "ANTHROPIC.Bash" | "ANTHROPIC.TextEditor")?,
556
786
  action_group_executor: {
557
- custom_control: ("RETURN_CONTROL")?,
558
- lambda: ::String?
787
+ lambda: ::String?,
788
+ custom_control: ("RETURN_CONTROL")?
559
789
  }?,
560
- action_group_name: ::String,
561
790
  api_schema: {
562
- payload: ::String?,
563
791
  s3: {
564
792
  s3_bucket_name: ::String?,
565
793
  s3_object_key: ::String?
566
- }?
794
+ }?,
795
+ payload: ::String?
567
796
  }?,
568
- description: ::String?,
569
797
  function_schema: {
570
798
  functions: Array[
571
799
  {
572
- description: ::String?,
573
800
  name: ::String,
801
+ description: ::String?,
574
802
  parameters: Hash[::String, {
575
803
  description: ::String?,
576
- required: bool?,
577
- type: ("string" | "number" | "integer" | "boolean" | "array")
804
+ type: ("string" | "number" | "integer" | "boolean" | "array"),
805
+ required: bool?
578
806
  }]?,
579
807
  require_confirmation: ("ENABLED" | "DISABLED")?
580
808
  },
581
809
  ]?
582
810
  }?,
583
- parent_action_group_signature: ("AMAZON.UserInput" | "AMAZON.CodeInterpreter" | "ANTHROPIC.Computer" | "ANTHROPIC.Bash" | "ANTHROPIC.TextEditor")?,
584
811
  parent_action_group_signature_params: Hash[::String, ::String]?
585
812
  },
586
813
  ]?,
587
- agent_collaboration: ("SUPERVISOR" | "SUPERVISOR_ROUTER" | "DISABLED")?,
588
- agent_name: ::String?,
589
- collaborator_configurations: Array[
590
- {
591
- agent_alias_arn: ::String?,
592
- collaborator_instruction: ::String,
593
- collaborator_name: ::String,
594
- relay_conversation_history: ("TO_COLLABORATOR" | "DISABLED")?
595
- },
596
- ]?,
597
- customer_encryption_key_arn: ::String?,
598
- foundation_model: ::String,
599
- guardrail_configuration: {
600
- guardrail_identifier: ::String,
601
- guardrail_version: ::String
602
- }?,
603
- idle_session_ttl_in_seconds: ::Integer?,
604
- instruction: ::String,
605
814
  knowledge_bases: Array[
606
815
  {
607
- description: ::String,
608
816
  knowledge_base_id: ::String,
817
+ description: ::String,
609
818
  retrieval_configuration: {
610
819
  vector_search_configuration: {
820
+ number_of_results: ::Integer?,
821
+ override_search_type: ("HYBRID" | "SEMANTIC")?,
611
822
  filter: {
612
- and_all: Array[
613
- untyped,
614
- ]?,
615
823
  equals: {
616
824
  key: ::String,
617
825
  value: {
618
826
  }
619
827
  }?,
620
- greater_than: {
828
+ not_equals: {
621
829
  key: ::String,
622
830
  value: {
623
831
  }
624
832
  }?,
625
- greater_than_or_equals: {
833
+ greater_than: {
626
834
  key: ::String,
627
835
  value: {
628
836
  }
629
837
  }?,
630
- in: {
838
+ greater_than_or_equals: {
631
839
  key: ::String,
632
840
  value: {
633
841
  }
@@ -642,25 +850,22 @@ module Aws
642
850
  value: {
643
851
  }
644
852
  }?,
645
- list_contains: {
853
+ in: {
646
854
  key: ::String,
647
855
  value: {
648
856
  }
649
857
  }?,
650
- not_equals: {
858
+ not_in: {
651
859
  key: ::String,
652
860
  value: {
653
861
  }
654
862
  }?,
655
- not_in: {
863
+ starts_with: {
656
864
  key: ::String,
657
865
  value: {
658
866
  }
659
867
  }?,
660
- or_all: Array[
661
- untyped,
662
- ]?,
663
- starts_with: {
868
+ list_contains: {
664
869
  key: ::String,
665
870
  value: {
666
871
  }
@@ -669,307 +874,102 @@ module Aws
669
874
  key: ::String,
670
875
  value: {
671
876
  }
672
- }?
673
- }?,
674
- implicit_filter_configuration: {
675
- metadata_attributes: Array[
676
- {
677
- description: ::String,
678
- key: ::String,
679
- type: ("STRING" | "NUMBER" | "BOOLEAN" | "STRING_LIST")
680
- },
681
- ],
682
- model_arn: ::String
877
+ }?,
878
+ and_all: Array[
879
+ untyped,
880
+ ]?,
881
+ or_all: Array[
882
+ untyped,
883
+ ]?
683
884
  }?,
684
- number_of_results: ::Integer?,
685
- override_search_type: ("HYBRID" | "SEMANTIC")?,
686
885
  reranking_configuration: {
886
+ type: ("BEDROCK_RERANKING_MODEL"),
687
887
  bedrock_reranking_configuration: {
888
+ model_configuration: {
889
+ model_arn: ::String,
890
+ additional_model_request_fields: Hash[::String, {
891
+ }]?
892
+ },
893
+ number_of_reranked_results: ::Integer?,
688
894
  metadata_configuration: {
689
895
  selection_mode: ("SELECTIVE" | "ALL"),
690
896
  selective_mode_configuration: {
691
- fields_to_exclude: Array[
897
+ fields_to_include: Array[
692
898
  {
693
899
  field_name: ::String
694
900
  },
695
901
  ]?,
696
- fields_to_include: Array[
902
+ fields_to_exclude: Array[
697
903
  {
698
904
  field_name: ::String
699
905
  },
700
906
  ]?
701
907
  }?
702
- }?,
703
- model_configuration: {
704
- additional_model_request_fields: Hash[::String, {
705
- }]?,
706
- model_arn: ::String
908
+ }?
909
+ }?
910
+ }?,
911
+ implicit_filter_configuration: {
912
+ metadata_attributes: Array[
913
+ {
914
+ key: ::String,
915
+ type: ("STRING" | "NUMBER" | "BOOLEAN" | "STRING_LIST"),
916
+ description: ::String
707
917
  },
708
- number_of_reranked_results: ::Integer?
709
- }?,
710
- type: ("BEDROCK_RERANKING_MODEL")
918
+ ],
919
+ model_arn: ::String
711
920
  }?
712
921
  }
713
922
  }?
714
923
  },
715
924
  ]?,
925
+ guardrail_configuration: {
926
+ guardrail_identifier: ::String,
927
+ guardrail_version: ::String
928
+ }?,
716
929
  prompt_override_configuration: {
717
- override_lambda: ::String?,
718
930
  prompt_configurations: Array[
719
931
  {
720
- additional_model_request_fields: {
721
- }?,
932
+ prompt_type: ("PRE_PROCESSING" | "ORCHESTRATION" | "KNOWLEDGE_BASE_RESPONSE_GENERATION" | "POST_PROCESSING" | "ROUTING_CLASSIFIER")?,
933
+ prompt_creation_mode: ("DEFAULT" | "OVERRIDDEN")?,
934
+ prompt_state: ("ENABLED" | "DISABLED")?,
722
935
  base_prompt_template: ::String?,
723
- foundation_model: ::String?,
724
936
  inference_configuration: {
725
- maximum_length: ::Integer?,
726
- stop_sequences: Array[::String]?,
727
937
  temperature: ::Float?,
938
+ top_p: ::Float?,
728
939
  top_k: ::Integer?,
729
- top_p: ::Float?
940
+ maximum_length: ::Integer?,
941
+ stop_sequences: Array[::String]?
730
942
  }?,
731
943
  parser_mode: ("DEFAULT" | "OVERRIDDEN")?,
732
- prompt_creation_mode: ("DEFAULT" | "OVERRIDDEN")?,
733
- prompt_state: ("ENABLED" | "DISABLED")?,
734
- prompt_type: ("PRE_PROCESSING" | "ORCHESTRATION" | "KNOWLEDGE_BASE_RESPONSE_GENERATION" | "POST_PROCESSING" | "ROUTING_CLASSIFIER")?
944
+ foundation_model: ::String?,
945
+ additional_model_request_fields: {
946
+ }?
735
947
  },
736
- ]
737
- }?
948
+ ],
949
+ override_lambda: ::String?
950
+ }?,
951
+ agent_collaboration: ("SUPERVISOR" | "SUPERVISOR_ROUTER" | "DISABLED")?,
952
+ collaborator_configurations: Array[
953
+ {
954
+ collaborator_name: ::String,
955
+ collaborator_instruction: ::String,
956
+ agent_alias_arn: ::String?,
957
+ relay_conversation_history: ("TO_COLLABORATOR" | "DISABLED")?
958
+ },
959
+ ]?,
960
+ agent_name: ::String?
738
961
  },
739
962
  ],
963
+ ?bedrock_model_configurations: {
964
+ performance_config: {
965
+ latency: ("standard" | "optimized")?
966
+ }?
967
+ },
968
+ ?orchestration_type: ("DEFAULT" | "CUSTOM_ORCHESTRATION"),
740
969
  ?custom_orchestration: {
741
970
  executor: {
742
971
  lambda: ::String?
743
972
  }?
744
- },
745
- ?customer_encryption_key_arn: ::String,
746
- ?enable_trace: bool,
747
- ?end_session: bool,
748
- foundation_model: ::String,
749
- ?guardrail_configuration: {
750
- guardrail_identifier: ::String,
751
- guardrail_version: ::String
752
- },
753
- ?idle_session_ttl_in_seconds: ::Integer,
754
- ?inline_session_state: {
755
- conversation_history: {
756
- messages: Array[
757
- {
758
- content: Array[
759
- {
760
- text: ::String?
761
- },
762
- ],
763
- role: ("user" | "assistant")
764
- },
765
- ]?
766
- }?,
767
- files: Array[
768
- {
769
- name: ::String,
770
- source: {
771
- byte_content: {
772
- data: ::String,
773
- media_type: ::String
774
- }?,
775
- s3_location: {
776
- uri: ::String
777
- }?,
778
- source_type: ("S3" | "BYTE_CONTENT")
779
- },
780
- use_case: ("CODE_INTERPRETER" | "CHAT")
781
- },
782
- ]?,
783
- invocation_id: ::String?,
784
- prompt_session_attributes: Hash[::String, ::String]?,
785
- return_control_invocation_results: Array[
786
- {
787
- api_result: {
788
- action_group: ::String,
789
- agent_id: ::String?,
790
- api_path: ::String?,
791
- confirmation_state: ("CONFIRM" | "DENY")?,
792
- http_method: ::String?,
793
- http_status_code: ::Integer?,
794
- response_body: Hash[::String, {
795
- body: ::String?,
796
- images: Array[
797
- {
798
- format: ("png" | "jpeg" | "gif" | "webp"),
799
- source: {
800
- bytes: ::String?
801
- }
802
- },
803
- ]?
804
- }]?,
805
- response_state: ("FAILURE" | "REPROMPT")?
806
- }?,
807
- function_result: {
808
- action_group: ::String,
809
- agent_id: ::String?,
810
- confirmation_state: ("CONFIRM" | "DENY")?,
811
- function: ::String?,
812
- response_body: Hash[::String, {
813
- body: ::String?,
814
- images: Array[
815
- {
816
- format: ("png" | "jpeg" | "gif" | "webp"),
817
- source: {
818
- bytes: ::String?
819
- }
820
- },
821
- ]?
822
- }]?,
823
- response_state: ("FAILURE" | "REPROMPT")?
824
- }?
825
- },
826
- ]?,
827
- session_attributes: Hash[::String, ::String]?
828
- },
829
- ?input_text: ::String,
830
- instruction: ::String,
831
- ?knowledge_bases: Array[
832
- {
833
- description: ::String,
834
- knowledge_base_id: ::String,
835
- retrieval_configuration: {
836
- vector_search_configuration: {
837
- filter: {
838
- and_all: Array[
839
- untyped,
840
- ]?,
841
- equals: {
842
- key: ::String,
843
- value: {
844
- }
845
- }?,
846
- greater_than: {
847
- key: ::String,
848
- value: {
849
- }
850
- }?,
851
- greater_than_or_equals: {
852
- key: ::String,
853
- value: {
854
- }
855
- }?,
856
- in: {
857
- key: ::String,
858
- value: {
859
- }
860
- }?,
861
- less_than: {
862
- key: ::String,
863
- value: {
864
- }
865
- }?,
866
- less_than_or_equals: {
867
- key: ::String,
868
- value: {
869
- }
870
- }?,
871
- list_contains: {
872
- key: ::String,
873
- value: {
874
- }
875
- }?,
876
- not_equals: {
877
- key: ::String,
878
- value: {
879
- }
880
- }?,
881
- not_in: {
882
- key: ::String,
883
- value: {
884
- }
885
- }?,
886
- or_all: Array[
887
- untyped,
888
- ]?,
889
- starts_with: {
890
- key: ::String,
891
- value: {
892
- }
893
- }?,
894
- string_contains: {
895
- key: ::String,
896
- value: {
897
- }
898
- }?
899
- }?,
900
- implicit_filter_configuration: {
901
- metadata_attributes: Array[
902
- {
903
- description: ::String,
904
- key: ::String,
905
- type: ("STRING" | "NUMBER" | "BOOLEAN" | "STRING_LIST")
906
- },
907
- ],
908
- model_arn: ::String
909
- }?,
910
- number_of_results: ::Integer?,
911
- override_search_type: ("HYBRID" | "SEMANTIC")?,
912
- reranking_configuration: {
913
- bedrock_reranking_configuration: {
914
- metadata_configuration: {
915
- selection_mode: ("SELECTIVE" | "ALL"),
916
- selective_mode_configuration: {
917
- fields_to_exclude: Array[
918
- {
919
- field_name: ::String
920
- },
921
- ]?,
922
- fields_to_include: Array[
923
- {
924
- field_name: ::String
925
- },
926
- ]?
927
- }?
928
- }?,
929
- model_configuration: {
930
- additional_model_request_fields: Hash[::String, {
931
- }]?,
932
- model_arn: ::String
933
- },
934
- number_of_reranked_results: ::Integer?
935
- }?,
936
- type: ("BEDROCK_RERANKING_MODEL")
937
- }?
938
- }
939
- }?
940
- },
941
- ],
942
- ?orchestration_type: ("DEFAULT" | "CUSTOM_ORCHESTRATION"),
943
- ?prompt_creation_configurations: {
944
- exclude_previous_thinking_steps: bool?,
945
- previous_conversation_turns_to_include: ::Integer?
946
- },
947
- ?prompt_override_configuration: {
948
- override_lambda: ::String?,
949
- prompt_configurations: Array[
950
- {
951
- additional_model_request_fields: {
952
- }?,
953
- base_prompt_template: ::String?,
954
- foundation_model: ::String?,
955
- inference_configuration: {
956
- maximum_length: ::Integer?,
957
- stop_sequences: Array[::String]?,
958
- temperature: ::Float?,
959
- top_k: ::Integer?,
960
- top_p: ::Float?
961
- }?,
962
- parser_mode: ("DEFAULT" | "OVERRIDDEN")?,
963
- prompt_creation_mode: ("DEFAULT" | "OVERRIDDEN")?,
964
- prompt_state: ("ENABLED" | "DISABLED")?,
965
- prompt_type: ("PRE_PROCESSING" | "ORCHESTRATION" | "KNOWLEDGE_BASE_RESPONSE_GENERATION" | "POST_PROCESSING" | "ROUTING_CLASSIFIER")?
966
- },
967
- ]
968
- },
969
- session_id: ::String,
970
- ?streaming_configurations: {
971
- apply_guardrail_interval: ::Integer?,
972
- stream_final_response: bool?
973
973
  }
974
974
  ) ?{ (*untyped) -> void } -> _InvokeInlineAgentResponseSuccess
975
975
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _InvokeInlineAgentResponseSuccess
@@ -981,12 +981,12 @@ module Aws
981
981
  end
982
982
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#list_flow_execution_events-instance_method
983
983
  def list_flow_execution_events: (
984
- event_type: ("Node" | "Flow"),
985
- execution_identifier: ::String,
986
- flow_alias_identifier: ::String,
987
984
  flow_identifier: ::String,
985
+ flow_alias_identifier: ::String,
986
+ execution_identifier: ::String,
988
987
  ?max_results: ::Integer,
989
- ?next_token: ::String
988
+ ?next_token: ::String,
989
+ event_type: ("Node" | "Flow")
990
990
  ) -> _ListFlowExecutionEventsResponseSuccess
991
991
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListFlowExecutionEventsResponseSuccess
992
992
 
@@ -997,8 +997,8 @@ module Aws
997
997
  end
998
998
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#list_flow_executions-instance_method
999
999
  def list_flow_executions: (
1000
- ?flow_alias_identifier: ::String,
1001
1000
  flow_identifier: ::String,
1001
+ ?flow_alias_identifier: ::String,
1002
1002
  ?max_results: ::Integer,
1003
1003
  ?next_token: ::String
1004
1004
  ) -> _ListFlowExecutionsResponseSuccess
@@ -1012,8 +1012,8 @@ module Aws
1012
1012
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#list_invocation_steps-instance_method
1013
1013
  def list_invocation_steps: (
1014
1014
  ?invocation_identifier: ::String,
1015
- ?max_results: ::Integer,
1016
1015
  ?next_token: ::String,
1016
+ ?max_results: ::Integer,
1017
1017
  session_identifier: ::String
1018
1018
  ) -> _ListInvocationStepsResponseSuccess
1019
1019
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListInvocationStepsResponseSuccess
@@ -1025,16 +1025,16 @@ module Aws
1025
1025
  end
1026
1026
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#list_invocations-instance_method
1027
1027
  def list_invocations: (
1028
- ?max_results: ::Integer,
1029
1028
  ?next_token: ::String,
1029
+ ?max_results: ::Integer,
1030
1030
  session_identifier: ::String
1031
1031
  ) -> _ListInvocationsResponseSuccess
1032
1032
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListInvocationsResponseSuccess
1033
1033
 
1034
1034
  interface _ListSessionsResponseSuccess
1035
1035
  include ::Seahorse::Client::_ResponseSuccess[Types::ListSessionsResponse]
1036
- def next_token: () -> ::String
1037
1036
  def session_summaries: () -> ::Array[Types::SessionSummary]
1037
+ def next_token: () -> ::String
1038
1038
  end
1039
1039
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#list_sessions-instance_method
1040
1040
  def list_sessions: (
@@ -1074,12 +1074,13 @@ module Aws
1074
1074
  end
1075
1075
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#put_invocation_step-instance_method
1076
1076
  def put_invocation_step: (
1077
+ session_identifier: ::String,
1077
1078
  invocation_identifier: ::String,
1078
- ?invocation_step_id: ::String,
1079
1079
  invocation_step_time: ::Time,
1080
1080
  payload: {
1081
1081
  content_blocks: Array[
1082
1082
  {
1083
+ text: ::String?,
1083
1084
  image: {
1084
1085
  format: ("png" | "jpeg" | "gif" | "webp"),
1085
1086
  source: {
@@ -1088,94 +1089,90 @@ module Aws
1088
1089
  uri: ::String
1089
1090
  }?
1090
1091
  }
1091
- }?,
1092
- text: ::String?
1092
+ }?
1093
1093
  },
1094
1094
  ]?
1095
1095
  },
1096
- session_identifier: ::String
1096
+ ?invocation_step_id: ::String
1097
1097
  ) -> _PutInvocationStepResponseSuccess
1098
1098
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutInvocationStepResponseSuccess
1099
1099
 
1100
1100
  interface _RerankResponseSuccess
1101
1101
  include ::Seahorse::Client::_ResponseSuccess[Types::RerankResponse]
1102
- def next_token: () -> ::String
1103
1102
  def results: () -> ::Array[Types::RerankResult]
1103
+ def next_token: () -> ::String
1104
1104
  end
1105
1105
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#rerank-instance_method
1106
1106
  def rerank: (
1107
- ?next_token: ::String,
1108
1107
  queries: Array[
1109
1108
  {
1109
+ type: ("TEXT"),
1110
1110
  text_query: {
1111
- text: ::String?
1112
- },
1113
- type: ("TEXT")
1114
- },
1115
- ],
1116
- reranking_configuration: {
1117
- bedrock_reranking_configuration: {
1118
- model_configuration: {
1119
- additional_model_request_fields: Hash[::String, {
1120
- }]?,
1121
- model_arn: ::String
1122
- },
1123
- number_of_results: ::Integer?
1111
+ text: ::String?
1112
+ }
1124
1113
  },
1125
- type: ("BEDROCK_RERANKING_MODEL")
1126
- },
1114
+ ],
1127
1115
  sources: Array[
1128
1116
  {
1117
+ type: ("INLINE"),
1129
1118
  inline_document_source: {
1130
- json_document: {
1131
- }?,
1119
+ type: ("TEXT" | "JSON"),
1132
1120
  text_document: {
1133
1121
  text: ::String?
1134
1122
  }?,
1135
- type: ("TEXT" | "JSON")
1136
- },
1137
- type: ("INLINE")
1123
+ json_document: {
1124
+ }?
1125
+ }
1138
1126
  },
1139
- ]
1127
+ ],
1128
+ reranking_configuration: {
1129
+ type: ("BEDROCK_RERANKING_MODEL"),
1130
+ bedrock_reranking_configuration: {
1131
+ number_of_results: ::Integer?,
1132
+ model_configuration: {
1133
+ model_arn: ::String,
1134
+ additional_model_request_fields: Hash[::String, {
1135
+ }]?
1136
+ }
1137
+ }
1138
+ },
1139
+ ?next_token: ::String
1140
1140
  ) -> _RerankResponseSuccess
1141
1141
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RerankResponseSuccess
1142
1142
 
1143
1143
  interface _RetrieveResponseSuccess
1144
1144
  include ::Seahorse::Client::_ResponseSuccess[Types::RetrieveResponse]
1145
+ def retrieval_results: () -> ::Array[Types::KnowledgeBaseRetrievalResult]
1145
1146
  def guardrail_action: () -> ("INTERVENED" | "NONE")
1146
1147
  def next_token: () -> ::String
1147
- def retrieval_results: () -> ::Array[Types::KnowledgeBaseRetrievalResult]
1148
1148
  end
1149
1149
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#retrieve-instance_method
1150
1150
  def retrieve: (
1151
- ?guardrail_configuration: {
1152
- guardrail_id: ::String,
1153
- guardrail_version: ::String
1154
- },
1155
1151
  knowledge_base_id: ::String,
1156
- ?next_token: ::String,
1152
+ retrieval_query: {
1153
+ text: ::String
1154
+ },
1157
1155
  ?retrieval_configuration: {
1158
1156
  vector_search_configuration: {
1157
+ number_of_results: ::Integer?,
1158
+ override_search_type: ("HYBRID" | "SEMANTIC")?,
1159
1159
  filter: {
1160
- and_all: Array[
1161
- untyped,
1162
- ]?,
1163
1160
  equals: {
1164
1161
  key: ::String,
1165
1162
  value: {
1166
1163
  }
1167
1164
  }?,
1168
- greater_than: {
1165
+ not_equals: {
1169
1166
  key: ::String,
1170
1167
  value: {
1171
1168
  }
1172
1169
  }?,
1173
- greater_than_or_equals: {
1170
+ greater_than: {
1174
1171
  key: ::String,
1175
1172
  value: {
1176
1173
  }
1177
1174
  }?,
1178
- in: {
1175
+ greater_than_or_equals: {
1179
1176
  key: ::String,
1180
1177
  value: {
1181
1178
  }
@@ -1190,25 +1187,22 @@ module Aws
1190
1187
  value: {
1191
1188
  }
1192
1189
  }?,
1193
- list_contains: {
1190
+ in: {
1194
1191
  key: ::String,
1195
1192
  value: {
1196
1193
  }
1197
1194
  }?,
1198
- not_equals: {
1195
+ not_in: {
1199
1196
  key: ::String,
1200
1197
  value: {
1201
1198
  }
1202
1199
  }?,
1203
- not_in: {
1200
+ starts_with: {
1204
1201
  key: ::String,
1205
1202
  value: {
1206
1203
  }
1207
1204
  }?,
1208
- or_all: Array[
1209
- untyped,
1210
- ]?,
1211
- starts_with: {
1205
+ list_contains: {
1212
1206
  key: ::String,
1213
1207
  value: {
1214
1208
  }
@@ -1217,173 +1211,99 @@ module Aws
1217
1211
  key: ::String,
1218
1212
  value: {
1219
1213
  }
1220
- }?
1221
- }?,
1222
- implicit_filter_configuration: {
1223
- metadata_attributes: Array[
1224
- {
1225
- description: ::String,
1226
- key: ::String,
1227
- type: ("STRING" | "NUMBER" | "BOOLEAN" | "STRING_LIST")
1228
- },
1229
- ],
1230
- model_arn: ::String
1214
+ }?,
1215
+ and_all: Array[
1216
+ untyped,
1217
+ ]?,
1218
+ or_all: Array[
1219
+ untyped,
1220
+ ]?
1231
1221
  }?,
1232
- number_of_results: ::Integer?,
1233
- override_search_type: ("HYBRID" | "SEMANTIC")?,
1234
1222
  reranking_configuration: {
1223
+ type: ("BEDROCK_RERANKING_MODEL"),
1235
1224
  bedrock_reranking_configuration: {
1225
+ model_configuration: {
1226
+ model_arn: ::String,
1227
+ additional_model_request_fields: Hash[::String, {
1228
+ }]?
1229
+ },
1230
+ number_of_reranked_results: ::Integer?,
1236
1231
  metadata_configuration: {
1237
1232
  selection_mode: ("SELECTIVE" | "ALL"),
1238
1233
  selective_mode_configuration: {
1239
- fields_to_exclude: Array[
1234
+ fields_to_include: Array[
1240
1235
  {
1241
1236
  field_name: ::String
1242
1237
  },
1243
1238
  ]?,
1244
- fields_to_include: Array[
1239
+ fields_to_exclude: Array[
1245
1240
  {
1246
1241
  field_name: ::String
1247
1242
  },
1248
1243
  ]?
1249
1244
  }?
1250
- }?,
1251
- model_configuration: {
1252
- additional_model_request_fields: Hash[::String, {
1253
- }]?,
1254
- model_arn: ::String
1245
+ }?
1246
+ }?
1247
+ }?,
1248
+ implicit_filter_configuration: {
1249
+ metadata_attributes: Array[
1250
+ {
1251
+ key: ::String,
1252
+ type: ("STRING" | "NUMBER" | "BOOLEAN" | "STRING_LIST"),
1253
+ description: ::String
1255
1254
  },
1256
- number_of_reranked_results: ::Integer?
1257
- }?,
1258
- type: ("BEDROCK_RERANKING_MODEL")
1255
+ ],
1256
+ model_arn: ::String
1259
1257
  }?
1260
1258
  }
1261
1259
  },
1262
- retrieval_query: {
1263
- text: ::String
1264
- }
1260
+ ?guardrail_configuration: {
1261
+ guardrail_id: ::String,
1262
+ guardrail_version: ::String
1263
+ },
1264
+ ?next_token: ::String
1265
1265
  ) -> _RetrieveResponseSuccess
1266
1266
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RetrieveResponseSuccess
1267
1267
 
1268
1268
  interface _RetrieveAndGenerateResponseSuccess
1269
1269
  include ::Seahorse::Client::_ResponseSuccess[Types::RetrieveAndGenerateResponse]
1270
+ def session_id: () -> ::String
1271
+ def output: () -> Types::RetrieveAndGenerateOutput
1270
1272
  def citations: () -> ::Array[Types::Citation]
1271
1273
  def guardrail_action: () -> ("INTERVENED" | "NONE")
1272
- def output: () -> Types::RetrieveAndGenerateOutput
1273
- def session_id: () -> ::String
1274
1274
  end
1275
1275
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#retrieve_and_generate-instance_method
1276
1276
  def retrieve_and_generate: (
1277
+ ?session_id: ::String,
1277
1278
  input: {
1278
1279
  text: ::String
1279
1280
  },
1280
1281
  ?retrieve_and_generate_configuration: {
1281
- external_sources_configuration: {
1282
- generation_configuration: {
1283
- additional_model_request_fields: Hash[::String, {
1284
- }]?,
1285
- guardrail_configuration: {
1286
- guardrail_id: ::String,
1287
- guardrail_version: ::String
1288
- }?,
1289
- inference_config: {
1290
- text_inference_config: {
1291
- max_tokens: ::Integer?,
1292
- stop_sequences: Array[::String]?,
1293
- temperature: ::Float?,
1294
- top_p: ::Float?
1295
- }?
1296
- }?,
1297
- performance_config: {
1298
- latency: ("standard" | "optimized")?
1299
- }?,
1300
- prompt_template: {
1301
- text_prompt_template: ::String?
1302
- }?
1303
- }?,
1304
- model_arn: ::String,
1305
- sources: Array[
1306
- {
1307
- byte_content: {
1308
- content_type: ::String,
1309
- data: ::String,
1310
- identifier: ::String
1311
- }?,
1312
- s3_location: {
1313
- uri: ::String
1314
- }?,
1315
- source_type: ("S3" | "BYTE_CONTENT")
1316
- },
1317
- ]
1318
- }?,
1282
+ type: ("KNOWLEDGE_BASE" | "EXTERNAL_SOURCES"),
1319
1283
  knowledge_base_configuration: {
1320
- generation_configuration: {
1321
- additional_model_request_fields: Hash[::String, {
1322
- }]?,
1323
- guardrail_configuration: {
1324
- guardrail_id: ::String,
1325
- guardrail_version: ::String
1326
- }?,
1327
- inference_config: {
1328
- text_inference_config: {
1329
- max_tokens: ::Integer?,
1330
- stop_sequences: Array[::String]?,
1331
- temperature: ::Float?,
1332
- top_p: ::Float?
1333
- }?
1334
- }?,
1335
- performance_config: {
1336
- latency: ("standard" | "optimized")?
1337
- }?,
1338
- prompt_template: {
1339
- text_prompt_template: ::String?
1340
- }?
1341
- }?,
1342
1284
  knowledge_base_id: ::String,
1343
1285
  model_arn: ::String,
1344
- orchestration_configuration: {
1345
- additional_model_request_fields: Hash[::String, {
1346
- }]?,
1347
- inference_config: {
1348
- text_inference_config: {
1349
- max_tokens: ::Integer?,
1350
- stop_sequences: Array[::String]?,
1351
- temperature: ::Float?,
1352
- top_p: ::Float?
1353
- }?
1354
- }?,
1355
- performance_config: {
1356
- latency: ("standard" | "optimized")?
1357
- }?,
1358
- prompt_template: {
1359
- text_prompt_template: ::String?
1360
- }?,
1361
- query_transformation_configuration: {
1362
- type: ("QUERY_DECOMPOSITION")
1363
- }?
1364
- }?,
1365
1286
  retrieval_configuration: {
1366
1287
  vector_search_configuration: {
1288
+ number_of_results: ::Integer?,
1289
+ override_search_type: ("HYBRID" | "SEMANTIC")?,
1367
1290
  filter: {
1368
- and_all: Array[
1369
- untyped,
1370
- ]?,
1371
1291
  equals: {
1372
1292
  key: ::String,
1373
1293
  value: {
1374
1294
  }
1375
1295
  }?,
1376
- greater_than: {
1296
+ not_equals: {
1377
1297
  key: ::String,
1378
1298
  value: {
1379
1299
  }
1380
1300
  }?,
1381
- greater_than_or_equals: {
1301
+ greater_than: {
1382
1302
  key: ::String,
1383
1303
  value: {
1384
1304
  }
1385
1305
  }?,
1386
- in: {
1306
+ greater_than_or_equals: {
1387
1307
  key: ::String,
1388
1308
  value: {
1389
1309
  }
@@ -1398,25 +1318,22 @@ module Aws
1398
1318
  value: {
1399
1319
  }
1400
1320
  }?,
1401
- list_contains: {
1321
+ in: {
1402
1322
  key: ::String,
1403
1323
  value: {
1404
1324
  }
1405
1325
  }?,
1406
- not_equals: {
1326
+ not_in: {
1407
1327
  key: ::String,
1408
1328
  value: {
1409
1329
  }
1410
1330
  }?,
1411
- not_in: {
1331
+ starts_with: {
1412
1332
  key: ::String,
1413
1333
  value: {
1414
1334
  }
1415
1335
  }?,
1416
- or_all: Array[
1417
- untyped,
1418
- ]?,
1419
- starts_with: {
1336
+ list_contains: {
1420
1337
  key: ::String,
1421
1338
  value: {
1422
1339
  }
@@ -1425,175 +1342,178 @@ module Aws
1425
1342
  key: ::String,
1426
1343
  value: {
1427
1344
  }
1428
- }?
1429
- }?,
1430
- implicit_filter_configuration: {
1431
- metadata_attributes: Array[
1432
- {
1433
- description: ::String,
1434
- key: ::String,
1435
- type: ("STRING" | "NUMBER" | "BOOLEAN" | "STRING_LIST")
1436
- },
1437
- ],
1438
- model_arn: ::String
1345
+ }?,
1346
+ and_all: Array[
1347
+ untyped,
1348
+ ]?,
1349
+ or_all: Array[
1350
+ untyped,
1351
+ ]?
1439
1352
  }?,
1440
- number_of_results: ::Integer?,
1441
- override_search_type: ("HYBRID" | "SEMANTIC")?,
1442
1353
  reranking_configuration: {
1354
+ type: ("BEDROCK_RERANKING_MODEL"),
1443
1355
  bedrock_reranking_configuration: {
1356
+ model_configuration: {
1357
+ model_arn: ::String,
1358
+ additional_model_request_fields: Hash[::String, {
1359
+ }]?
1360
+ },
1361
+ number_of_reranked_results: ::Integer?,
1444
1362
  metadata_configuration: {
1445
1363
  selection_mode: ("SELECTIVE" | "ALL"),
1446
1364
  selective_mode_configuration: {
1447
- fields_to_exclude: Array[
1365
+ fields_to_include: Array[
1448
1366
  {
1449
1367
  field_name: ::String
1450
1368
  },
1451
1369
  ]?,
1452
- fields_to_include: Array[
1370
+ fields_to_exclude: Array[
1453
1371
  {
1454
1372
  field_name: ::String
1455
1373
  },
1456
1374
  ]?
1457
1375
  }?
1458
- }?,
1459
- model_configuration: {
1460
- additional_model_request_fields: Hash[::String, {
1461
- }]?,
1462
- model_arn: ::String
1376
+ }?
1377
+ }?
1378
+ }?,
1379
+ implicit_filter_configuration: {
1380
+ metadata_attributes: Array[
1381
+ {
1382
+ key: ::String,
1383
+ type: ("STRING" | "NUMBER" | "BOOLEAN" | "STRING_LIST"),
1384
+ description: ::String
1463
1385
  },
1464
- number_of_reranked_results: ::Integer?
1465
- }?,
1466
- type: ("BEDROCK_RERANKING_MODEL")
1386
+ ],
1387
+ model_arn: ::String
1467
1388
  }?
1468
1389
  }
1390
+ }?,
1391
+ generation_configuration: {
1392
+ prompt_template: {
1393
+ text_prompt_template: ::String?
1394
+ }?,
1395
+ guardrail_configuration: {
1396
+ guardrail_id: ::String,
1397
+ guardrail_version: ::String
1398
+ }?,
1399
+ inference_config: {
1400
+ text_inference_config: {
1401
+ temperature: ::Float?,
1402
+ top_p: ::Float?,
1403
+ max_tokens: ::Integer?,
1404
+ stop_sequences: Array[::String]?
1405
+ }?
1406
+ }?,
1407
+ additional_model_request_fields: Hash[::String, {
1408
+ }]?,
1409
+ performance_config: {
1410
+ latency: ("standard" | "optimized")?
1411
+ }?
1412
+ }?,
1413
+ orchestration_configuration: {
1414
+ prompt_template: {
1415
+ text_prompt_template: ::String?
1416
+ }?,
1417
+ inference_config: {
1418
+ text_inference_config: {
1419
+ temperature: ::Float?,
1420
+ top_p: ::Float?,
1421
+ max_tokens: ::Integer?,
1422
+ stop_sequences: Array[::String]?
1423
+ }?
1424
+ }?,
1425
+ additional_model_request_fields: Hash[::String, {
1426
+ }]?,
1427
+ query_transformation_configuration: {
1428
+ type: ("QUERY_DECOMPOSITION")
1429
+ }?,
1430
+ performance_config: {
1431
+ latency: ("standard" | "optimized")?
1432
+ }?
1469
1433
  }?
1470
1434
  }?,
1471
- type: ("KNOWLEDGE_BASE" | "EXTERNAL_SOURCES")
1435
+ external_sources_configuration: {
1436
+ model_arn: ::String,
1437
+ sources: Array[
1438
+ {
1439
+ source_type: ("S3" | "BYTE_CONTENT"),
1440
+ s3_location: {
1441
+ uri: ::String
1442
+ }?,
1443
+ byte_content: {
1444
+ identifier: ::String,
1445
+ content_type: ::String,
1446
+ data: ::String
1447
+ }?
1448
+ },
1449
+ ],
1450
+ generation_configuration: {
1451
+ prompt_template: {
1452
+ text_prompt_template: ::String?
1453
+ }?,
1454
+ guardrail_configuration: {
1455
+ guardrail_id: ::String,
1456
+ guardrail_version: ::String
1457
+ }?,
1458
+ inference_config: {
1459
+ text_inference_config: {
1460
+ temperature: ::Float?,
1461
+ top_p: ::Float?,
1462
+ max_tokens: ::Integer?,
1463
+ stop_sequences: Array[::String]?
1464
+ }?
1465
+ }?,
1466
+ additional_model_request_fields: Hash[::String, {
1467
+ }]?,
1468
+ performance_config: {
1469
+ latency: ("standard" | "optimized")?
1470
+ }?
1471
+ }?
1472
+ }?
1472
1473
  },
1473
1474
  ?session_configuration: {
1474
1475
  kms_key_arn: ::String
1475
- },
1476
- ?session_id: ::String
1476
+ }
1477
1477
  ) -> _RetrieveAndGenerateResponseSuccess
1478
1478
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RetrieveAndGenerateResponseSuccess
1479
1479
 
1480
1480
  interface _RetrieveAndGenerateStreamResponseSuccess
1481
1481
  include ::Seahorse::Client::_ResponseSuccess[Types::RetrieveAndGenerateStreamResponse]
1482
- def session_id: () -> ::String
1483
1482
  def stream: () -> Types::RetrieveAndGenerateStreamResponseOutput
1483
+ def session_id: () -> ::String
1484
1484
  end
1485
1485
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#retrieve_and_generate_stream-instance_method
1486
1486
  def retrieve_and_generate_stream: (
1487
+ ?session_id: ::String,
1487
1488
  input: {
1488
1489
  text: ::String
1489
1490
  },
1490
1491
  ?retrieve_and_generate_configuration: {
1491
- external_sources_configuration: {
1492
- generation_configuration: {
1493
- additional_model_request_fields: Hash[::String, {
1494
- }]?,
1495
- guardrail_configuration: {
1496
- guardrail_id: ::String,
1497
- guardrail_version: ::String
1498
- }?,
1499
- inference_config: {
1500
- text_inference_config: {
1501
- max_tokens: ::Integer?,
1502
- stop_sequences: Array[::String]?,
1503
- temperature: ::Float?,
1504
- top_p: ::Float?
1505
- }?
1506
- }?,
1507
- performance_config: {
1508
- latency: ("standard" | "optimized")?
1509
- }?,
1510
- prompt_template: {
1511
- text_prompt_template: ::String?
1512
- }?
1513
- }?,
1514
- model_arn: ::String,
1515
- sources: Array[
1516
- {
1517
- byte_content: {
1518
- content_type: ::String,
1519
- data: ::String,
1520
- identifier: ::String
1521
- }?,
1522
- s3_location: {
1523
- uri: ::String
1524
- }?,
1525
- source_type: ("S3" | "BYTE_CONTENT")
1526
- },
1527
- ]
1528
- }?,
1492
+ type: ("KNOWLEDGE_BASE" | "EXTERNAL_SOURCES"),
1529
1493
  knowledge_base_configuration: {
1530
- generation_configuration: {
1531
- additional_model_request_fields: Hash[::String, {
1532
- }]?,
1533
- guardrail_configuration: {
1534
- guardrail_id: ::String,
1535
- guardrail_version: ::String
1536
- }?,
1537
- inference_config: {
1538
- text_inference_config: {
1539
- max_tokens: ::Integer?,
1540
- stop_sequences: Array[::String]?,
1541
- temperature: ::Float?,
1542
- top_p: ::Float?
1543
- }?
1544
- }?,
1545
- performance_config: {
1546
- latency: ("standard" | "optimized")?
1547
- }?,
1548
- prompt_template: {
1549
- text_prompt_template: ::String?
1550
- }?
1551
- }?,
1552
1494
  knowledge_base_id: ::String,
1553
1495
  model_arn: ::String,
1554
- orchestration_configuration: {
1555
- additional_model_request_fields: Hash[::String, {
1556
- }]?,
1557
- inference_config: {
1558
- text_inference_config: {
1559
- max_tokens: ::Integer?,
1560
- stop_sequences: Array[::String]?,
1561
- temperature: ::Float?,
1562
- top_p: ::Float?
1563
- }?
1564
- }?,
1565
- performance_config: {
1566
- latency: ("standard" | "optimized")?
1567
- }?,
1568
- prompt_template: {
1569
- text_prompt_template: ::String?
1570
- }?,
1571
- query_transformation_configuration: {
1572
- type: ("QUERY_DECOMPOSITION")
1573
- }?
1574
- }?,
1575
1496
  retrieval_configuration: {
1576
1497
  vector_search_configuration: {
1498
+ number_of_results: ::Integer?,
1499
+ override_search_type: ("HYBRID" | "SEMANTIC")?,
1577
1500
  filter: {
1578
- and_all: Array[
1579
- untyped,
1580
- ]?,
1581
1501
  equals: {
1582
1502
  key: ::String,
1583
1503
  value: {
1584
1504
  }
1585
1505
  }?,
1586
- greater_than: {
1506
+ not_equals: {
1587
1507
  key: ::String,
1588
1508
  value: {
1589
1509
  }
1590
1510
  }?,
1591
- greater_than_or_equals: {
1511
+ greater_than: {
1592
1512
  key: ::String,
1593
1513
  value: {
1594
1514
  }
1595
1515
  }?,
1596
- in: {
1516
+ greater_than_or_equals: {
1597
1517
  key: ::String,
1598
1518
  value: {
1599
1519
  }
@@ -1608,25 +1528,22 @@ module Aws
1608
1528
  value: {
1609
1529
  }
1610
1530
  }?,
1611
- list_contains: {
1531
+ in: {
1612
1532
  key: ::String,
1613
1533
  value: {
1614
1534
  }
1615
1535
  }?,
1616
- not_equals: {
1536
+ not_in: {
1617
1537
  key: ::String,
1618
1538
  value: {
1619
1539
  }
1620
1540
  }?,
1621
- not_in: {
1541
+ starts_with: {
1622
1542
  key: ::String,
1623
1543
  value: {
1624
1544
  }
1625
1545
  }?,
1626
- or_all: Array[
1627
- untyped,
1628
- ]?,
1629
- starts_with: {
1546
+ list_contains: {
1630
1547
  key: ::String,
1631
1548
  value: {
1632
1549
  }
@@ -1635,55 +1552,138 @@ module Aws
1635
1552
  key: ::String,
1636
1553
  value: {
1637
1554
  }
1638
- }?
1639
- }?,
1640
- implicit_filter_configuration: {
1641
- metadata_attributes: Array[
1642
- {
1643
- description: ::String,
1644
- key: ::String,
1645
- type: ("STRING" | "NUMBER" | "BOOLEAN" | "STRING_LIST")
1646
- },
1647
- ],
1648
- model_arn: ::String
1555
+ }?,
1556
+ and_all: Array[
1557
+ untyped,
1558
+ ]?,
1559
+ or_all: Array[
1560
+ untyped,
1561
+ ]?
1649
1562
  }?,
1650
- number_of_results: ::Integer?,
1651
- override_search_type: ("HYBRID" | "SEMANTIC")?,
1652
1563
  reranking_configuration: {
1564
+ type: ("BEDROCK_RERANKING_MODEL"),
1653
1565
  bedrock_reranking_configuration: {
1566
+ model_configuration: {
1567
+ model_arn: ::String,
1568
+ additional_model_request_fields: Hash[::String, {
1569
+ }]?
1570
+ },
1571
+ number_of_reranked_results: ::Integer?,
1654
1572
  metadata_configuration: {
1655
1573
  selection_mode: ("SELECTIVE" | "ALL"),
1656
1574
  selective_mode_configuration: {
1657
- fields_to_exclude: Array[
1575
+ fields_to_include: Array[
1658
1576
  {
1659
1577
  field_name: ::String
1660
1578
  },
1661
1579
  ]?,
1662
- fields_to_include: Array[
1580
+ fields_to_exclude: Array[
1663
1581
  {
1664
1582
  field_name: ::String
1665
1583
  },
1666
1584
  ]?
1667
1585
  }?
1668
- }?,
1669
- model_configuration: {
1670
- additional_model_request_fields: Hash[::String, {
1671
- }]?,
1672
- model_arn: ::String
1586
+ }?
1587
+ }?
1588
+ }?,
1589
+ implicit_filter_configuration: {
1590
+ metadata_attributes: Array[
1591
+ {
1592
+ key: ::String,
1593
+ type: ("STRING" | "NUMBER" | "BOOLEAN" | "STRING_LIST"),
1594
+ description: ::String
1673
1595
  },
1674
- number_of_reranked_results: ::Integer?
1675
- }?,
1676
- type: ("BEDROCK_RERANKING_MODEL")
1596
+ ],
1597
+ model_arn: ::String
1677
1598
  }?
1678
1599
  }
1600
+ }?,
1601
+ generation_configuration: {
1602
+ prompt_template: {
1603
+ text_prompt_template: ::String?
1604
+ }?,
1605
+ guardrail_configuration: {
1606
+ guardrail_id: ::String,
1607
+ guardrail_version: ::String
1608
+ }?,
1609
+ inference_config: {
1610
+ text_inference_config: {
1611
+ temperature: ::Float?,
1612
+ top_p: ::Float?,
1613
+ max_tokens: ::Integer?,
1614
+ stop_sequences: Array[::String]?
1615
+ }?
1616
+ }?,
1617
+ additional_model_request_fields: Hash[::String, {
1618
+ }]?,
1619
+ performance_config: {
1620
+ latency: ("standard" | "optimized")?
1621
+ }?
1622
+ }?,
1623
+ orchestration_configuration: {
1624
+ prompt_template: {
1625
+ text_prompt_template: ::String?
1626
+ }?,
1627
+ inference_config: {
1628
+ text_inference_config: {
1629
+ temperature: ::Float?,
1630
+ top_p: ::Float?,
1631
+ max_tokens: ::Integer?,
1632
+ stop_sequences: Array[::String]?
1633
+ }?
1634
+ }?,
1635
+ additional_model_request_fields: Hash[::String, {
1636
+ }]?,
1637
+ query_transformation_configuration: {
1638
+ type: ("QUERY_DECOMPOSITION")
1639
+ }?,
1640
+ performance_config: {
1641
+ latency: ("standard" | "optimized")?
1642
+ }?
1679
1643
  }?
1680
1644
  }?,
1681
- type: ("KNOWLEDGE_BASE" | "EXTERNAL_SOURCES")
1645
+ external_sources_configuration: {
1646
+ model_arn: ::String,
1647
+ sources: Array[
1648
+ {
1649
+ source_type: ("S3" | "BYTE_CONTENT"),
1650
+ s3_location: {
1651
+ uri: ::String
1652
+ }?,
1653
+ byte_content: {
1654
+ identifier: ::String,
1655
+ content_type: ::String,
1656
+ data: ::String
1657
+ }?
1658
+ },
1659
+ ],
1660
+ generation_configuration: {
1661
+ prompt_template: {
1662
+ text_prompt_template: ::String?
1663
+ }?,
1664
+ guardrail_configuration: {
1665
+ guardrail_id: ::String,
1666
+ guardrail_version: ::String
1667
+ }?,
1668
+ inference_config: {
1669
+ text_inference_config: {
1670
+ temperature: ::Float?,
1671
+ top_p: ::Float?,
1672
+ max_tokens: ::Integer?,
1673
+ stop_sequences: Array[::String]?
1674
+ }?
1675
+ }?,
1676
+ additional_model_request_fields: Hash[::String, {
1677
+ }]?,
1678
+ performance_config: {
1679
+ latency: ("standard" | "optimized")?
1680
+ }?
1681
+ }?
1682
+ }?
1682
1683
  },
1683
1684
  ?session_configuration: {
1684
1685
  kms_key_arn: ::String
1685
- },
1686
- ?session_id: ::String
1686
+ }
1687
1687
  ) ?{ (*untyped) -> void } -> _RetrieveAndGenerateStreamResponseSuccess
1688
1688
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _RetrieveAndGenerateStreamResponseSuccess
1689
1689
 
@@ -1693,18 +1693,18 @@ module Aws
1693
1693
  end
1694
1694
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#start_flow_execution-instance_method
1695
1695
  def start_flow_execution: (
1696
+ flow_identifier: ::String,
1696
1697
  flow_alias_identifier: ::String,
1697
1698
  ?flow_execution_name: ::String,
1698
- flow_identifier: ::String,
1699
1699
  inputs: Array[
1700
1700
  {
1701
+ node_name: ::String,
1702
+ node_output_name: ::String?,
1701
1703
  content: {
1702
1704
  document: {
1703
1705
  }?
1704
1706
  },
1705
- node_input_name: ::String?,
1706
- node_name: ::String,
1707
- node_output_name: ::String?
1707
+ node_input_name: ::String?
1708
1708
  },
1709
1709
  ],
1710
1710
  ?model_performance_configuration: {
@@ -1722,9 +1722,9 @@ module Aws
1722
1722
  end
1723
1723
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#stop_flow_execution-instance_method
1724
1724
  def stop_flow_execution: (
1725
- execution_identifier: ::String,
1725
+ flow_identifier: ::String,
1726
1726
  flow_alias_identifier: ::String,
1727
- flow_identifier: ::String
1727
+ execution_identifier: ::String
1728
1728
  ) -> _StopFlowExecutionResponseSuccess
1729
1729
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StopFlowExecutionResponseSuccess
1730
1730
 
@@ -1750,16 +1750,16 @@ module Aws
1750
1750
 
1751
1751
  interface _UpdateSessionResponseSuccess
1752
1752
  include ::Seahorse::Client::_ResponseSuccess[Types::UpdateSessionResponse]
1753
- def created_at: () -> ::Time
1754
- def last_updated_at: () -> ::Time
1755
- def session_arn: () -> ::String
1756
1753
  def session_id: () -> ::String
1754
+ def session_arn: () -> ::String
1757
1755
  def session_status: () -> ("ACTIVE" | "EXPIRED" | "ENDED")
1756
+ def created_at: () -> ::Time
1757
+ def last_updated_at: () -> ::Time
1758
1758
  end
1759
1759
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#update_session-instance_method
1760
1760
  def update_session: (
1761
- session_identifier: ::String,
1762
- ?session_metadata: Hash[::String, ::String]
1761
+ ?session_metadata: Hash[::String, ::String],
1762
+ session_identifier: ::String
1763
1763
  ) -> _UpdateSessionResponseSuccess
1764
1764
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateSessionResponseSuccess
1765
1765
  end