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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockagentruntime/client.rb +1 -1
- data/lib/aws-sdk-bedrockagentruntime.rb +1 -1
- data/sig/client.rbs +25 -1077
- data/sig/params.rbs +483 -0
- metadata +2 -1
data/sig/client.rbs
CHANGED
|
@@ -271,187 +271,20 @@ module Aws
|
|
|
271
271
|
},
|
|
272
272
|
session_id: ::String,
|
|
273
273
|
?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
|
-
}?,
|
|
274
|
+
conversation_history: Params::conversation_history?,
|
|
286
275
|
files: Array[
|
|
287
|
-
|
|
288
|
-
name: ::String,
|
|
289
|
-
source: {
|
|
290
|
-
byte_content: {
|
|
291
|
-
data: ::String,
|
|
292
|
-
media_type: ::String
|
|
293
|
-
}?,
|
|
294
|
-
s3_location: {
|
|
295
|
-
uri: ::String
|
|
296
|
-
}?,
|
|
297
|
-
source_type: ("S3" | "BYTE_CONTENT")
|
|
298
|
-
},
|
|
299
|
-
use_case: ("CODE_INTERPRETER" | "CHAT")
|
|
300
|
-
},
|
|
276
|
+
Params::input_file
|
|
301
277
|
]?,
|
|
302
278
|
invocation_id: ::String?,
|
|
303
279
|
knowledge_base_configurations: Array[
|
|
304
280
|
{
|
|
305
281
|
knowledge_base_id: ::String,
|
|
306
|
-
retrieval_configuration:
|
|
307
|
-
|
|
308
|
-
filter: {
|
|
309
|
-
and_all: Array[
|
|
310
|
-
untyped,
|
|
311
|
-
]?,
|
|
312
|
-
equals: {
|
|
313
|
-
key: ::String,
|
|
314
|
-
value: {
|
|
315
|
-
}
|
|
316
|
-
}?,
|
|
317
|
-
greater_than: {
|
|
318
|
-
key: ::String,
|
|
319
|
-
value: {
|
|
320
|
-
}
|
|
321
|
-
}?,
|
|
322
|
-
greater_than_or_equals: {
|
|
323
|
-
key: ::String,
|
|
324
|
-
value: {
|
|
325
|
-
}
|
|
326
|
-
}?,
|
|
327
|
-
in: {
|
|
328
|
-
key: ::String,
|
|
329
|
-
value: {
|
|
330
|
-
}
|
|
331
|
-
}?,
|
|
332
|
-
less_than: {
|
|
333
|
-
key: ::String,
|
|
334
|
-
value: {
|
|
335
|
-
}
|
|
336
|
-
}?,
|
|
337
|
-
less_than_or_equals: {
|
|
338
|
-
key: ::String,
|
|
339
|
-
value: {
|
|
340
|
-
}
|
|
341
|
-
}?,
|
|
342
|
-
list_contains: {
|
|
343
|
-
key: ::String,
|
|
344
|
-
value: {
|
|
345
|
-
}
|
|
346
|
-
}?,
|
|
347
|
-
not_equals: {
|
|
348
|
-
key: ::String,
|
|
349
|
-
value: {
|
|
350
|
-
}
|
|
351
|
-
}?,
|
|
352
|
-
not_in: {
|
|
353
|
-
key: ::String,
|
|
354
|
-
value: {
|
|
355
|
-
}
|
|
356
|
-
}?,
|
|
357
|
-
or_all: Array[
|
|
358
|
-
untyped,
|
|
359
|
-
]?,
|
|
360
|
-
starts_with: {
|
|
361
|
-
key: ::String,
|
|
362
|
-
value: {
|
|
363
|
-
}
|
|
364
|
-
}?,
|
|
365
|
-
string_contains: {
|
|
366
|
-
key: ::String,
|
|
367
|
-
value: {
|
|
368
|
-
}
|
|
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
|
|
380
|
-
}?,
|
|
381
|
-
number_of_results: ::Integer?,
|
|
382
|
-
override_search_type: ("HYBRID" | "SEMANTIC")?,
|
|
383
|
-
reranking_configuration: {
|
|
384
|
-
bedrock_reranking_configuration: {
|
|
385
|
-
metadata_configuration: {
|
|
386
|
-
selection_mode: ("SELECTIVE" | "ALL"),
|
|
387
|
-
selective_mode_configuration: {
|
|
388
|
-
fields_to_exclude: Array[
|
|
389
|
-
{
|
|
390
|
-
field_name: ::String
|
|
391
|
-
},
|
|
392
|
-
]?,
|
|
393
|
-
fields_to_include: Array[
|
|
394
|
-
{
|
|
395
|
-
field_name: ::String
|
|
396
|
-
},
|
|
397
|
-
]?
|
|
398
|
-
}?
|
|
399
|
-
}?,
|
|
400
|
-
model_configuration: {
|
|
401
|
-
additional_model_request_fields: Hash[::String, {
|
|
402
|
-
}]?,
|
|
403
|
-
model_arn: ::String
|
|
404
|
-
},
|
|
405
|
-
number_of_reranked_results: ::Integer?
|
|
406
|
-
}?,
|
|
407
|
-
type: ("BEDROCK_RERANKING_MODEL")
|
|
408
|
-
}?
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
},
|
|
282
|
+
retrieval_configuration: Params::knowledge_base_retrieval_configuration
|
|
283
|
+
}
|
|
412
284
|
]?,
|
|
413
285
|
prompt_session_attributes: Hash[::String, ::String]?,
|
|
414
286
|
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
|
-
},
|
|
287
|
+
Params::invocation_result_member
|
|
455
288
|
]?,
|
|
456
289
|
session_attributes: Hash[::String, ::String]?
|
|
457
290
|
},
|
|
@@ -475,15 +308,7 @@ module Aws
|
|
|
475
308
|
flow_alias_identifier: ::String,
|
|
476
309
|
flow_identifier: ::String,
|
|
477
310
|
inputs: Array[
|
|
478
|
-
|
|
479
|
-
content: {
|
|
480
|
-
document: {
|
|
481
|
-
}?
|
|
482
|
-
},
|
|
483
|
-
node_input_name: ::String?,
|
|
484
|
-
node_name: ::String,
|
|
485
|
-
node_output_name: ::String?
|
|
486
|
-
},
|
|
311
|
+
Params::flow_input
|
|
487
312
|
],
|
|
488
313
|
?model_performance_configuration: {
|
|
489
314
|
performance_config: {
|
|
@@ -502,37 +327,7 @@ module Aws
|
|
|
502
327
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#invoke_inline_agent-instance_method
|
|
503
328
|
def invoke_inline_agent: (
|
|
504
329
|
?action_groups: Array[
|
|
505
|
-
|
|
506
|
-
action_group_executor: {
|
|
507
|
-
custom_control: ("RETURN_CONTROL")?,
|
|
508
|
-
lambda: ::String?
|
|
509
|
-
}?,
|
|
510
|
-
action_group_name: ::String,
|
|
511
|
-
api_schema: {
|
|
512
|
-
payload: ::String?,
|
|
513
|
-
s3: {
|
|
514
|
-
s3_bucket_name: ::String?,
|
|
515
|
-
s3_object_key: ::String?
|
|
516
|
-
}?
|
|
517
|
-
}?,
|
|
518
|
-
description: ::String?,
|
|
519
|
-
function_schema: {
|
|
520
|
-
functions: Array[
|
|
521
|
-
{
|
|
522
|
-
description: ::String?,
|
|
523
|
-
name: ::String,
|
|
524
|
-
parameters: Hash[::String, {
|
|
525
|
-
description: ::String?,
|
|
526
|
-
required: bool?,
|
|
527
|
-
type: ("string" | "number" | "integer" | "boolean" | "array")
|
|
528
|
-
}]?,
|
|
529
|
-
require_confirmation: ("ENABLED" | "DISABLED")?
|
|
530
|
-
},
|
|
531
|
-
]?
|
|
532
|
-
}?,
|
|
533
|
-
parent_action_group_signature: ("AMAZON.UserInput" | "AMAZON.CodeInterpreter" | "ANTHROPIC.Computer" | "ANTHROPIC.Bash" | "ANTHROPIC.TextEditor")?,
|
|
534
|
-
parent_action_group_signature_params: Hash[::String, ::String]?
|
|
535
|
-
},
|
|
330
|
+
Params::agent_action_group
|
|
536
331
|
],
|
|
537
332
|
?agent_collaboration: ("SUPERVISOR" | "SUPERVISOR_ROUTER" | "DISABLED"),
|
|
538
333
|
?agent_name: ::String,
|
|
@@ -547,42 +342,12 @@ module Aws
|
|
|
547
342
|
collaborator_instruction: ::String,
|
|
548
343
|
collaborator_name: ::String,
|
|
549
344
|
relay_conversation_history: ("TO_COLLABORATOR" | "DISABLED")?
|
|
550
|
-
}
|
|
345
|
+
}
|
|
551
346
|
],
|
|
552
347
|
?collaborators: Array[
|
|
553
348
|
{
|
|
554
349
|
action_groups: Array[
|
|
555
|
-
|
|
556
|
-
action_group_executor: {
|
|
557
|
-
custom_control: ("RETURN_CONTROL")?,
|
|
558
|
-
lambda: ::String?
|
|
559
|
-
}?,
|
|
560
|
-
action_group_name: ::String,
|
|
561
|
-
api_schema: {
|
|
562
|
-
payload: ::String?,
|
|
563
|
-
s3: {
|
|
564
|
-
s3_bucket_name: ::String?,
|
|
565
|
-
s3_object_key: ::String?
|
|
566
|
-
}?
|
|
567
|
-
}?,
|
|
568
|
-
description: ::String?,
|
|
569
|
-
function_schema: {
|
|
570
|
-
functions: Array[
|
|
571
|
-
{
|
|
572
|
-
description: ::String?,
|
|
573
|
-
name: ::String,
|
|
574
|
-
parameters: Hash[::String, {
|
|
575
|
-
description: ::String?,
|
|
576
|
-
required: bool?,
|
|
577
|
-
type: ("string" | "number" | "integer" | "boolean" | "array")
|
|
578
|
-
}]?,
|
|
579
|
-
require_confirmation: ("ENABLED" | "DISABLED")?
|
|
580
|
-
},
|
|
581
|
-
]?
|
|
582
|
-
}?,
|
|
583
|
-
parent_action_group_signature: ("AMAZON.UserInput" | "AMAZON.CodeInterpreter" | "ANTHROPIC.Computer" | "ANTHROPIC.Bash" | "ANTHROPIC.TextEditor")?,
|
|
584
|
-
parent_action_group_signature_params: Hash[::String, ::String]?
|
|
585
|
-
},
|
|
350
|
+
Params::agent_action_group
|
|
586
351
|
]?,
|
|
587
352
|
agent_collaboration: ("SUPERVISOR" | "SUPERVISOR_ROUTER" | "DISABLED")?,
|
|
588
353
|
agent_name: ::String?,
|
|
@@ -592,7 +357,7 @@ module Aws
|
|
|
592
357
|
collaborator_instruction: ::String,
|
|
593
358
|
collaborator_name: ::String,
|
|
594
359
|
relay_conversation_history: ("TO_COLLABORATOR" | "DISABLED")?
|
|
595
|
-
}
|
|
360
|
+
}
|
|
596
361
|
]?,
|
|
597
362
|
customer_encryption_key_arn: ::String?,
|
|
598
363
|
foundation_model: ::String,
|
|
@@ -603,139 +368,10 @@ module Aws
|
|
|
603
368
|
idle_session_ttl_in_seconds: ::Integer?,
|
|
604
369
|
instruction: ::String,
|
|
605
370
|
knowledge_bases: Array[
|
|
606
|
-
|
|
607
|
-
description: ::String,
|
|
608
|
-
knowledge_base_id: ::String,
|
|
609
|
-
retrieval_configuration: {
|
|
610
|
-
vector_search_configuration: {
|
|
611
|
-
filter: {
|
|
612
|
-
and_all: Array[
|
|
613
|
-
untyped,
|
|
614
|
-
]?,
|
|
615
|
-
equals: {
|
|
616
|
-
key: ::String,
|
|
617
|
-
value: {
|
|
618
|
-
}
|
|
619
|
-
}?,
|
|
620
|
-
greater_than: {
|
|
621
|
-
key: ::String,
|
|
622
|
-
value: {
|
|
623
|
-
}
|
|
624
|
-
}?,
|
|
625
|
-
greater_than_or_equals: {
|
|
626
|
-
key: ::String,
|
|
627
|
-
value: {
|
|
628
|
-
}
|
|
629
|
-
}?,
|
|
630
|
-
in: {
|
|
631
|
-
key: ::String,
|
|
632
|
-
value: {
|
|
633
|
-
}
|
|
634
|
-
}?,
|
|
635
|
-
less_than: {
|
|
636
|
-
key: ::String,
|
|
637
|
-
value: {
|
|
638
|
-
}
|
|
639
|
-
}?,
|
|
640
|
-
less_than_or_equals: {
|
|
641
|
-
key: ::String,
|
|
642
|
-
value: {
|
|
643
|
-
}
|
|
644
|
-
}?,
|
|
645
|
-
list_contains: {
|
|
646
|
-
key: ::String,
|
|
647
|
-
value: {
|
|
648
|
-
}
|
|
649
|
-
}?,
|
|
650
|
-
not_equals: {
|
|
651
|
-
key: ::String,
|
|
652
|
-
value: {
|
|
653
|
-
}
|
|
654
|
-
}?,
|
|
655
|
-
not_in: {
|
|
656
|
-
key: ::String,
|
|
657
|
-
value: {
|
|
658
|
-
}
|
|
659
|
-
}?,
|
|
660
|
-
or_all: Array[
|
|
661
|
-
untyped,
|
|
662
|
-
]?,
|
|
663
|
-
starts_with: {
|
|
664
|
-
key: ::String,
|
|
665
|
-
value: {
|
|
666
|
-
}
|
|
667
|
-
}?,
|
|
668
|
-
string_contains: {
|
|
669
|
-
key: ::String,
|
|
670
|
-
value: {
|
|
671
|
-
}
|
|
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
|
|
683
|
-
}?,
|
|
684
|
-
number_of_results: ::Integer?,
|
|
685
|
-
override_search_type: ("HYBRID" | "SEMANTIC")?,
|
|
686
|
-
reranking_configuration: {
|
|
687
|
-
bedrock_reranking_configuration: {
|
|
688
|
-
metadata_configuration: {
|
|
689
|
-
selection_mode: ("SELECTIVE" | "ALL"),
|
|
690
|
-
selective_mode_configuration: {
|
|
691
|
-
fields_to_exclude: Array[
|
|
692
|
-
{
|
|
693
|
-
field_name: ::String
|
|
694
|
-
},
|
|
695
|
-
]?,
|
|
696
|
-
fields_to_include: Array[
|
|
697
|
-
{
|
|
698
|
-
field_name: ::String
|
|
699
|
-
},
|
|
700
|
-
]?
|
|
701
|
-
}?
|
|
702
|
-
}?,
|
|
703
|
-
model_configuration: {
|
|
704
|
-
additional_model_request_fields: Hash[::String, {
|
|
705
|
-
}]?,
|
|
706
|
-
model_arn: ::String
|
|
707
|
-
},
|
|
708
|
-
number_of_reranked_results: ::Integer?
|
|
709
|
-
}?,
|
|
710
|
-
type: ("BEDROCK_RERANKING_MODEL")
|
|
711
|
-
}?
|
|
712
|
-
}
|
|
713
|
-
}?
|
|
714
|
-
},
|
|
371
|
+
Params::knowledge_base
|
|
715
372
|
]?,
|
|
716
|
-
prompt_override_configuration:
|
|
717
|
-
|
|
718
|
-
prompt_configurations: Array[
|
|
719
|
-
{
|
|
720
|
-
additional_model_request_fields: {
|
|
721
|
-
}?,
|
|
722
|
-
base_prompt_template: ::String?,
|
|
723
|
-
foundation_model: ::String?,
|
|
724
|
-
inference_configuration: {
|
|
725
|
-
maximum_length: ::Integer?,
|
|
726
|
-
stop_sequences: Array[::String]?,
|
|
727
|
-
temperature: ::Float?,
|
|
728
|
-
top_k: ::Integer?,
|
|
729
|
-
top_p: ::Float?
|
|
730
|
-
}?,
|
|
731
|
-
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")?
|
|
735
|
-
},
|
|
736
|
-
]
|
|
737
|
-
}?
|
|
738
|
-
},
|
|
373
|
+
prompt_override_configuration: Params::prompt_override_configuration?
|
|
374
|
+
}
|
|
739
375
|
],
|
|
740
376
|
?custom_orchestration: {
|
|
741
377
|
executor: {
|
|
@@ -752,220 +388,28 @@ module Aws
|
|
|
752
388
|
},
|
|
753
389
|
?idle_session_ttl_in_seconds: ::Integer,
|
|
754
390
|
?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
|
-
}?,
|
|
391
|
+
conversation_history: Params::conversation_history?,
|
|
767
392
|
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
|
-
},
|
|
393
|
+
Params::input_file
|
|
782
394
|
]?,
|
|
783
395
|
invocation_id: ::String?,
|
|
784
396
|
prompt_session_attributes: Hash[::String, ::String]?,
|
|
785
397
|
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
|
-
},
|
|
398
|
+
Params::invocation_result_member
|
|
826
399
|
]?,
|
|
827
400
|
session_attributes: Hash[::String, ::String]?
|
|
828
401
|
},
|
|
829
402
|
?input_text: ::String,
|
|
830
403
|
instruction: ::String,
|
|
831
404
|
?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
|
-
},
|
|
405
|
+
Params::knowledge_base
|
|
941
406
|
],
|
|
942
407
|
?orchestration_type: ("DEFAULT" | "CUSTOM_ORCHESTRATION"),
|
|
943
408
|
?prompt_creation_configurations: {
|
|
944
409
|
exclude_previous_thinking_steps: bool?,
|
|
945
410
|
previous_conversation_turns_to_include: ::Integer?
|
|
946
411
|
},
|
|
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
|
-
},
|
|
412
|
+
?prompt_override_configuration: Params::prompt_override_configuration,
|
|
969
413
|
session_id: ::String,
|
|
970
414
|
?streaming_configurations: {
|
|
971
415
|
apply_guardrail_interval: ::Integer?,
|
|
@@ -1090,7 +534,7 @@ module Aws
|
|
|
1090
534
|
}
|
|
1091
535
|
}?,
|
|
1092
536
|
text: ::String?
|
|
1093
|
-
}
|
|
537
|
+
}
|
|
1094
538
|
]?
|
|
1095
539
|
},
|
|
1096
540
|
session_identifier: ::String
|
|
@@ -1111,7 +555,7 @@ module Aws
|
|
|
1111
555
|
text: ::String?
|
|
1112
556
|
},
|
|
1113
557
|
type: ("TEXT")
|
|
1114
|
-
}
|
|
558
|
+
}
|
|
1115
559
|
],
|
|
1116
560
|
reranking_configuration: {
|
|
1117
561
|
bedrock_reranking_configuration: {
|
|
@@ -1135,7 +579,7 @@ module Aws
|
|
|
1135
579
|
type: ("TEXT" | "JSON")
|
|
1136
580
|
},
|
|
1137
581
|
type: ("INLINE")
|
|
1138
|
-
}
|
|
582
|
+
}
|
|
1139
583
|
]
|
|
1140
584
|
) -> _RerankResponseSuccess
|
|
1141
585
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RerankResponseSuccess
|
|
@@ -1154,111 +598,7 @@ module Aws
|
|
|
1154
598
|
},
|
|
1155
599
|
knowledge_base_id: ::String,
|
|
1156
600
|
?next_token: ::String,
|
|
1157
|
-
?retrieval_configuration:
|
|
1158
|
-
vector_search_configuration: {
|
|
1159
|
-
filter: {
|
|
1160
|
-
and_all: Array[
|
|
1161
|
-
untyped,
|
|
1162
|
-
]?,
|
|
1163
|
-
equals: {
|
|
1164
|
-
key: ::String,
|
|
1165
|
-
value: {
|
|
1166
|
-
}
|
|
1167
|
-
}?,
|
|
1168
|
-
greater_than: {
|
|
1169
|
-
key: ::String,
|
|
1170
|
-
value: {
|
|
1171
|
-
}
|
|
1172
|
-
}?,
|
|
1173
|
-
greater_than_or_equals: {
|
|
1174
|
-
key: ::String,
|
|
1175
|
-
value: {
|
|
1176
|
-
}
|
|
1177
|
-
}?,
|
|
1178
|
-
in: {
|
|
1179
|
-
key: ::String,
|
|
1180
|
-
value: {
|
|
1181
|
-
}
|
|
1182
|
-
}?,
|
|
1183
|
-
less_than: {
|
|
1184
|
-
key: ::String,
|
|
1185
|
-
value: {
|
|
1186
|
-
}
|
|
1187
|
-
}?,
|
|
1188
|
-
less_than_or_equals: {
|
|
1189
|
-
key: ::String,
|
|
1190
|
-
value: {
|
|
1191
|
-
}
|
|
1192
|
-
}?,
|
|
1193
|
-
list_contains: {
|
|
1194
|
-
key: ::String,
|
|
1195
|
-
value: {
|
|
1196
|
-
}
|
|
1197
|
-
}?,
|
|
1198
|
-
not_equals: {
|
|
1199
|
-
key: ::String,
|
|
1200
|
-
value: {
|
|
1201
|
-
}
|
|
1202
|
-
}?,
|
|
1203
|
-
not_in: {
|
|
1204
|
-
key: ::String,
|
|
1205
|
-
value: {
|
|
1206
|
-
}
|
|
1207
|
-
}?,
|
|
1208
|
-
or_all: Array[
|
|
1209
|
-
untyped,
|
|
1210
|
-
]?,
|
|
1211
|
-
starts_with: {
|
|
1212
|
-
key: ::String,
|
|
1213
|
-
value: {
|
|
1214
|
-
}
|
|
1215
|
-
}?,
|
|
1216
|
-
string_contains: {
|
|
1217
|
-
key: ::String,
|
|
1218
|
-
value: {
|
|
1219
|
-
}
|
|
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
|
|
1231
|
-
}?,
|
|
1232
|
-
number_of_results: ::Integer?,
|
|
1233
|
-
override_search_type: ("HYBRID" | "SEMANTIC")?,
|
|
1234
|
-
reranking_configuration: {
|
|
1235
|
-
bedrock_reranking_configuration: {
|
|
1236
|
-
metadata_configuration: {
|
|
1237
|
-
selection_mode: ("SELECTIVE" | "ALL"),
|
|
1238
|
-
selective_mode_configuration: {
|
|
1239
|
-
fields_to_exclude: Array[
|
|
1240
|
-
{
|
|
1241
|
-
field_name: ::String
|
|
1242
|
-
},
|
|
1243
|
-
]?,
|
|
1244
|
-
fields_to_include: Array[
|
|
1245
|
-
{
|
|
1246
|
-
field_name: ::String
|
|
1247
|
-
},
|
|
1248
|
-
]?
|
|
1249
|
-
}?
|
|
1250
|
-
}?,
|
|
1251
|
-
model_configuration: {
|
|
1252
|
-
additional_model_request_fields: Hash[::String, {
|
|
1253
|
-
}]?,
|
|
1254
|
-
model_arn: ::String
|
|
1255
|
-
},
|
|
1256
|
-
number_of_reranked_results: ::Integer?
|
|
1257
|
-
}?,
|
|
1258
|
-
type: ("BEDROCK_RERANKING_MODEL")
|
|
1259
|
-
}?
|
|
1260
|
-
}
|
|
1261
|
-
},
|
|
601
|
+
?retrieval_configuration: Params::knowledge_base_retrieval_configuration,
|
|
1262
602
|
retrieval_query: {
|
|
1263
603
|
image: {
|
|
1264
604
|
format: ("png" | "jpeg" | "gif" | "webp"),
|
|
@@ -1282,199 +622,7 @@ module Aws
|
|
|
1282
622
|
input: {
|
|
1283
623
|
text: ::String
|
|
1284
624
|
},
|
|
1285
|
-
?retrieve_and_generate_configuration:
|
|
1286
|
-
external_sources_configuration: {
|
|
1287
|
-
generation_configuration: {
|
|
1288
|
-
additional_model_request_fields: Hash[::String, {
|
|
1289
|
-
}]?,
|
|
1290
|
-
guardrail_configuration: {
|
|
1291
|
-
guardrail_id: ::String,
|
|
1292
|
-
guardrail_version: ::String
|
|
1293
|
-
}?,
|
|
1294
|
-
inference_config: {
|
|
1295
|
-
text_inference_config: {
|
|
1296
|
-
max_tokens: ::Integer?,
|
|
1297
|
-
stop_sequences: Array[::String]?,
|
|
1298
|
-
temperature: ::Float?,
|
|
1299
|
-
top_p: ::Float?
|
|
1300
|
-
}?
|
|
1301
|
-
}?,
|
|
1302
|
-
performance_config: {
|
|
1303
|
-
latency: ("standard" | "optimized")?
|
|
1304
|
-
}?,
|
|
1305
|
-
prompt_template: {
|
|
1306
|
-
text_prompt_template: ::String?
|
|
1307
|
-
}?
|
|
1308
|
-
}?,
|
|
1309
|
-
model_arn: ::String,
|
|
1310
|
-
sources: Array[
|
|
1311
|
-
{
|
|
1312
|
-
byte_content: {
|
|
1313
|
-
content_type: ::String,
|
|
1314
|
-
data: ::String,
|
|
1315
|
-
identifier: ::String
|
|
1316
|
-
}?,
|
|
1317
|
-
s3_location: {
|
|
1318
|
-
uri: ::String
|
|
1319
|
-
}?,
|
|
1320
|
-
source_type: ("S3" | "BYTE_CONTENT")
|
|
1321
|
-
},
|
|
1322
|
-
]
|
|
1323
|
-
}?,
|
|
1324
|
-
knowledge_base_configuration: {
|
|
1325
|
-
generation_configuration: {
|
|
1326
|
-
additional_model_request_fields: Hash[::String, {
|
|
1327
|
-
}]?,
|
|
1328
|
-
guardrail_configuration: {
|
|
1329
|
-
guardrail_id: ::String,
|
|
1330
|
-
guardrail_version: ::String
|
|
1331
|
-
}?,
|
|
1332
|
-
inference_config: {
|
|
1333
|
-
text_inference_config: {
|
|
1334
|
-
max_tokens: ::Integer?,
|
|
1335
|
-
stop_sequences: Array[::String]?,
|
|
1336
|
-
temperature: ::Float?,
|
|
1337
|
-
top_p: ::Float?
|
|
1338
|
-
}?
|
|
1339
|
-
}?,
|
|
1340
|
-
performance_config: {
|
|
1341
|
-
latency: ("standard" | "optimized")?
|
|
1342
|
-
}?,
|
|
1343
|
-
prompt_template: {
|
|
1344
|
-
text_prompt_template: ::String?
|
|
1345
|
-
}?
|
|
1346
|
-
}?,
|
|
1347
|
-
knowledge_base_id: ::String,
|
|
1348
|
-
model_arn: ::String,
|
|
1349
|
-
orchestration_configuration: {
|
|
1350
|
-
additional_model_request_fields: Hash[::String, {
|
|
1351
|
-
}]?,
|
|
1352
|
-
inference_config: {
|
|
1353
|
-
text_inference_config: {
|
|
1354
|
-
max_tokens: ::Integer?,
|
|
1355
|
-
stop_sequences: Array[::String]?,
|
|
1356
|
-
temperature: ::Float?,
|
|
1357
|
-
top_p: ::Float?
|
|
1358
|
-
}?
|
|
1359
|
-
}?,
|
|
1360
|
-
performance_config: {
|
|
1361
|
-
latency: ("standard" | "optimized")?
|
|
1362
|
-
}?,
|
|
1363
|
-
prompt_template: {
|
|
1364
|
-
text_prompt_template: ::String?
|
|
1365
|
-
}?,
|
|
1366
|
-
query_transformation_configuration: {
|
|
1367
|
-
type: ("QUERY_DECOMPOSITION")
|
|
1368
|
-
}?
|
|
1369
|
-
}?,
|
|
1370
|
-
retrieval_configuration: {
|
|
1371
|
-
vector_search_configuration: {
|
|
1372
|
-
filter: {
|
|
1373
|
-
and_all: Array[
|
|
1374
|
-
untyped,
|
|
1375
|
-
]?,
|
|
1376
|
-
equals: {
|
|
1377
|
-
key: ::String,
|
|
1378
|
-
value: {
|
|
1379
|
-
}
|
|
1380
|
-
}?,
|
|
1381
|
-
greater_than: {
|
|
1382
|
-
key: ::String,
|
|
1383
|
-
value: {
|
|
1384
|
-
}
|
|
1385
|
-
}?,
|
|
1386
|
-
greater_than_or_equals: {
|
|
1387
|
-
key: ::String,
|
|
1388
|
-
value: {
|
|
1389
|
-
}
|
|
1390
|
-
}?,
|
|
1391
|
-
in: {
|
|
1392
|
-
key: ::String,
|
|
1393
|
-
value: {
|
|
1394
|
-
}
|
|
1395
|
-
}?,
|
|
1396
|
-
less_than: {
|
|
1397
|
-
key: ::String,
|
|
1398
|
-
value: {
|
|
1399
|
-
}
|
|
1400
|
-
}?,
|
|
1401
|
-
less_than_or_equals: {
|
|
1402
|
-
key: ::String,
|
|
1403
|
-
value: {
|
|
1404
|
-
}
|
|
1405
|
-
}?,
|
|
1406
|
-
list_contains: {
|
|
1407
|
-
key: ::String,
|
|
1408
|
-
value: {
|
|
1409
|
-
}
|
|
1410
|
-
}?,
|
|
1411
|
-
not_equals: {
|
|
1412
|
-
key: ::String,
|
|
1413
|
-
value: {
|
|
1414
|
-
}
|
|
1415
|
-
}?,
|
|
1416
|
-
not_in: {
|
|
1417
|
-
key: ::String,
|
|
1418
|
-
value: {
|
|
1419
|
-
}
|
|
1420
|
-
}?,
|
|
1421
|
-
or_all: Array[
|
|
1422
|
-
untyped,
|
|
1423
|
-
]?,
|
|
1424
|
-
starts_with: {
|
|
1425
|
-
key: ::String,
|
|
1426
|
-
value: {
|
|
1427
|
-
}
|
|
1428
|
-
}?,
|
|
1429
|
-
string_contains: {
|
|
1430
|
-
key: ::String,
|
|
1431
|
-
value: {
|
|
1432
|
-
}
|
|
1433
|
-
}?
|
|
1434
|
-
}?,
|
|
1435
|
-
implicit_filter_configuration: {
|
|
1436
|
-
metadata_attributes: Array[
|
|
1437
|
-
{
|
|
1438
|
-
description: ::String,
|
|
1439
|
-
key: ::String,
|
|
1440
|
-
type: ("STRING" | "NUMBER" | "BOOLEAN" | "STRING_LIST")
|
|
1441
|
-
},
|
|
1442
|
-
],
|
|
1443
|
-
model_arn: ::String
|
|
1444
|
-
}?,
|
|
1445
|
-
number_of_results: ::Integer?,
|
|
1446
|
-
override_search_type: ("HYBRID" | "SEMANTIC")?,
|
|
1447
|
-
reranking_configuration: {
|
|
1448
|
-
bedrock_reranking_configuration: {
|
|
1449
|
-
metadata_configuration: {
|
|
1450
|
-
selection_mode: ("SELECTIVE" | "ALL"),
|
|
1451
|
-
selective_mode_configuration: {
|
|
1452
|
-
fields_to_exclude: Array[
|
|
1453
|
-
{
|
|
1454
|
-
field_name: ::String
|
|
1455
|
-
},
|
|
1456
|
-
]?,
|
|
1457
|
-
fields_to_include: Array[
|
|
1458
|
-
{
|
|
1459
|
-
field_name: ::String
|
|
1460
|
-
},
|
|
1461
|
-
]?
|
|
1462
|
-
}?
|
|
1463
|
-
}?,
|
|
1464
|
-
model_configuration: {
|
|
1465
|
-
additional_model_request_fields: Hash[::String, {
|
|
1466
|
-
}]?,
|
|
1467
|
-
model_arn: ::String
|
|
1468
|
-
},
|
|
1469
|
-
number_of_reranked_results: ::Integer?
|
|
1470
|
-
}?,
|
|
1471
|
-
type: ("BEDROCK_RERANKING_MODEL")
|
|
1472
|
-
}?
|
|
1473
|
-
}
|
|
1474
|
-
}?
|
|
1475
|
-
}?,
|
|
1476
|
-
type: ("KNOWLEDGE_BASE" | "EXTERNAL_SOURCES")
|
|
1477
|
-
},
|
|
625
|
+
?retrieve_and_generate_configuration: Params::retrieve_and_generate_configuration,
|
|
1478
626
|
?session_configuration: {
|
|
1479
627
|
kms_key_arn: ::String
|
|
1480
628
|
},
|
|
@@ -1492,199 +640,7 @@ module Aws
|
|
|
1492
640
|
input: {
|
|
1493
641
|
text: ::String
|
|
1494
642
|
},
|
|
1495
|
-
?retrieve_and_generate_configuration:
|
|
1496
|
-
external_sources_configuration: {
|
|
1497
|
-
generation_configuration: {
|
|
1498
|
-
additional_model_request_fields: Hash[::String, {
|
|
1499
|
-
}]?,
|
|
1500
|
-
guardrail_configuration: {
|
|
1501
|
-
guardrail_id: ::String,
|
|
1502
|
-
guardrail_version: ::String
|
|
1503
|
-
}?,
|
|
1504
|
-
inference_config: {
|
|
1505
|
-
text_inference_config: {
|
|
1506
|
-
max_tokens: ::Integer?,
|
|
1507
|
-
stop_sequences: Array[::String]?,
|
|
1508
|
-
temperature: ::Float?,
|
|
1509
|
-
top_p: ::Float?
|
|
1510
|
-
}?
|
|
1511
|
-
}?,
|
|
1512
|
-
performance_config: {
|
|
1513
|
-
latency: ("standard" | "optimized")?
|
|
1514
|
-
}?,
|
|
1515
|
-
prompt_template: {
|
|
1516
|
-
text_prompt_template: ::String?
|
|
1517
|
-
}?
|
|
1518
|
-
}?,
|
|
1519
|
-
model_arn: ::String,
|
|
1520
|
-
sources: Array[
|
|
1521
|
-
{
|
|
1522
|
-
byte_content: {
|
|
1523
|
-
content_type: ::String,
|
|
1524
|
-
data: ::String,
|
|
1525
|
-
identifier: ::String
|
|
1526
|
-
}?,
|
|
1527
|
-
s3_location: {
|
|
1528
|
-
uri: ::String
|
|
1529
|
-
}?,
|
|
1530
|
-
source_type: ("S3" | "BYTE_CONTENT")
|
|
1531
|
-
},
|
|
1532
|
-
]
|
|
1533
|
-
}?,
|
|
1534
|
-
knowledge_base_configuration: {
|
|
1535
|
-
generation_configuration: {
|
|
1536
|
-
additional_model_request_fields: Hash[::String, {
|
|
1537
|
-
}]?,
|
|
1538
|
-
guardrail_configuration: {
|
|
1539
|
-
guardrail_id: ::String,
|
|
1540
|
-
guardrail_version: ::String
|
|
1541
|
-
}?,
|
|
1542
|
-
inference_config: {
|
|
1543
|
-
text_inference_config: {
|
|
1544
|
-
max_tokens: ::Integer?,
|
|
1545
|
-
stop_sequences: Array[::String]?,
|
|
1546
|
-
temperature: ::Float?,
|
|
1547
|
-
top_p: ::Float?
|
|
1548
|
-
}?
|
|
1549
|
-
}?,
|
|
1550
|
-
performance_config: {
|
|
1551
|
-
latency: ("standard" | "optimized")?
|
|
1552
|
-
}?,
|
|
1553
|
-
prompt_template: {
|
|
1554
|
-
text_prompt_template: ::String?
|
|
1555
|
-
}?
|
|
1556
|
-
}?,
|
|
1557
|
-
knowledge_base_id: ::String,
|
|
1558
|
-
model_arn: ::String,
|
|
1559
|
-
orchestration_configuration: {
|
|
1560
|
-
additional_model_request_fields: Hash[::String, {
|
|
1561
|
-
}]?,
|
|
1562
|
-
inference_config: {
|
|
1563
|
-
text_inference_config: {
|
|
1564
|
-
max_tokens: ::Integer?,
|
|
1565
|
-
stop_sequences: Array[::String]?,
|
|
1566
|
-
temperature: ::Float?,
|
|
1567
|
-
top_p: ::Float?
|
|
1568
|
-
}?
|
|
1569
|
-
}?,
|
|
1570
|
-
performance_config: {
|
|
1571
|
-
latency: ("standard" | "optimized")?
|
|
1572
|
-
}?,
|
|
1573
|
-
prompt_template: {
|
|
1574
|
-
text_prompt_template: ::String?
|
|
1575
|
-
}?,
|
|
1576
|
-
query_transformation_configuration: {
|
|
1577
|
-
type: ("QUERY_DECOMPOSITION")
|
|
1578
|
-
}?
|
|
1579
|
-
}?,
|
|
1580
|
-
retrieval_configuration: {
|
|
1581
|
-
vector_search_configuration: {
|
|
1582
|
-
filter: {
|
|
1583
|
-
and_all: Array[
|
|
1584
|
-
untyped,
|
|
1585
|
-
]?,
|
|
1586
|
-
equals: {
|
|
1587
|
-
key: ::String,
|
|
1588
|
-
value: {
|
|
1589
|
-
}
|
|
1590
|
-
}?,
|
|
1591
|
-
greater_than: {
|
|
1592
|
-
key: ::String,
|
|
1593
|
-
value: {
|
|
1594
|
-
}
|
|
1595
|
-
}?,
|
|
1596
|
-
greater_than_or_equals: {
|
|
1597
|
-
key: ::String,
|
|
1598
|
-
value: {
|
|
1599
|
-
}
|
|
1600
|
-
}?,
|
|
1601
|
-
in: {
|
|
1602
|
-
key: ::String,
|
|
1603
|
-
value: {
|
|
1604
|
-
}
|
|
1605
|
-
}?,
|
|
1606
|
-
less_than: {
|
|
1607
|
-
key: ::String,
|
|
1608
|
-
value: {
|
|
1609
|
-
}
|
|
1610
|
-
}?,
|
|
1611
|
-
less_than_or_equals: {
|
|
1612
|
-
key: ::String,
|
|
1613
|
-
value: {
|
|
1614
|
-
}
|
|
1615
|
-
}?,
|
|
1616
|
-
list_contains: {
|
|
1617
|
-
key: ::String,
|
|
1618
|
-
value: {
|
|
1619
|
-
}
|
|
1620
|
-
}?,
|
|
1621
|
-
not_equals: {
|
|
1622
|
-
key: ::String,
|
|
1623
|
-
value: {
|
|
1624
|
-
}
|
|
1625
|
-
}?,
|
|
1626
|
-
not_in: {
|
|
1627
|
-
key: ::String,
|
|
1628
|
-
value: {
|
|
1629
|
-
}
|
|
1630
|
-
}?,
|
|
1631
|
-
or_all: Array[
|
|
1632
|
-
untyped,
|
|
1633
|
-
]?,
|
|
1634
|
-
starts_with: {
|
|
1635
|
-
key: ::String,
|
|
1636
|
-
value: {
|
|
1637
|
-
}
|
|
1638
|
-
}?,
|
|
1639
|
-
string_contains: {
|
|
1640
|
-
key: ::String,
|
|
1641
|
-
value: {
|
|
1642
|
-
}
|
|
1643
|
-
}?
|
|
1644
|
-
}?,
|
|
1645
|
-
implicit_filter_configuration: {
|
|
1646
|
-
metadata_attributes: Array[
|
|
1647
|
-
{
|
|
1648
|
-
description: ::String,
|
|
1649
|
-
key: ::String,
|
|
1650
|
-
type: ("STRING" | "NUMBER" | "BOOLEAN" | "STRING_LIST")
|
|
1651
|
-
},
|
|
1652
|
-
],
|
|
1653
|
-
model_arn: ::String
|
|
1654
|
-
}?,
|
|
1655
|
-
number_of_results: ::Integer?,
|
|
1656
|
-
override_search_type: ("HYBRID" | "SEMANTIC")?,
|
|
1657
|
-
reranking_configuration: {
|
|
1658
|
-
bedrock_reranking_configuration: {
|
|
1659
|
-
metadata_configuration: {
|
|
1660
|
-
selection_mode: ("SELECTIVE" | "ALL"),
|
|
1661
|
-
selective_mode_configuration: {
|
|
1662
|
-
fields_to_exclude: Array[
|
|
1663
|
-
{
|
|
1664
|
-
field_name: ::String
|
|
1665
|
-
},
|
|
1666
|
-
]?,
|
|
1667
|
-
fields_to_include: Array[
|
|
1668
|
-
{
|
|
1669
|
-
field_name: ::String
|
|
1670
|
-
},
|
|
1671
|
-
]?
|
|
1672
|
-
}?
|
|
1673
|
-
}?,
|
|
1674
|
-
model_configuration: {
|
|
1675
|
-
additional_model_request_fields: Hash[::String, {
|
|
1676
|
-
}]?,
|
|
1677
|
-
model_arn: ::String
|
|
1678
|
-
},
|
|
1679
|
-
number_of_reranked_results: ::Integer?
|
|
1680
|
-
}?,
|
|
1681
|
-
type: ("BEDROCK_RERANKING_MODEL")
|
|
1682
|
-
}?
|
|
1683
|
-
}
|
|
1684
|
-
}?
|
|
1685
|
-
}?,
|
|
1686
|
-
type: ("KNOWLEDGE_BASE" | "EXTERNAL_SOURCES")
|
|
1687
|
-
},
|
|
643
|
+
?retrieve_and_generate_configuration: Params::retrieve_and_generate_configuration,
|
|
1688
644
|
?session_configuration: {
|
|
1689
645
|
kms_key_arn: ::String
|
|
1690
646
|
},
|
|
@@ -1702,15 +658,7 @@ module Aws
|
|
|
1702
658
|
?flow_execution_name: ::String,
|
|
1703
659
|
flow_identifier: ::String,
|
|
1704
660
|
inputs: Array[
|
|
1705
|
-
|
|
1706
|
-
content: {
|
|
1707
|
-
document: {
|
|
1708
|
-
}?
|
|
1709
|
-
},
|
|
1710
|
-
node_input_name: ::String?,
|
|
1711
|
-
node_name: ::String,
|
|
1712
|
-
node_output_name: ::String?
|
|
1713
|
-
},
|
|
661
|
+
Params::flow_input
|
|
1714
662
|
],
|
|
1715
663
|
?model_performance_configuration: {
|
|
1716
664
|
performance_config: {
|