aws-sdk-lexmodelsv2 1.44.0 → 1.45.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-lexmodelsv2/client.rb +337 -8
- data/lib/aws-sdk-lexmodelsv2/client_api.rb +194 -0
- data/lib/aws-sdk-lexmodelsv2/endpoints.rb +56 -0
- data/lib/aws-sdk-lexmodelsv2/plugins/endpoints.rb +8 -0
- data/lib/aws-sdk-lexmodelsv2/types.rb +562 -6
- data/lib/aws-sdk-lexmodelsv2.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a789153d5d4f334da1e06a833edd6bbbf56930062abc7ad4b05bae82e2df76e4
|
4
|
+
data.tar.gz: 74983211b84de1a73002fbab7abe56d7bcf604f755e9547ce3bb46608246cc5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5532cf5c8551cfe3063cecc0c5a6406b8ebf11a77ca5d42361aaa5c05560014f6c1b1cb9a0989493bf6d24c77ebaab4daee6ec02e5789cd9cb5d94da0217419
|
7
|
+
data.tar.gz: 28f13fc4f6391fd01596c7024387219b58a2dfee05664bff046e8a088d5cdbe36de2932619418cc39480c780b45a34cfc054f70f439ac9bbedba5651f113295d
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.45.0 (2023-11-27)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release introduces new generative AI features in AWS Lex: Assisted Slot Resolution, Descriptive Bot Building, and Sample Utterance Generation. These features leverage large language models available through Amazon Bedrock to improve the bot builder and customer experiences.
|
8
|
+
|
4
9
|
1.44.0 (2023-11-22)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.45.0
|
@@ -978,6 +978,10 @@ module Aws::LexModelsV2
|
|
978
978
|
# The Amazon Polly voice ID that Amazon Lex uses for voice interaction
|
979
979
|
# with the user.
|
980
980
|
#
|
981
|
+
# @option params [Types::GenerativeAISettings] :generative_ai_settings
|
982
|
+
# Contains specifications about the generative AI capabilities from
|
983
|
+
# Amazon Bedrock that you can turn on for your bot.
|
984
|
+
#
|
981
985
|
# @return [Types::CreateBotLocaleResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
982
986
|
#
|
983
987
|
# * {Types::CreateBotLocaleResponse#bot_id #bot_id} => String
|
@@ -989,6 +993,7 @@ module Aws::LexModelsV2
|
|
989
993
|
# * {Types::CreateBotLocaleResponse#voice_settings #voice_settings} => Types::VoiceSettings
|
990
994
|
# * {Types::CreateBotLocaleResponse#bot_locale_status #bot_locale_status} => String
|
991
995
|
# * {Types::CreateBotLocaleResponse#creation_date_time #creation_date_time} => Time
|
996
|
+
# * {Types::CreateBotLocaleResponse#generative_ai_settings #generative_ai_settings} => Types::GenerativeAISettings
|
992
997
|
#
|
993
998
|
# @example Request syntax with placeholder values
|
994
999
|
#
|
@@ -1002,6 +1007,30 @@ module Aws::LexModelsV2
|
|
1002
1007
|
# voice_id: "VoiceId", # required
|
1003
1008
|
# engine: "standard", # accepts standard, neural
|
1004
1009
|
# },
|
1010
|
+
# generative_ai_settings: {
|
1011
|
+
# runtime_settings: {
|
1012
|
+
# slot_resolution_improvement: {
|
1013
|
+
# enabled: false, # required
|
1014
|
+
# bedrock_model_specification: {
|
1015
|
+
# model_arn: "BedrockModelArn", # required
|
1016
|
+
# },
|
1017
|
+
# },
|
1018
|
+
# },
|
1019
|
+
# buildtime_settings: {
|
1020
|
+
# descriptive_bot_builder: {
|
1021
|
+
# enabled: false, # required
|
1022
|
+
# bedrock_model_specification: {
|
1023
|
+
# model_arn: "BedrockModelArn", # required
|
1024
|
+
# },
|
1025
|
+
# },
|
1026
|
+
# sample_utterance_generation: {
|
1027
|
+
# enabled: false, # required
|
1028
|
+
# bedrock_model_specification: {
|
1029
|
+
# model_arn: "BedrockModelArn", # required
|
1030
|
+
# },
|
1031
|
+
# },
|
1032
|
+
# },
|
1033
|
+
# },
|
1005
1034
|
# })
|
1006
1035
|
#
|
1007
1036
|
# @example Response structure
|
@@ -1016,6 +1045,12 @@ module Aws::LexModelsV2
|
|
1016
1045
|
# resp.voice_settings.engine #=> String, one of "standard", "neural"
|
1017
1046
|
# resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt", "Importing", "Processing"
|
1018
1047
|
# resp.creation_date_time #=> Time
|
1048
|
+
# resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.enabled #=> Boolean
|
1049
|
+
# resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.bedrock_model_specification.model_arn #=> String
|
1050
|
+
# resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.enabled #=> Boolean
|
1051
|
+
# resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.bedrock_model_specification.model_arn #=> String
|
1052
|
+
# resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.enabled #=> Boolean
|
1053
|
+
# resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.bedrock_model_specification.model_arn #=> String
|
1019
1054
|
#
|
1020
1055
|
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateBotLocale AWS API Documentation
|
1021
1056
|
#
|
@@ -1026,13 +1061,12 @@ module Aws::LexModelsV2
|
|
1026
1061
|
req.send_request(options)
|
1027
1062
|
end
|
1028
1063
|
|
1029
|
-
# Creates
|
1030
|
-
#
|
1031
|
-
#
|
1032
|
-
#
|
1033
|
-
#
|
1034
|
-
#
|
1035
|
-
# version to 1. Subsequent versions increment by 1.
|
1064
|
+
# Creates an immutable version of the bot. When you create the first
|
1065
|
+
# version of a bot, Amazon Lex sets the version number to 1. Subsequent
|
1066
|
+
# bot versions increase in an increment of 1. The version number will
|
1067
|
+
# always represent the total number of versions created of the bot, not
|
1068
|
+
# the current number of versions. If a bot version is deleted, that bot
|
1069
|
+
# version number will not be reused.
|
1036
1070
|
#
|
1037
1071
|
# @option params [required, String] :bot_id
|
1038
1072
|
# The identifier of the bot to create the version for.
|
@@ -2183,6 +2217,7 @@ module Aws::LexModelsV2
|
|
2183
2217
|
# resp.value_elicitation_setting.slot_capture_setting.code_hook.post_code_hook_specification.timeout_conditional.default_branch.response.allow_interrupt #=> Boolean
|
2184
2218
|
# resp.value_elicitation_setting.slot_capture_setting.elicitation_code_hook.enable_code_hook_invocation #=> Boolean
|
2185
2219
|
# resp.value_elicitation_setting.slot_capture_setting.elicitation_code_hook.invocation_label #=> String
|
2220
|
+
# resp.value_elicitation_setting.slot_resolution_setting.slot_resolution_strategy #=> String, one of "EnhancedFallback", "Default"
|
2186
2221
|
# resp.obfuscation_setting.obfuscation_setting_type #=> String, one of "None", "DefaultObfuscation"
|
2187
2222
|
# resp.bot_id #=> String
|
2188
2223
|
# resp.bot_version #=> String
|
@@ -3317,6 +3352,7 @@ module Aws::LexModelsV2
|
|
3317
3352
|
# * {Types::DescribeBotLocaleResponse#last_build_submitted_date_time #last_build_submitted_date_time} => Time
|
3318
3353
|
# * {Types::DescribeBotLocaleResponse#bot_locale_history_events #bot_locale_history_events} => Array<Types::BotLocaleHistoryEvent>
|
3319
3354
|
# * {Types::DescribeBotLocaleResponse#recommended_actions #recommended_actions} => Array<String>
|
3355
|
+
# * {Types::DescribeBotLocaleResponse#generative_ai_settings #generative_ai_settings} => Types::GenerativeAISettings
|
3320
3356
|
#
|
3321
3357
|
# @example Request syntax with placeholder values
|
3322
3358
|
#
|
@@ -3349,6 +3385,12 @@ module Aws::LexModelsV2
|
|
3349
3385
|
# resp.bot_locale_history_events[0].event_date #=> Time
|
3350
3386
|
# resp.recommended_actions #=> Array
|
3351
3387
|
# resp.recommended_actions[0] #=> String
|
3388
|
+
# resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.enabled #=> Boolean
|
3389
|
+
# resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.bedrock_model_specification.model_arn #=> String
|
3390
|
+
# resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.enabled #=> Boolean
|
3391
|
+
# resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.bedrock_model_specification.model_arn #=> String
|
3392
|
+
# resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.enabled #=> Boolean
|
3393
|
+
# resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.bedrock_model_specification.model_arn #=> String
|
3352
3394
|
#
|
3353
3395
|
#
|
3354
3396
|
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
@@ -3449,6 +3491,73 @@ module Aws::LexModelsV2
|
|
3449
3491
|
req.send_request(options)
|
3450
3492
|
end
|
3451
3493
|
|
3494
|
+
# Returns information about a request to generate a bot through natural
|
3495
|
+
# language description, made through the `StartBotResource` API. Use the
|
3496
|
+
# `generatedBotLocaleUrl` to retrieve the Amazon S3 object containing
|
3497
|
+
# the bot locale configuration. You can then modify and import this
|
3498
|
+
# configuration.
|
3499
|
+
#
|
3500
|
+
# @option params [required, String] :bot_id
|
3501
|
+
# The unique identifier of the bot for which to return the generation
|
3502
|
+
# details.
|
3503
|
+
#
|
3504
|
+
# @option params [required, String] :bot_version
|
3505
|
+
# The version of the bot for which to return the generation details.
|
3506
|
+
#
|
3507
|
+
# @option params [required, String] :locale_id
|
3508
|
+
# The locale of the bot for which to return the generation details.
|
3509
|
+
#
|
3510
|
+
# @option params [required, String] :generation_id
|
3511
|
+
# The unique identifier of the generation request for which to return
|
3512
|
+
# the generation details.
|
3513
|
+
#
|
3514
|
+
# @return [Types::DescribeBotResourceGenerationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3515
|
+
#
|
3516
|
+
# * {Types::DescribeBotResourceGenerationResponse#bot_id #bot_id} => String
|
3517
|
+
# * {Types::DescribeBotResourceGenerationResponse#bot_version #bot_version} => String
|
3518
|
+
# * {Types::DescribeBotResourceGenerationResponse#locale_id #locale_id} => String
|
3519
|
+
# * {Types::DescribeBotResourceGenerationResponse#generation_id #generation_id} => String
|
3520
|
+
# * {Types::DescribeBotResourceGenerationResponse#failure_reasons #failure_reasons} => Array<String>
|
3521
|
+
# * {Types::DescribeBotResourceGenerationResponse#generation_status #generation_status} => String
|
3522
|
+
# * {Types::DescribeBotResourceGenerationResponse#generation_input_prompt #generation_input_prompt} => String
|
3523
|
+
# * {Types::DescribeBotResourceGenerationResponse#generated_bot_locale_url #generated_bot_locale_url} => String
|
3524
|
+
# * {Types::DescribeBotResourceGenerationResponse#creation_date_time #creation_date_time} => Time
|
3525
|
+
# * {Types::DescribeBotResourceGenerationResponse#model_arn #model_arn} => String
|
3526
|
+
# * {Types::DescribeBotResourceGenerationResponse#last_updated_date_time #last_updated_date_time} => Time
|
3527
|
+
#
|
3528
|
+
# @example Request syntax with placeholder values
|
3529
|
+
#
|
3530
|
+
# resp = client.describe_bot_resource_generation({
|
3531
|
+
# bot_id: "Id", # required
|
3532
|
+
# bot_version: "BotVersion", # required
|
3533
|
+
# locale_id: "LocaleId", # required
|
3534
|
+
# generation_id: "Id", # required
|
3535
|
+
# })
|
3536
|
+
#
|
3537
|
+
# @example Response structure
|
3538
|
+
#
|
3539
|
+
# resp.bot_id #=> String
|
3540
|
+
# resp.bot_version #=> String
|
3541
|
+
# resp.locale_id #=> String
|
3542
|
+
# resp.generation_id #=> String
|
3543
|
+
# resp.failure_reasons #=> Array
|
3544
|
+
# resp.failure_reasons[0] #=> String
|
3545
|
+
# resp.generation_status #=> String, one of "Failed", "Complete", "InProgress"
|
3546
|
+
# resp.generation_input_prompt #=> String
|
3547
|
+
# resp.generated_bot_locale_url #=> String
|
3548
|
+
# resp.creation_date_time #=> Time
|
3549
|
+
# resp.model_arn #=> String
|
3550
|
+
# resp.last_updated_date_time #=> Time
|
3551
|
+
#
|
3552
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeBotResourceGeneration AWS API Documentation
|
3553
|
+
#
|
3554
|
+
# @overload describe_bot_resource_generation(params = {})
|
3555
|
+
# @param [Hash] params ({})
|
3556
|
+
def describe_bot_resource_generation(params = {}, options = {})
|
3557
|
+
req = build_request(:describe_bot_resource_generation, params)
|
3558
|
+
req.send_request(options)
|
3559
|
+
end
|
3560
|
+
|
3452
3561
|
# Provides metadata about a version of a bot.
|
3453
3562
|
#
|
3454
3563
|
# @option params [required, String] :bot_id
|
@@ -4459,6 +4568,7 @@ module Aws::LexModelsV2
|
|
4459
4568
|
# resp.value_elicitation_setting.slot_capture_setting.code_hook.post_code_hook_specification.timeout_conditional.default_branch.response.allow_interrupt #=> Boolean
|
4460
4569
|
# resp.value_elicitation_setting.slot_capture_setting.elicitation_code_hook.enable_code_hook_invocation #=> Boolean
|
4461
4570
|
# resp.value_elicitation_setting.slot_capture_setting.elicitation_code_hook.invocation_label #=> String
|
4571
|
+
# resp.value_elicitation_setting.slot_resolution_setting.slot_resolution_strategy #=> String, one of "EnhancedFallback", "Default"
|
4462
4572
|
# resp.obfuscation_setting.obfuscation_setting_type #=> String, one of "None", "DefaultObfuscation"
|
4463
4573
|
# resp.bot_id #=> String
|
4464
4574
|
# resp.bot_version #=> String
|
@@ -4870,6 +4980,55 @@ module Aws::LexModelsV2
|
|
4870
4980
|
req.send_request(options)
|
4871
4981
|
end
|
4872
4982
|
|
4983
|
+
# Generates sample utterances for an intent.
|
4984
|
+
#
|
4985
|
+
# @option params [required, String] :intent_id
|
4986
|
+
# The intent unique Id for the bot request to generate utterances.
|
4987
|
+
#
|
4988
|
+
# @option params [required, String] :bot_id
|
4989
|
+
# The bot unique Id for the bot request to generate utterances.
|
4990
|
+
#
|
4991
|
+
# @option params [required, String] :bot_version
|
4992
|
+
# The bot version for the bot request to generate utterances.
|
4993
|
+
#
|
4994
|
+
# @option params [required, String] :locale_id
|
4995
|
+
# The unique locale Id for the bot request to generate utterances.
|
4996
|
+
#
|
4997
|
+
# @return [Types::GenerateBotElementResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4998
|
+
#
|
4999
|
+
# * {Types::GenerateBotElementResponse#bot_id #bot_id} => String
|
5000
|
+
# * {Types::GenerateBotElementResponse#bot_version #bot_version} => String
|
5001
|
+
# * {Types::GenerateBotElementResponse#locale_id #locale_id} => String
|
5002
|
+
# * {Types::GenerateBotElementResponse#intent_id #intent_id} => String
|
5003
|
+
# * {Types::GenerateBotElementResponse#sample_utterances #sample_utterances} => Array<Types::SampleUtterance>
|
5004
|
+
#
|
5005
|
+
# @example Request syntax with placeholder values
|
5006
|
+
#
|
5007
|
+
# resp = client.generate_bot_element({
|
5008
|
+
# intent_id: "Id", # required
|
5009
|
+
# bot_id: "Id", # required
|
5010
|
+
# bot_version: "BotVersion", # required
|
5011
|
+
# locale_id: "LocaleId", # required
|
5012
|
+
# })
|
5013
|
+
#
|
5014
|
+
# @example Response structure
|
5015
|
+
#
|
5016
|
+
# resp.bot_id #=> String
|
5017
|
+
# resp.bot_version #=> String
|
5018
|
+
# resp.locale_id #=> String
|
5019
|
+
# resp.intent_id #=> String
|
5020
|
+
# resp.sample_utterances #=> Array
|
5021
|
+
# resp.sample_utterances[0].utterance #=> String
|
5022
|
+
#
|
5023
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/GenerateBotElement AWS API Documentation
|
5024
|
+
#
|
5025
|
+
# @overload generate_bot_element(params = {})
|
5026
|
+
# @param [Hash] params ({})
|
5027
|
+
def generate_bot_element(params = {}, options = {})
|
5028
|
+
req = build_request(:generate_bot_element, params)
|
5029
|
+
req.send_request(options)
|
5030
|
+
end
|
5031
|
+
|
4873
5032
|
# The pre-signed Amazon S3 URL to download the test execution result
|
4874
5033
|
# artifacts.
|
4875
5034
|
#
|
@@ -5239,6 +5398,76 @@ module Aws::LexModelsV2
|
|
5239
5398
|
req.send_request(options)
|
5240
5399
|
end
|
5241
5400
|
|
5401
|
+
# Lists the generation requests made for a bot locale.
|
5402
|
+
#
|
5403
|
+
# @option params [required, String] :bot_id
|
5404
|
+
# The unique identifier of the bot whose generation requests you want to
|
5405
|
+
# view.
|
5406
|
+
#
|
5407
|
+
# @option params [required, String] :bot_version
|
5408
|
+
# The version of the bot whose generation requests you want to view.
|
5409
|
+
#
|
5410
|
+
# @option params [required, String] :locale_id
|
5411
|
+
# The locale of the bot whose generation requests you want to view.
|
5412
|
+
#
|
5413
|
+
# @option params [Types::GenerationSortBy] :sort_by
|
5414
|
+
# An object containing information about the attribute and the method by
|
5415
|
+
# which to sort the results
|
5416
|
+
#
|
5417
|
+
# @option params [Integer] :max_results
|
5418
|
+
# The maximum number of results to return in the response.
|
5419
|
+
#
|
5420
|
+
# @option params [String] :next_token
|
5421
|
+
# If the total number of results is greater than the number specified in
|
5422
|
+
# the `maxResults`, the response returns a token in the `nextToken`
|
5423
|
+
# field. Use this token when making a request to return the next batch
|
5424
|
+
# of results.
|
5425
|
+
#
|
5426
|
+
# @return [Types::ListBotResourceGenerationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
5427
|
+
#
|
5428
|
+
# * {Types::ListBotResourceGenerationsResponse#bot_id #bot_id} => String
|
5429
|
+
# * {Types::ListBotResourceGenerationsResponse#bot_version #bot_version} => String
|
5430
|
+
# * {Types::ListBotResourceGenerationsResponse#locale_id #locale_id} => String
|
5431
|
+
# * {Types::ListBotResourceGenerationsResponse#generation_summaries #generation_summaries} => Array<Types::GenerationSummary>
|
5432
|
+
# * {Types::ListBotResourceGenerationsResponse#next_token #next_token} => String
|
5433
|
+
#
|
5434
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
5435
|
+
#
|
5436
|
+
# @example Request syntax with placeholder values
|
5437
|
+
#
|
5438
|
+
# resp = client.list_bot_resource_generations({
|
5439
|
+
# bot_id: "Id", # required
|
5440
|
+
# bot_version: "BotVersion", # required
|
5441
|
+
# locale_id: "LocaleId", # required
|
5442
|
+
# sort_by: {
|
5443
|
+
# attribute: "creationStartTime", # required, accepts creationStartTime, lastUpdatedTime
|
5444
|
+
# order: "Ascending", # required, accepts Ascending, Descending
|
5445
|
+
# },
|
5446
|
+
# max_results: 1,
|
5447
|
+
# next_token: "NextToken",
|
5448
|
+
# })
|
5449
|
+
#
|
5450
|
+
# @example Response structure
|
5451
|
+
#
|
5452
|
+
# resp.bot_id #=> String
|
5453
|
+
# resp.bot_version #=> String
|
5454
|
+
# resp.locale_id #=> String
|
5455
|
+
# resp.generation_summaries #=> Array
|
5456
|
+
# resp.generation_summaries[0].generation_id #=> String
|
5457
|
+
# resp.generation_summaries[0].generation_status #=> String, one of "Failed", "Complete", "InProgress"
|
5458
|
+
# resp.generation_summaries[0].creation_date_time #=> Time
|
5459
|
+
# resp.generation_summaries[0].last_updated_date_time #=> Time
|
5460
|
+
# resp.next_token #=> String
|
5461
|
+
#
|
5462
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListBotResourceGenerations AWS API Documentation
|
5463
|
+
#
|
5464
|
+
# @overload list_bot_resource_generations(params = {})
|
5465
|
+
# @param [Hash] params ({})
|
5466
|
+
def list_bot_resource_generations(params = {}, options = {})
|
5467
|
+
req = build_request(:list_bot_resource_generations, params)
|
5468
|
+
req.send_request(options)
|
5469
|
+
end
|
5470
|
+
|
5242
5471
|
# Gets information about all of the versions of a bot.
|
5243
5472
|
#
|
5244
5473
|
# The `ListBotVersions` operation returns a summary of each version of a
|
@@ -7678,6 +7907,68 @@ module Aws::LexModelsV2
|
|
7678
7907
|
req.send_request(options)
|
7679
7908
|
end
|
7680
7909
|
|
7910
|
+
# Starts a request for the descriptive bot builder to generate a bot
|
7911
|
+
# locale configuration based on the prompt you provide it. After you
|
7912
|
+
# make this call, use the `DescribeBotResourceGeneration` operation to
|
7913
|
+
# check on the status of the generation and for the
|
7914
|
+
# `generatedBotLocaleUrl` when the generation is complete. Use that
|
7915
|
+
# value to retrieve the Amazon S3 object containing the bot locale
|
7916
|
+
# configuration. You can then modify and import this configuration.
|
7917
|
+
#
|
7918
|
+
# @option params [required, String] :generation_input_prompt
|
7919
|
+
# The prompt to generate intents and slot types for the bot locale. Your
|
7920
|
+
# description should be both *detailed* and *precise* to help generate
|
7921
|
+
# appropriate and sufficient intents for your bot. Include a list of
|
7922
|
+
# actions to improve the intent creation process.
|
7923
|
+
#
|
7924
|
+
# @option params [required, String] :bot_id
|
7925
|
+
# The unique identifier of the bot for which to generate intents and
|
7926
|
+
# slot types.
|
7927
|
+
#
|
7928
|
+
# @option params [required, String] :bot_version
|
7929
|
+
# The version of the bot for which to generate intents and slot types.
|
7930
|
+
#
|
7931
|
+
# @option params [required, String] :locale_id
|
7932
|
+
# The locale of the bot for which to generate intents and slot types.
|
7933
|
+
#
|
7934
|
+
# @return [Types::StartBotResourceGenerationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
7935
|
+
#
|
7936
|
+
# * {Types::StartBotResourceGenerationResponse#generation_input_prompt #generation_input_prompt} => String
|
7937
|
+
# * {Types::StartBotResourceGenerationResponse#generation_id #generation_id} => String
|
7938
|
+
# * {Types::StartBotResourceGenerationResponse#bot_id #bot_id} => String
|
7939
|
+
# * {Types::StartBotResourceGenerationResponse#bot_version #bot_version} => String
|
7940
|
+
# * {Types::StartBotResourceGenerationResponse#locale_id #locale_id} => String
|
7941
|
+
# * {Types::StartBotResourceGenerationResponse#generation_status #generation_status} => String
|
7942
|
+
# * {Types::StartBotResourceGenerationResponse#creation_date_time #creation_date_time} => Time
|
7943
|
+
#
|
7944
|
+
# @example Request syntax with placeholder values
|
7945
|
+
#
|
7946
|
+
# resp = client.start_bot_resource_generation({
|
7947
|
+
# generation_input_prompt: "GenerationInput", # required
|
7948
|
+
# bot_id: "Id", # required
|
7949
|
+
# bot_version: "BotVersion", # required
|
7950
|
+
# locale_id: "LocaleId", # required
|
7951
|
+
# })
|
7952
|
+
#
|
7953
|
+
# @example Response structure
|
7954
|
+
#
|
7955
|
+
# resp.generation_input_prompt #=> String
|
7956
|
+
# resp.generation_id #=> String
|
7957
|
+
# resp.bot_id #=> String
|
7958
|
+
# resp.bot_version #=> String
|
7959
|
+
# resp.locale_id #=> String
|
7960
|
+
# resp.generation_status #=> String, one of "Failed", "Complete", "InProgress"
|
7961
|
+
# resp.creation_date_time #=> Time
|
7962
|
+
#
|
7963
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/StartBotResourceGeneration AWS API Documentation
|
7964
|
+
#
|
7965
|
+
# @overload start_bot_resource_generation(params = {})
|
7966
|
+
# @param [Hash] params ({})
|
7967
|
+
def start_bot_resource_generation(params = {}, options = {})
|
7968
|
+
req = build_request(:start_bot_resource_generation, params)
|
7969
|
+
req.send_request(options)
|
7970
|
+
end
|
7971
|
+
|
7681
7972
|
# Starts importing a bot, bot locale, or custom vocabulary from a zip
|
7682
7973
|
# archive that you uploaded to an S3 bucket.
|
7683
7974
|
#
|
@@ -8346,6 +8637,12 @@ module Aws::LexModelsV2
|
|
8346
8637
|
# The new Amazon Polly voice Amazon Lex should use for voice interaction
|
8347
8638
|
# with the user.
|
8348
8639
|
#
|
8640
|
+
# @option params [Types::GenerativeAISettings] :generative_ai_settings
|
8641
|
+
# Contains settings for generative AI features powered by Amazon Bedrock
|
8642
|
+
# for your bot locale. Use this object to turn generative AI features on
|
8643
|
+
# and off. Pricing may differ if you turn a feature on. For more
|
8644
|
+
# information, see LINK.
|
8645
|
+
#
|
8349
8646
|
# @return [Types::UpdateBotLocaleResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
8350
8647
|
#
|
8351
8648
|
# * {Types::UpdateBotLocaleResponse#bot_id #bot_id} => String
|
@@ -8360,6 +8657,7 @@ module Aws::LexModelsV2
|
|
8360
8657
|
# * {Types::UpdateBotLocaleResponse#creation_date_time #creation_date_time} => Time
|
8361
8658
|
# * {Types::UpdateBotLocaleResponse#last_updated_date_time #last_updated_date_time} => Time
|
8362
8659
|
# * {Types::UpdateBotLocaleResponse#recommended_actions #recommended_actions} => Array<String>
|
8660
|
+
# * {Types::UpdateBotLocaleResponse#generative_ai_settings #generative_ai_settings} => Types::GenerativeAISettings
|
8363
8661
|
#
|
8364
8662
|
# @example Request syntax with placeholder values
|
8365
8663
|
#
|
@@ -8373,6 +8671,30 @@ module Aws::LexModelsV2
|
|
8373
8671
|
# voice_id: "VoiceId", # required
|
8374
8672
|
# engine: "standard", # accepts standard, neural
|
8375
8673
|
# },
|
8674
|
+
# generative_ai_settings: {
|
8675
|
+
# runtime_settings: {
|
8676
|
+
# slot_resolution_improvement: {
|
8677
|
+
# enabled: false, # required
|
8678
|
+
# bedrock_model_specification: {
|
8679
|
+
# model_arn: "BedrockModelArn", # required
|
8680
|
+
# },
|
8681
|
+
# },
|
8682
|
+
# },
|
8683
|
+
# buildtime_settings: {
|
8684
|
+
# descriptive_bot_builder: {
|
8685
|
+
# enabled: false, # required
|
8686
|
+
# bedrock_model_specification: {
|
8687
|
+
# model_arn: "BedrockModelArn", # required
|
8688
|
+
# },
|
8689
|
+
# },
|
8690
|
+
# sample_utterance_generation: {
|
8691
|
+
# enabled: false, # required
|
8692
|
+
# bedrock_model_specification: {
|
8693
|
+
# model_arn: "BedrockModelArn", # required
|
8694
|
+
# },
|
8695
|
+
# },
|
8696
|
+
# },
|
8697
|
+
# },
|
8376
8698
|
# })
|
8377
8699
|
#
|
8378
8700
|
# @example Response structure
|
@@ -8392,6 +8714,12 @@ module Aws::LexModelsV2
|
|
8392
8714
|
# resp.last_updated_date_time #=> Time
|
8393
8715
|
# resp.recommended_actions #=> Array
|
8394
8716
|
# resp.recommended_actions[0] #=> String
|
8717
|
+
# resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.enabled #=> Boolean
|
8718
|
+
# resp.generative_ai_settings.runtime_settings.slot_resolution_improvement.bedrock_model_specification.model_arn #=> String
|
8719
|
+
# resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.enabled #=> Boolean
|
8720
|
+
# resp.generative_ai_settings.buildtime_settings.descriptive_bot_builder.bedrock_model_specification.model_arn #=> String
|
8721
|
+
# resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.enabled #=> Boolean
|
8722
|
+
# resp.generative_ai_settings.buildtime_settings.sample_utterance_generation.bedrock_model_specification.model_arn #=> String
|
8395
8723
|
#
|
8396
8724
|
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateBotLocale AWS API Documentation
|
8397
8725
|
#
|
@@ -9386,6 +9714,7 @@ module Aws::LexModelsV2
|
|
9386
9714
|
# resp.value_elicitation_setting.slot_capture_setting.code_hook.post_code_hook_specification.timeout_conditional.default_branch.response.allow_interrupt #=> Boolean
|
9387
9715
|
# resp.value_elicitation_setting.slot_capture_setting.elicitation_code_hook.enable_code_hook_invocation #=> Boolean
|
9388
9716
|
# resp.value_elicitation_setting.slot_capture_setting.elicitation_code_hook.invocation_label #=> String
|
9717
|
+
# resp.value_elicitation_setting.slot_resolution_setting.slot_resolution_strategy #=> String, one of "EnhancedFallback", "Default"
|
9389
9718
|
# resp.obfuscation_setting.obfuscation_setting_type #=> String, one of "None", "DefaultObfuscation"
|
9390
9719
|
# resp.bot_id #=> String
|
9391
9720
|
# resp.bot_version #=> String
|
@@ -9726,7 +10055,7 @@ module Aws::LexModelsV2
|
|
9726
10055
|
params: params,
|
9727
10056
|
config: config)
|
9728
10057
|
context[:gem_name] = 'aws-sdk-lexmodelsv2'
|
9729
|
-
context[:gem_version] = '1.
|
10058
|
+
context[:gem_version] = '1.45.0'
|
9730
10059
|
Seahorse::Client::Request.new(handlers, context)
|
9731
10060
|
end
|
9732
10061
|
|