aws-sdk-bedrockagent 1.56.0 → 1.58.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockagent/client.rb +440 -11
- data/lib/aws-sdk-bedrockagent/client_api.rb +150 -0
- data/lib/aws-sdk-bedrockagent/types.rb +608 -23
- data/lib/aws-sdk-bedrockagent.rb +1 -1
- data/sig/client.rbs +225 -6
- data/sig/types.rbs +160 -2
- metadata +4 -4
data/lib/aws-sdk-bedrockagent.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -469,8 +469,64 @@ module Aws
|
|
469
469
|
guardrail_identifier: ::String?,
|
470
470
|
guardrail_version: ::String?
|
471
471
|
}?,
|
472
|
+
inference_configuration: {
|
473
|
+
text: {
|
474
|
+
max_tokens: ::Integer?,
|
475
|
+
stop_sequences: Array[::String]?,
|
476
|
+
temperature: ::Float?,
|
477
|
+
top_p: ::Float?
|
478
|
+
}?
|
479
|
+
}?,
|
472
480
|
knowledge_base_id: ::String,
|
473
|
-
model_id: ::String
|
481
|
+
model_id: ::String?,
|
482
|
+
number_of_results: ::Integer?,
|
483
|
+
orchestration_configuration: {
|
484
|
+
additional_model_request_fields: Hash[::String, {
|
485
|
+
}]?,
|
486
|
+
inference_config: {
|
487
|
+
text: {
|
488
|
+
max_tokens: ::Integer?,
|
489
|
+
stop_sequences: Array[::String]?,
|
490
|
+
temperature: ::Float?,
|
491
|
+
top_p: ::Float?
|
492
|
+
}?
|
493
|
+
}?,
|
494
|
+
performance_config: {
|
495
|
+
latency: ("standard" | "optimized")?
|
496
|
+
}?,
|
497
|
+
prompt_template: {
|
498
|
+
text_prompt_template: ::String?
|
499
|
+
}?
|
500
|
+
}?,
|
501
|
+
prompt_template: {
|
502
|
+
text_prompt_template: ::String?
|
503
|
+
}?,
|
504
|
+
reranking_configuration: {
|
505
|
+
bedrock_reranking_configuration: {
|
506
|
+
metadata_configuration: {
|
507
|
+
selection_mode: ("SELECTIVE" | "ALL"),
|
508
|
+
selective_mode_configuration: {
|
509
|
+
fields_to_exclude: Array[
|
510
|
+
{
|
511
|
+
field_name: ::String
|
512
|
+
},
|
513
|
+
]?,
|
514
|
+
fields_to_include: Array[
|
515
|
+
{
|
516
|
+
field_name: ::String
|
517
|
+
},
|
518
|
+
]?
|
519
|
+
}?
|
520
|
+
}?,
|
521
|
+
model_configuration: {
|
522
|
+
additional_model_request_fields: Hash[::String, {
|
523
|
+
}]?,
|
524
|
+
model_arn: ::String
|
525
|
+
},
|
526
|
+
number_of_reranked_results: ::Integer?
|
527
|
+
}?,
|
528
|
+
type: ("BEDROCK_RERANKING_MODEL")
|
529
|
+
}?
|
474
530
|
}?,
|
475
531
|
lambda_function: {
|
476
532
|
lambda_arn: ::String
|
@@ -479,6 +535,18 @@ module Aws
|
|
479
535
|
bot_alias_arn: ::String,
|
480
536
|
locale_id: ::String
|
481
537
|
}?,
|
538
|
+
loop: {
|
539
|
+
definition: untyped
|
540
|
+
}?,
|
541
|
+
loop_controller: {
|
542
|
+
continue_condition: {
|
543
|
+
expression: ::String?,
|
544
|
+
name: ::String
|
545
|
+
},
|
546
|
+
max_iterations: ::Integer?
|
547
|
+
}?,
|
548
|
+
loop_input: {
|
549
|
+
}?,
|
482
550
|
output: {
|
483
551
|
}?,
|
484
552
|
prompt: {
|
@@ -590,6 +658,7 @@ module Aws
|
|
590
658
|
}?,
|
591
659
|
inputs: Array[
|
592
660
|
{
|
661
|
+
category: ("LoopCondition" | "ReturnValueToLoopStart" | "ExitLoop")?,
|
593
662
|
expression: ::String,
|
594
663
|
name: ::String,
|
595
664
|
type: ("String" | "Number" | "Boolean" | "Object" | "Array")
|
@@ -602,7 +671,7 @@ module Aws
|
|
602
671
|
type: ("String" | "Number" | "Boolean" | "Object" | "Array")
|
603
672
|
},
|
604
673
|
]?,
|
605
|
-
type: ("Input" | "Output" | "KnowledgeBase" | "Condition" | "Lex" | "Prompt" | "LambdaFunction" | "Storage" | "Agent" | "Retrieval" | "Iterator" | "Collector" | "InlineCode")
|
674
|
+
type: ("Input" | "Output" | "KnowledgeBase" | "Condition" | "Lex" | "Prompt" | "LambdaFunction" | "Storage" | "Agent" | "Retrieval" | "Iterator" | "Collector" | "InlineCode" | "Loop" | "LoopInput" | "LoopController")
|
606
675
|
},
|
607
676
|
]?
|
608
677
|
},
|
@@ -616,6 +685,7 @@ module Aws
|
|
616
685
|
interface _CreateFlowAliasResponseSuccess
|
617
686
|
include ::Seahorse::Client::_ResponseSuccess[Types::CreateFlowAliasResponse]
|
618
687
|
def arn: () -> ::String
|
688
|
+
def concurrency_configuration: () -> Types::FlowAliasConcurrencyConfiguration
|
619
689
|
def created_at: () -> ::Time
|
620
690
|
def description: () -> ::String
|
621
691
|
def flow_id: () -> ::String
|
@@ -627,6 +697,10 @@ module Aws
|
|
627
697
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#create_flow_alias-instance_method
|
628
698
|
def create_flow_alias: (
|
629
699
|
?client_token: ::String,
|
700
|
+
?concurrency_configuration: {
|
701
|
+
max_concurrency: ::Integer?,
|
702
|
+
type: ("Automatic" | "Manual")
|
703
|
+
},
|
630
704
|
?description: ::String,
|
631
705
|
flow_identifier: ::String,
|
632
706
|
name: ::String,
|
@@ -1245,6 +1319,7 @@ module Aws
|
|
1245
1319
|
interface _GetFlowAliasResponseSuccess
|
1246
1320
|
include ::Seahorse::Client::_ResponseSuccess[Types::GetFlowAliasResponse]
|
1247
1321
|
def arn: () -> ::String
|
1322
|
+
def concurrency_configuration: () -> Types::FlowAliasConcurrencyConfiguration
|
1248
1323
|
def created_at: () -> ::Time
|
1249
1324
|
def description: () -> ::String
|
1250
1325
|
def flow_id: () -> ::String
|
@@ -1789,6 +1864,7 @@ module Aws
|
|
1789
1864
|
agent_alias_id: ::String,
|
1790
1865
|
agent_alias_name: ::String,
|
1791
1866
|
agent_id: ::String,
|
1867
|
+
?alias_invocation_state: ("ACCEPT_INVOCATIONS" | "REJECT_INVOCATIONS"),
|
1792
1868
|
?description: ::String,
|
1793
1869
|
?routing_configuration: Array[
|
1794
1870
|
{
|
@@ -2070,8 +2146,64 @@ module Aws
|
|
2070
2146
|
guardrail_identifier: ::String?,
|
2071
2147
|
guardrail_version: ::String?
|
2072
2148
|
}?,
|
2149
|
+
inference_configuration: {
|
2150
|
+
text: {
|
2151
|
+
max_tokens: ::Integer?,
|
2152
|
+
stop_sequences: Array[::String]?,
|
2153
|
+
temperature: ::Float?,
|
2154
|
+
top_p: ::Float?
|
2155
|
+
}?
|
2156
|
+
}?,
|
2073
2157
|
knowledge_base_id: ::String,
|
2074
|
-
model_id: ::String
|
2158
|
+
model_id: ::String?,
|
2159
|
+
number_of_results: ::Integer?,
|
2160
|
+
orchestration_configuration: {
|
2161
|
+
additional_model_request_fields: Hash[::String, {
|
2162
|
+
}]?,
|
2163
|
+
inference_config: {
|
2164
|
+
text: {
|
2165
|
+
max_tokens: ::Integer?,
|
2166
|
+
stop_sequences: Array[::String]?,
|
2167
|
+
temperature: ::Float?,
|
2168
|
+
top_p: ::Float?
|
2169
|
+
}?
|
2170
|
+
}?,
|
2171
|
+
performance_config: {
|
2172
|
+
latency: ("standard" | "optimized")?
|
2173
|
+
}?,
|
2174
|
+
prompt_template: {
|
2175
|
+
text_prompt_template: ::String?
|
2176
|
+
}?
|
2177
|
+
}?,
|
2178
|
+
prompt_template: {
|
2179
|
+
text_prompt_template: ::String?
|
2180
|
+
}?,
|
2181
|
+
reranking_configuration: {
|
2182
|
+
bedrock_reranking_configuration: {
|
2183
|
+
metadata_configuration: {
|
2184
|
+
selection_mode: ("SELECTIVE" | "ALL"),
|
2185
|
+
selective_mode_configuration: {
|
2186
|
+
fields_to_exclude: Array[
|
2187
|
+
{
|
2188
|
+
field_name: ::String
|
2189
|
+
},
|
2190
|
+
]?,
|
2191
|
+
fields_to_include: Array[
|
2192
|
+
{
|
2193
|
+
field_name: ::String
|
2194
|
+
},
|
2195
|
+
]?
|
2196
|
+
}?
|
2197
|
+
}?,
|
2198
|
+
model_configuration: {
|
2199
|
+
additional_model_request_fields: Hash[::String, {
|
2200
|
+
}]?,
|
2201
|
+
model_arn: ::String
|
2202
|
+
},
|
2203
|
+
number_of_reranked_results: ::Integer?
|
2204
|
+
}?,
|
2205
|
+
type: ("BEDROCK_RERANKING_MODEL")
|
2206
|
+
}?
|
2075
2207
|
}?,
|
2076
2208
|
lambda_function: {
|
2077
2209
|
lambda_arn: ::String
|
@@ -2080,6 +2212,18 @@ module Aws
|
|
2080
2212
|
bot_alias_arn: ::String,
|
2081
2213
|
locale_id: ::String
|
2082
2214
|
}?,
|
2215
|
+
loop: {
|
2216
|
+
definition: untyped
|
2217
|
+
}?,
|
2218
|
+
loop_controller: {
|
2219
|
+
continue_condition: {
|
2220
|
+
expression: ::String?,
|
2221
|
+
name: ::String
|
2222
|
+
},
|
2223
|
+
max_iterations: ::Integer?
|
2224
|
+
}?,
|
2225
|
+
loop_input: {
|
2226
|
+
}?,
|
2083
2227
|
output: {
|
2084
2228
|
}?,
|
2085
2229
|
prompt: {
|
@@ -2191,6 +2335,7 @@ module Aws
|
|
2191
2335
|
}?,
|
2192
2336
|
inputs: Array[
|
2193
2337
|
{
|
2338
|
+
category: ("LoopCondition" | "ReturnValueToLoopStart" | "ExitLoop")?,
|
2194
2339
|
expression: ::String,
|
2195
2340
|
name: ::String,
|
2196
2341
|
type: ("String" | "Number" | "Boolean" | "Object" | "Array")
|
@@ -2203,7 +2348,7 @@ module Aws
|
|
2203
2348
|
type: ("String" | "Number" | "Boolean" | "Object" | "Array")
|
2204
2349
|
},
|
2205
2350
|
]?,
|
2206
|
-
type: ("Input" | "Output" | "KnowledgeBase" | "Condition" | "Lex" | "Prompt" | "LambdaFunction" | "Storage" | "Agent" | "Retrieval" | "Iterator" | "Collector" | "InlineCode")
|
2351
|
+
type: ("Input" | "Output" | "KnowledgeBase" | "Condition" | "Lex" | "Prompt" | "LambdaFunction" | "Storage" | "Agent" | "Retrieval" | "Iterator" | "Collector" | "InlineCode" | "Loop" | "LoopInput" | "LoopController")
|
2207
2352
|
},
|
2208
2353
|
]?
|
2209
2354
|
},
|
@@ -2217,6 +2362,7 @@ module Aws
|
|
2217
2362
|
interface _UpdateFlowAliasResponseSuccess
|
2218
2363
|
include ::Seahorse::Client::_ResponseSuccess[Types::UpdateFlowAliasResponse]
|
2219
2364
|
def arn: () -> ::String
|
2365
|
+
def concurrency_configuration: () -> Types::FlowAliasConcurrencyConfiguration
|
2220
2366
|
def created_at: () -> ::Time
|
2221
2367
|
def description: () -> ::String
|
2222
2368
|
def flow_id: () -> ::String
|
@@ -2228,6 +2374,10 @@ module Aws
|
|
2228
2374
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#update_flow_alias-instance_method
|
2229
2375
|
def update_flow_alias: (
|
2230
2376
|
alias_identifier: ::String,
|
2377
|
+
?concurrency_configuration: {
|
2378
|
+
max_concurrency: ::Integer?,
|
2379
|
+
type: ("Automatic" | "Manual")
|
2380
|
+
},
|
2231
2381
|
?description: ::String,
|
2232
2382
|
flow_identifier: ::String,
|
2233
2383
|
name: ::String,
|
@@ -2582,8 +2732,64 @@ module Aws
|
|
2582
2732
|
guardrail_identifier: ::String?,
|
2583
2733
|
guardrail_version: ::String?
|
2584
2734
|
}?,
|
2735
|
+
inference_configuration: {
|
2736
|
+
text: {
|
2737
|
+
max_tokens: ::Integer?,
|
2738
|
+
stop_sequences: Array[::String]?,
|
2739
|
+
temperature: ::Float?,
|
2740
|
+
top_p: ::Float?
|
2741
|
+
}?
|
2742
|
+
}?,
|
2585
2743
|
knowledge_base_id: ::String,
|
2586
|
-
model_id: ::String
|
2744
|
+
model_id: ::String?,
|
2745
|
+
number_of_results: ::Integer?,
|
2746
|
+
orchestration_configuration: {
|
2747
|
+
additional_model_request_fields: Hash[::String, {
|
2748
|
+
}]?,
|
2749
|
+
inference_config: {
|
2750
|
+
text: {
|
2751
|
+
max_tokens: ::Integer?,
|
2752
|
+
stop_sequences: Array[::String]?,
|
2753
|
+
temperature: ::Float?,
|
2754
|
+
top_p: ::Float?
|
2755
|
+
}?
|
2756
|
+
}?,
|
2757
|
+
performance_config: {
|
2758
|
+
latency: ("standard" | "optimized")?
|
2759
|
+
}?,
|
2760
|
+
prompt_template: {
|
2761
|
+
text_prompt_template: ::String?
|
2762
|
+
}?
|
2763
|
+
}?,
|
2764
|
+
prompt_template: {
|
2765
|
+
text_prompt_template: ::String?
|
2766
|
+
}?,
|
2767
|
+
reranking_configuration: {
|
2768
|
+
bedrock_reranking_configuration: {
|
2769
|
+
metadata_configuration: {
|
2770
|
+
selection_mode: ("SELECTIVE" | "ALL"),
|
2771
|
+
selective_mode_configuration: {
|
2772
|
+
fields_to_exclude: Array[
|
2773
|
+
{
|
2774
|
+
field_name: ::String
|
2775
|
+
},
|
2776
|
+
]?,
|
2777
|
+
fields_to_include: Array[
|
2778
|
+
{
|
2779
|
+
field_name: ::String
|
2780
|
+
},
|
2781
|
+
]?
|
2782
|
+
}?
|
2783
|
+
}?,
|
2784
|
+
model_configuration: {
|
2785
|
+
additional_model_request_fields: Hash[::String, {
|
2786
|
+
}]?,
|
2787
|
+
model_arn: ::String
|
2788
|
+
},
|
2789
|
+
number_of_reranked_results: ::Integer?
|
2790
|
+
}?,
|
2791
|
+
type: ("BEDROCK_RERANKING_MODEL")
|
2792
|
+
}?
|
2587
2793
|
}?,
|
2588
2794
|
lambda_function: {
|
2589
2795
|
lambda_arn: ::String
|
@@ -2592,6 +2798,18 @@ module Aws
|
|
2592
2798
|
bot_alias_arn: ::String,
|
2593
2799
|
locale_id: ::String
|
2594
2800
|
}?,
|
2801
|
+
loop: {
|
2802
|
+
definition: untyped
|
2803
|
+
}?,
|
2804
|
+
loop_controller: {
|
2805
|
+
continue_condition: {
|
2806
|
+
expression: ::String?,
|
2807
|
+
name: ::String
|
2808
|
+
},
|
2809
|
+
max_iterations: ::Integer?
|
2810
|
+
}?,
|
2811
|
+
loop_input: {
|
2812
|
+
}?,
|
2595
2813
|
output: {
|
2596
2814
|
}?,
|
2597
2815
|
prompt: {
|
@@ -2703,6 +2921,7 @@ module Aws
|
|
2703
2921
|
}?,
|
2704
2922
|
inputs: Array[
|
2705
2923
|
{
|
2924
|
+
category: ("LoopCondition" | "ReturnValueToLoopStart" | "ExitLoop")?,
|
2706
2925
|
expression: ::String,
|
2707
2926
|
name: ::String,
|
2708
2927
|
type: ("String" | "Number" | "Boolean" | "Object" | "Array")
|
@@ -2715,7 +2934,7 @@ module Aws
|
|
2715
2934
|
type: ("String" | "Number" | "Boolean" | "Object" | "Array")
|
2716
2935
|
},
|
2717
2936
|
]?,
|
2718
|
-
type: ("Input" | "Output" | "KnowledgeBase" | "Condition" | "Lex" | "Prompt" | "LambdaFunction" | "Storage" | "Agent" | "Retrieval" | "Iterator" | "Collector" | "InlineCode")
|
2937
|
+
type: ("Input" | "Output" | "KnowledgeBase" | "Condition" | "Lex" | "Prompt" | "LambdaFunction" | "Storage" | "Agent" | "Retrieval" | "Iterator" | "Collector" | "InlineCode" | "Loop" | "LoopInput" | "LoopController")
|
2719
2938
|
},
|
2720
2939
|
]?
|
2721
2940
|
}
|