aws-sdk-lexmodelbuildingservice 1.33.0 → 1.34.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34bb74aba61d93f9b0e6d164ed7cc05d4369bc0020604217767fecf98d2a13d7
|
4
|
+
data.tar.gz: f1294af7f42e486b52268296b028cc16f9186b009aaa4d1762a5e92fadca9775
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 404de0085c2462be4cb2eb6f9a95affa834a2375a7855c25275714ca5668551f1716070b650819f1c6358e6d7683e1d333993bd1a6ded8653e31165de6c59c8d
|
7
|
+
data.tar.gz: 3341c544a2f3771cbbcc2383c0e65a32e03d3a6be2bd53bb66918fb391a9573d30a50e98269045ad82171a941f22e1547cd13306e2b3029c9c30f61afbc9b278
|
@@ -358,6 +358,7 @@ module Aws::LexModelBuildingService
|
|
358
358
|
# * {Types::CreateBotVersionResponse#version #version} => String
|
359
359
|
# * {Types::CreateBotVersionResponse#locale #locale} => String
|
360
360
|
# * {Types::CreateBotVersionResponse#child_directed #child_directed} => Boolean
|
361
|
+
# * {Types::CreateBotVersionResponse#enable_model_improvements #enable_model_improvements} => Boolean
|
361
362
|
# * {Types::CreateBotVersionResponse#detect_sentiment #detect_sentiment} => Boolean
|
362
363
|
#
|
363
364
|
# @example Request syntax with placeholder values
|
@@ -395,6 +396,7 @@ module Aws::LexModelBuildingService
|
|
395
396
|
# resp.version #=> String
|
396
397
|
# resp.locale #=> String, one of "en-US", "en-GB", "de-DE"
|
397
398
|
# resp.child_directed #=> Boolean
|
399
|
+
# resp.enable_model_improvements #=> Boolean
|
398
400
|
# resp.detect_sentiment #=> Boolean
|
399
401
|
#
|
400
402
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/CreateBotVersion AWS API Documentation
|
@@ -959,6 +961,8 @@ module Aws::LexModelBuildingService
|
|
959
961
|
# * {Types::GetBotResponse#name #name} => String
|
960
962
|
# * {Types::GetBotResponse#description #description} => String
|
961
963
|
# * {Types::GetBotResponse#intents #intents} => Array<Types::Intent>
|
964
|
+
# * {Types::GetBotResponse#enable_model_improvements #enable_model_improvements} => Boolean
|
965
|
+
# * {Types::GetBotResponse#nlu_intent_confidence_threshold #nlu_intent_confidence_threshold} => Float
|
962
966
|
# * {Types::GetBotResponse#clarification_prompt #clarification_prompt} => Types::Prompt
|
963
967
|
# * {Types::GetBotResponse#abort_statement #abort_statement} => Types::Statement
|
964
968
|
# * {Types::GetBotResponse#status #status} => String
|
@@ -1042,6 +1046,8 @@ module Aws::LexModelBuildingService
|
|
1042
1046
|
# resp.intents #=> Array
|
1043
1047
|
# resp.intents[0].intent_name #=> String
|
1044
1048
|
# resp.intents[0].intent_version #=> String
|
1049
|
+
# resp.enable_model_improvements #=> Boolean
|
1050
|
+
# resp.nlu_intent_confidence_threshold #=> Float
|
1045
1051
|
# resp.clarification_prompt.messages #=> Array
|
1046
1052
|
# resp.clarification_prompt.messages[0].content_type #=> String, one of "PlainText", "SSML", "CustomPayload"
|
1047
1053
|
# resp.clarification_prompt.messages[0].content #=> String
|
@@ -2513,6 +2519,77 @@ module Aws::LexModelBuildingService
|
|
2513
2519
|
# user can express. For example, a pizza ordering bot might support an
|
2514
2520
|
# OrderPizza intent. For more information, see how-it-works.
|
2515
2521
|
#
|
2522
|
+
# @option params [Boolean] :enable_model_improvements
|
2523
|
+
# Set to `true` to enable the use of a new natural language
|
2524
|
+
# understanding (NLU) model. Using the new NLU may improve the
|
2525
|
+
# performance of your bot.
|
2526
|
+
#
|
2527
|
+
# When you set the `enableModelImprovements` parameter to `true` you can
|
2528
|
+
# use the `nluIntentConfidenceThreshold` parameter to configure
|
2529
|
+
# confidence scores. For more information, see [Confidence Scores][1].
|
2530
|
+
#
|
2531
|
+
# You can only set the `enableModelImprovements` parameter in certain
|
2532
|
+
# Regions. If you set the parameter to `true`, your bot will use the new
|
2533
|
+
# NLU. If you set the parameter to `false`, your bot will continue to
|
2534
|
+
# use the original NLU. If you set the parameter to `false` after
|
2535
|
+
# setting it to `true`, your bot will return to the original NLU.
|
2536
|
+
#
|
2537
|
+
# The Regions where you can set the `enableModelImprovements` parameter
|
2538
|
+
# to `true` are:
|
2539
|
+
#
|
2540
|
+
# * US East (N. Virginia) (us-east-1)
|
2541
|
+
#
|
2542
|
+
# * US West (Oregon) (us-west-2)
|
2543
|
+
#
|
2544
|
+
# * Asia Pacific (Sydney) (ap-southeast-2)
|
2545
|
+
#
|
2546
|
+
# * EU (Ireland) (eu-west-1)
|
2547
|
+
#
|
2548
|
+
# In other Regions, the `enableModelImprovements` parameter is set to
|
2549
|
+
# `true` by default. In these Regions setting the parameter to `false`
|
2550
|
+
# throws a `ValidationException` exception.
|
2551
|
+
#
|
2552
|
+
# * Asia Pacific (Singapore) (ap-southeast-1)
|
2553
|
+
#
|
2554
|
+
# * Asia Pacific (Tokyo) (ap-northeast-1)
|
2555
|
+
#
|
2556
|
+
# * EU (Frankfurt) (eu-central-1)
|
2557
|
+
#
|
2558
|
+
# * EU (London) (eu-west-2)
|
2559
|
+
#
|
2560
|
+
#
|
2561
|
+
#
|
2562
|
+
# [1]: https://docs.aws.amazon.com/lex/latest/dg/confidence-scores.html
|
2563
|
+
#
|
2564
|
+
# @option params [Float] :nlu_intent_confidence_threshold
|
2565
|
+
# Determines the threshold where Amazon Lex will insert the
|
2566
|
+
# `AMAZON.FallbackIntent`, `AMAZON.KendraSearchIntent`, or both when
|
2567
|
+
# returning alternative intents in a [PostContent][1] or [PostText][2]
|
2568
|
+
# response. `AMAZON.FallbackIntent` and `AMAZON.KendraSearchIntent` are
|
2569
|
+
# only inserted if they are configured for the bot.
|
2570
|
+
#
|
2571
|
+
# You must set the `enableModelImprovements` parameter to `true` to use
|
2572
|
+
# confidence scores.
|
2573
|
+
#
|
2574
|
+
# For example, suppose a bot is configured with the confidence threshold
|
2575
|
+
# of 0.80 and the `AMAZON.FallbackIntent`. Amazon Lex returns three
|
2576
|
+
# alternative intents with the following confidence scores: IntentA
|
2577
|
+
# (0.70), IntentB (0.60), IntentC (0.50). The response from the
|
2578
|
+
# `PostText` operation would be:
|
2579
|
+
#
|
2580
|
+
# * AMAZON.FallbackIntent
|
2581
|
+
#
|
2582
|
+
# * IntentA
|
2583
|
+
#
|
2584
|
+
# * IntentB
|
2585
|
+
#
|
2586
|
+
# * IntentC
|
2587
|
+
#
|
2588
|
+
#
|
2589
|
+
#
|
2590
|
+
# [1]: https://docs.aws.amazon.com/lex/latest/dg/API_runtime_PostContent.html
|
2591
|
+
# [2]: https://docs.aws.amazon.com/lex/latest/dg/API_runtime_PostText.html
|
2592
|
+
#
|
2516
2593
|
# @option params [Types::Prompt] :clarification_prompt
|
2517
2594
|
# When Amazon Lex doesn't understand the user's intent, it uses this
|
2518
2595
|
# message to get clarification. To specify how many times Amazon Lex
|
@@ -2687,6 +2764,8 @@ module Aws::LexModelBuildingService
|
|
2687
2764
|
# * {Types::PutBotResponse#name #name} => String
|
2688
2765
|
# * {Types::PutBotResponse#description #description} => String
|
2689
2766
|
# * {Types::PutBotResponse#intents #intents} => Array<Types::Intent>
|
2767
|
+
# * {Types::PutBotResponse#enable_model_improvements #enable_model_improvements} => Boolean
|
2768
|
+
# * {Types::PutBotResponse#nlu_intent_confidence_threshold #nlu_intent_confidence_threshold} => Float
|
2690
2769
|
# * {Types::PutBotResponse#clarification_prompt #clarification_prompt} => Types::Prompt
|
2691
2770
|
# * {Types::PutBotResponse#abort_statement #abort_statement} => Types::Statement
|
2692
2771
|
# * {Types::PutBotResponse#status #status} => String
|
@@ -2804,6 +2883,8 @@ module Aws::LexModelBuildingService
|
|
2804
2883
|
# intent_version: "Version", # required
|
2805
2884
|
# },
|
2806
2885
|
# ],
|
2886
|
+
# enable_model_improvements: false,
|
2887
|
+
# nlu_intent_confidence_threshold: 1.0,
|
2807
2888
|
# clarification_prompt: {
|
2808
2889
|
# messages: [ # required
|
2809
2890
|
# {
|
@@ -2848,6 +2929,8 @@ module Aws::LexModelBuildingService
|
|
2848
2929
|
# resp.intents #=> Array
|
2849
2930
|
# resp.intents[0].intent_name #=> String
|
2850
2931
|
# resp.intents[0].intent_version #=> String
|
2932
|
+
# resp.enable_model_improvements #=> Boolean
|
2933
|
+
# resp.nlu_intent_confidence_threshold #=> Float
|
2851
2934
|
# resp.clarification_prompt.messages #=> Array
|
2852
2935
|
# resp.clarification_prompt.messages[0].content_type #=> String, one of "PlainText", "SSML", "CustomPayload"
|
2853
2936
|
# resp.clarification_prompt.messages[0].content #=> String
|
@@ -3852,7 +3935,7 @@ module Aws::LexModelBuildingService
|
|
3852
3935
|
|
3853
3936
|
# Starts a job to import a resource to Amazon Lex.
|
3854
3937
|
#
|
3855
|
-
# @option params [required, String,
|
3938
|
+
# @option params [required, String, StringIO, File] :payload
|
3856
3939
|
# A zip archive in binary format. The archive should contain one file, a
|
3857
3940
|
# JSON file containing the resource to import. The resource should match
|
3858
3941
|
# the type specified in the `resourceType` field.
|
@@ -4002,7 +4085,7 @@ module Aws::LexModelBuildingService
|
|
4002
4085
|
params: params,
|
4003
4086
|
config: config)
|
4004
4087
|
context[:gem_name] = 'aws-sdk-lexmodelbuildingservice'
|
4005
|
-
context[:gem_version] = '1.
|
4088
|
+
context[:gem_version] = '1.34.0'
|
4006
4089
|
Seahorse::Client::Request.new(handlers, context)
|
4007
4090
|
end
|
4008
4091
|
|
@@ -40,6 +40,7 @@ module Aws::LexModelBuildingService
|
|
40
40
|
ChannelStatus = Shapes::StringShape.new(name: 'ChannelStatus')
|
41
41
|
ChannelType = Shapes::StringShape.new(name: 'ChannelType')
|
42
42
|
CodeHook = Shapes::StructureShape.new(name: 'CodeHook')
|
43
|
+
ConfidenceThreshold = Shapes::FloatShape.new(name: 'ConfidenceThreshold')
|
43
44
|
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
44
45
|
ContentString = Shapes::StringShape.new(name: 'ContentString')
|
45
46
|
ContentType = Shapes::StringShape.new(name: 'ContentType')
|
@@ -301,6 +302,7 @@ module Aws::LexModelBuildingService
|
|
301
302
|
CreateBotVersionResponse.add_member(:version, Shapes::ShapeRef.new(shape: Version, location_name: "version"))
|
302
303
|
CreateBotVersionResponse.add_member(:locale, Shapes::ShapeRef.new(shape: Locale, location_name: "locale"))
|
303
304
|
CreateBotVersionResponse.add_member(:child_directed, Shapes::ShapeRef.new(shape: Boolean, location_name: "childDirected"))
|
305
|
+
CreateBotVersionResponse.add_member(:enable_model_improvements, Shapes::ShapeRef.new(shape: Boolean, location_name: "enableModelImprovements"))
|
304
306
|
CreateBotVersionResponse.add_member(:detect_sentiment, Shapes::ShapeRef.new(shape: Boolean, location_name: "detectSentiment"))
|
305
307
|
CreateBotVersionResponse.struct_class = Types::CreateBotVersionResponse
|
306
308
|
|
@@ -448,6 +450,8 @@ module Aws::LexModelBuildingService
|
|
448
450
|
GetBotResponse.add_member(:name, Shapes::ShapeRef.new(shape: BotName, location_name: "name"))
|
449
451
|
GetBotResponse.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
|
450
452
|
GetBotResponse.add_member(:intents, Shapes::ShapeRef.new(shape: IntentList, location_name: "intents"))
|
453
|
+
GetBotResponse.add_member(:enable_model_improvements, Shapes::ShapeRef.new(shape: Boolean, location_name: "enableModelImprovements"))
|
454
|
+
GetBotResponse.add_member(:nlu_intent_confidence_threshold, Shapes::ShapeRef.new(shape: ConfidenceThreshold, location_name: "nluIntentConfidenceThreshold"))
|
451
455
|
GetBotResponse.add_member(:clarification_prompt, Shapes::ShapeRef.new(shape: Prompt, location_name: "clarificationPrompt"))
|
452
456
|
GetBotResponse.add_member(:abort_statement, Shapes::ShapeRef.new(shape: Statement, location_name: "abortStatement"))
|
453
457
|
GetBotResponse.add_member(:status, Shapes::ShapeRef.new(shape: Status, location_name: "status"))
|
@@ -718,6 +722,8 @@ module Aws::LexModelBuildingService
|
|
718
722
|
PutBotRequest.add_member(:name, Shapes::ShapeRef.new(shape: BotName, required: true, location: "uri", location_name: "name"))
|
719
723
|
PutBotRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
|
720
724
|
PutBotRequest.add_member(:intents, Shapes::ShapeRef.new(shape: IntentList, location_name: "intents"))
|
725
|
+
PutBotRequest.add_member(:enable_model_improvements, Shapes::ShapeRef.new(shape: Boolean, location_name: "enableModelImprovements"))
|
726
|
+
PutBotRequest.add_member(:nlu_intent_confidence_threshold, Shapes::ShapeRef.new(shape: ConfidenceThreshold, location_name: "nluIntentConfidenceThreshold"))
|
721
727
|
PutBotRequest.add_member(:clarification_prompt, Shapes::ShapeRef.new(shape: Prompt, location_name: "clarificationPrompt"))
|
722
728
|
PutBotRequest.add_member(:abort_statement, Shapes::ShapeRef.new(shape: Statement, location_name: "abortStatement"))
|
723
729
|
PutBotRequest.add_member(:idle_session_ttl_in_seconds, Shapes::ShapeRef.new(shape: SessionTTL, location_name: "idleSessionTTLInSeconds"))
|
@@ -734,6 +740,8 @@ module Aws::LexModelBuildingService
|
|
734
740
|
PutBotResponse.add_member(:name, Shapes::ShapeRef.new(shape: BotName, location_name: "name"))
|
735
741
|
PutBotResponse.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
|
736
742
|
PutBotResponse.add_member(:intents, Shapes::ShapeRef.new(shape: IntentList, location_name: "intents"))
|
743
|
+
PutBotResponse.add_member(:enable_model_improvements, Shapes::ShapeRef.new(shape: Boolean, location_name: "enableModelImprovements"))
|
744
|
+
PutBotResponse.add_member(:nlu_intent_confidence_threshold, Shapes::ShapeRef.new(shape: ConfidenceThreshold, location_name: "nluIntentConfidenceThreshold"))
|
737
745
|
PutBotResponse.add_member(:clarification_prompt, Shapes::ShapeRef.new(shape: Prompt, location_name: "clarificationPrompt"))
|
738
746
|
PutBotResponse.add_member(:abort_statement, Shapes::ShapeRef.new(shape: Statement, location_name: "abortStatement"))
|
739
747
|
PutBotResponse.add_member(:status, Shapes::ShapeRef.new(shape: Status, location_name: "status"))
|
@@ -492,6 +492,12 @@ module Aws::LexModelBuildingService
|
|
492
492
|
# [1]: https://aws.amazon.com/lex/faqs#data-security
|
493
493
|
# @return [Boolean]
|
494
494
|
#
|
495
|
+
# @!attribute [rw] enable_model_improvements
|
496
|
+
# Indicates whether the bot uses the new natural language
|
497
|
+
# understanding (NLU) model or the original NLU. True indicates that
|
498
|
+
# the bot is using the new model, otherwise, false.
|
499
|
+
# @return [Boolean]
|
500
|
+
#
|
495
501
|
# @!attribute [rw] detect_sentiment
|
496
502
|
# Indicates whether utterances entered by the user should be sent to
|
497
503
|
# Amazon Comprehend for sentiment analysis.
|
@@ -515,6 +521,7 @@ module Aws::LexModelBuildingService
|
|
515
521
|
:version,
|
516
522
|
:locale,
|
517
523
|
:child_directed,
|
524
|
+
:enable_model_improvements,
|
518
525
|
:detect_sentiment)
|
519
526
|
SENSITIVE = []
|
520
527
|
include Aws::Structure
|
@@ -1449,6 +1456,25 @@ module Aws::LexModelBuildingService
|
|
1449
1456
|
# An array of `intent` objects. For more information, see PutBot.
|
1450
1457
|
# @return [Array<Types::Intent>]
|
1451
1458
|
#
|
1459
|
+
# @!attribute [rw] enable_model_improvements
|
1460
|
+
# Indicates whether the bot uses the new natural language
|
1461
|
+
# understanding (NLU) model or the original NLU. True indicates that
|
1462
|
+
# the bot is using the new model, otherwise, false.
|
1463
|
+
# @return [Boolean]
|
1464
|
+
#
|
1465
|
+
# @!attribute [rw] nlu_intent_confidence_threshold
|
1466
|
+
# The score that determines where Amazon Lex inserts the
|
1467
|
+
# `AMAZON.FallbackIntent`, `AMAZON.KendraSearchIntent`, or both when
|
1468
|
+
# returning alternative intents in a [PostContent][1] or [PostText][2]
|
1469
|
+
# response. `AMAZON.FallbackIntent` and `AMAZON.KendraSearchIntent`
|
1470
|
+
# are only inserted if they are configured for the bot.
|
1471
|
+
#
|
1472
|
+
#
|
1473
|
+
#
|
1474
|
+
# [1]: https://docs.aws.amazon.com/lex/latest/dg/API_runtime_PostContent.html
|
1475
|
+
# [2]: https://docs.aws.amazon.com/lex/latest/dg/API_runtime_PostText.html
|
1476
|
+
# @return [Float]
|
1477
|
+
#
|
1452
1478
|
# @!attribute [rw] clarification_prompt
|
1453
1479
|
# The message Amazon Lex uses when it doesn't understand the user's
|
1454
1480
|
# request. For more information, see PutBot.
|
@@ -1558,6 +1584,8 @@ module Aws::LexModelBuildingService
|
|
1558
1584
|
:name,
|
1559
1585
|
:description,
|
1560
1586
|
:intents,
|
1587
|
+
:enable_model_improvements,
|
1588
|
+
:nlu_intent_confidence_threshold,
|
1561
1589
|
:clarification_prompt,
|
1562
1590
|
:abort_statement,
|
1563
1591
|
:status,
|
@@ -3036,6 +3064,8 @@ module Aws::LexModelBuildingService
|
|
3036
3064
|
# intent_version: "Version", # required
|
3037
3065
|
# },
|
3038
3066
|
# ],
|
3067
|
+
# enable_model_improvements: false,
|
3068
|
+
# nlu_intent_confidence_threshold: 1.0,
|
3039
3069
|
# clarification_prompt: {
|
3040
3070
|
# messages: [ # required
|
3041
3071
|
# {
|
@@ -3087,6 +3117,79 @@ module Aws::LexModelBuildingService
|
|
3087
3117
|
# an OrderPizza intent. For more information, see how-it-works.
|
3088
3118
|
# @return [Array<Types::Intent>]
|
3089
3119
|
#
|
3120
|
+
# @!attribute [rw] enable_model_improvements
|
3121
|
+
# Set to `true` to enable the use of a new natural language
|
3122
|
+
# understanding (NLU) model. Using the new NLU may improve the
|
3123
|
+
# performance of your bot.
|
3124
|
+
#
|
3125
|
+
# When you set the `enableModelImprovements` parameter to `true` you
|
3126
|
+
# can use the `nluIntentConfidenceThreshold` parameter to configure
|
3127
|
+
# confidence scores. For more information, see [Confidence Scores][1].
|
3128
|
+
#
|
3129
|
+
# You can only set the `enableModelImprovements` parameter in certain
|
3130
|
+
# Regions. If you set the parameter to `true`, your bot will use the
|
3131
|
+
# new NLU. If you set the parameter to `false`, your bot will continue
|
3132
|
+
# to use the original NLU. If you set the parameter to `false` after
|
3133
|
+
# setting it to `true`, your bot will return to the original NLU.
|
3134
|
+
#
|
3135
|
+
# The Regions where you can set the `enableModelImprovements`
|
3136
|
+
# parameter to `true` are:
|
3137
|
+
#
|
3138
|
+
# * US East (N. Virginia) (us-east-1)
|
3139
|
+
#
|
3140
|
+
# * US West (Oregon) (us-west-2)
|
3141
|
+
#
|
3142
|
+
# * Asia Pacific (Sydney) (ap-southeast-2)
|
3143
|
+
#
|
3144
|
+
# * EU (Ireland) (eu-west-1)
|
3145
|
+
#
|
3146
|
+
# In other Regions, the `enableModelImprovements` parameter is set to
|
3147
|
+
# `true` by default. In these Regions setting the parameter to `false`
|
3148
|
+
# throws a `ValidationException` exception.
|
3149
|
+
#
|
3150
|
+
# * Asia Pacific (Singapore) (ap-southeast-1)
|
3151
|
+
#
|
3152
|
+
# * Asia Pacific (Tokyo) (ap-northeast-1)
|
3153
|
+
#
|
3154
|
+
# * EU (Frankfurt) (eu-central-1)
|
3155
|
+
#
|
3156
|
+
# * EU (London) (eu-west-2)
|
3157
|
+
#
|
3158
|
+
#
|
3159
|
+
#
|
3160
|
+
# [1]: https://docs.aws.amazon.com/lex/latest/dg/confidence-scores.html
|
3161
|
+
# @return [Boolean]
|
3162
|
+
#
|
3163
|
+
# @!attribute [rw] nlu_intent_confidence_threshold
|
3164
|
+
# Determines the threshold where Amazon Lex will insert the
|
3165
|
+
# `AMAZON.FallbackIntent`, `AMAZON.KendraSearchIntent`, or both when
|
3166
|
+
# returning alternative intents in a [PostContent][1] or [PostText][2]
|
3167
|
+
# response. `AMAZON.FallbackIntent` and `AMAZON.KendraSearchIntent`
|
3168
|
+
# are only inserted if they are configured for the bot.
|
3169
|
+
#
|
3170
|
+
# You must set the `enableModelImprovements` parameter to `true` to
|
3171
|
+
# use confidence scores.
|
3172
|
+
#
|
3173
|
+
# For example, suppose a bot is configured with the confidence
|
3174
|
+
# threshold of 0.80 and the `AMAZON.FallbackIntent`. Amazon Lex
|
3175
|
+
# returns three alternative intents with the following confidence
|
3176
|
+
# scores: IntentA (0.70), IntentB (0.60), IntentC (0.50). The response
|
3177
|
+
# from the `PostText` operation would be:
|
3178
|
+
#
|
3179
|
+
# * AMAZON.FallbackIntent
|
3180
|
+
#
|
3181
|
+
# * IntentA
|
3182
|
+
#
|
3183
|
+
# * IntentB
|
3184
|
+
#
|
3185
|
+
# * IntentC
|
3186
|
+
#
|
3187
|
+
#
|
3188
|
+
#
|
3189
|
+
# [1]: https://docs.aws.amazon.com/lex/latest/dg/API_runtime_PostContent.html
|
3190
|
+
# [2]: https://docs.aws.amazon.com/lex/latest/dg/API_runtime_PostText.html
|
3191
|
+
# @return [Float]
|
3192
|
+
#
|
3090
3193
|
# @!attribute [rw] clarification_prompt
|
3091
3194
|
# When Amazon Lex doesn't understand the user's intent, it uses this
|
3092
3195
|
# message to get clarification. To specify how many times Amazon Lex
|
@@ -3274,6 +3377,8 @@ module Aws::LexModelBuildingService
|
|
3274
3377
|
:name,
|
3275
3378
|
:description,
|
3276
3379
|
:intents,
|
3380
|
+
:enable_model_improvements,
|
3381
|
+
:nlu_intent_confidence_threshold,
|
3277
3382
|
:clarification_prompt,
|
3278
3383
|
:abort_statement,
|
3279
3384
|
:idle_session_ttl_in_seconds,
|
@@ -3301,6 +3406,25 @@ module Aws::LexModelBuildingService
|
|
3301
3406
|
# An array of `Intent` objects. For more information, see PutBot.
|
3302
3407
|
# @return [Array<Types::Intent>]
|
3303
3408
|
#
|
3409
|
+
# @!attribute [rw] enable_model_improvements
|
3410
|
+
# Indicates whether the bot uses the new natural language
|
3411
|
+
# understanding (NLU) model or the original NLU. True indicates that
|
3412
|
+
# the bot is using the new model, otherwise, false.
|
3413
|
+
# @return [Boolean]
|
3414
|
+
#
|
3415
|
+
# @!attribute [rw] nlu_intent_confidence_threshold
|
3416
|
+
# The score that determines where Amazon Lex inserts the
|
3417
|
+
# `AMAZON.FallbackIntent`, `AMAZON.KendraSearchIntent`, or both when
|
3418
|
+
# returning alternative intents in a [PostContent][1] or [PostText][2]
|
3419
|
+
# response. `AMAZON.FallbackIntent` and `AMAZON.KendraSearchIntent`
|
3420
|
+
# are only inserted if they are configured for the bot.
|
3421
|
+
#
|
3422
|
+
#
|
3423
|
+
#
|
3424
|
+
# [1]: https://docs.aws.amazon.com/lex/latest/dg/API_runtime_PostContent.html
|
3425
|
+
# [2]: https://docs.aws.amazon.com/lex/latest/dg/API_runtime_PostText.html
|
3426
|
+
# @return [Float]
|
3427
|
+
#
|
3304
3428
|
# @!attribute [rw] clarification_prompt
|
3305
3429
|
# The prompts that Amazon Lex uses when it doesn't understand the
|
3306
3430
|
# user's intent. For more information, see PutBot.
|
@@ -3424,6 +3548,8 @@ module Aws::LexModelBuildingService
|
|
3424
3548
|
:name,
|
3425
3549
|
:description,
|
3426
3550
|
:intents,
|
3551
|
+
:enable_model_improvements,
|
3552
|
+
:nlu_intent_confidence_threshold,
|
3427
3553
|
:clarification_prompt,
|
3428
3554
|
:abort_statement,
|
3429
3555
|
:status,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-lexmodelbuildingservice
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.34.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06
|
11
|
+
date: 2020-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|