aws-sdk-lex 1.28.0 → 1.29.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-lex.rb +1 -1
- data/lib/aws-sdk-lex/client.rb +17 -1
- data/lib/aws-sdk-lex/client_api.rb +21 -0
- data/lib/aws-sdk-lex/types.rb +130 -2
- 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: b28bee0d35bf5a091371725fcf8ac4a402d920ab861d98fbb8b110312d8b7136
|
4
|
+
data.tar.gz: ba1f14edd7b7ac969ead4508d77aa3f6dead33082a2a7174802f76471de5a71a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 741ed15340125ddd7b41147b0c01b9308b1a224cdc70d676d746090c01f35cb9ea0193ca47e3e89c62a89c983e736b5633a108ae4619bc414bc03d7c38bcc778
|
7
|
+
data.tar.gz: 82ac6af9f383dff0d5f250740d9d3d1b426c3860396897d629b14a2821c5c44e6989e6dc66ab942c5ac92e4180b4091e362e80065ddc9c99e3291758432b4f04
|
data/lib/aws-sdk-lex.rb
CHANGED
data/lib/aws-sdk-lex/client.rb
CHANGED
@@ -628,6 +628,8 @@ module Aws::Lex
|
|
628
628
|
#
|
629
629
|
# * {Types::PostContentResponse#content_type #content_type} => String
|
630
630
|
# * {Types::PostContentResponse#intent_name #intent_name} => String
|
631
|
+
# * {Types::PostContentResponse#nlu_intent_confidence #nlu_intent_confidence} => String
|
632
|
+
# * {Types::PostContentResponse#alternative_intents #alternative_intents} => String
|
631
633
|
# * {Types::PostContentResponse#slots #slots} => String
|
632
634
|
# * {Types::PostContentResponse#session_attributes #session_attributes} => String
|
633
635
|
# * {Types::PostContentResponse#sentiment_response #sentiment_response} => String
|
@@ -637,6 +639,7 @@ module Aws::Lex
|
|
637
639
|
# * {Types::PostContentResponse#slot_to_elicit #slot_to_elicit} => String
|
638
640
|
# * {Types::PostContentResponse#input_transcript #input_transcript} => String
|
639
641
|
# * {Types::PostContentResponse#audio_stream #audio_stream} => IO
|
642
|
+
# * {Types::PostContentResponse#bot_version #bot_version} => String
|
640
643
|
# * {Types::PostContentResponse#session_id #session_id} => String
|
641
644
|
#
|
642
645
|
# @example Request syntax with placeholder values
|
@@ -656,6 +659,8 @@ module Aws::Lex
|
|
656
659
|
#
|
657
660
|
# resp.content_type #=> String
|
658
661
|
# resp.intent_name #=> String
|
662
|
+
# resp.nlu_intent_confidence #=> String
|
663
|
+
# resp.alternative_intents #=> String
|
659
664
|
# resp.slots #=> String
|
660
665
|
# resp.session_attributes #=> String
|
661
666
|
# resp.sentiment_response #=> String
|
@@ -665,6 +670,7 @@ module Aws::Lex
|
|
665
670
|
# resp.slot_to_elicit #=> String
|
666
671
|
# resp.input_transcript #=> String
|
667
672
|
# resp.audio_stream #=> IO
|
673
|
+
# resp.bot_version #=> String
|
668
674
|
# resp.session_id #=> String
|
669
675
|
#
|
670
676
|
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/PostContent AWS API Documentation
|
@@ -794,6 +800,8 @@ module Aws::Lex
|
|
794
800
|
# @return [Types::PostTextResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
795
801
|
#
|
796
802
|
# * {Types::PostTextResponse#intent_name #intent_name} => String
|
803
|
+
# * {Types::PostTextResponse#nlu_intent_confidence #nlu_intent_confidence} => Types::IntentConfidence
|
804
|
+
# * {Types::PostTextResponse#alternative_intents #alternative_intents} => Array<Types::PredictedIntent>
|
797
805
|
# * {Types::PostTextResponse#slots #slots} => Hash<String,String>
|
798
806
|
# * {Types::PostTextResponse#session_attributes #session_attributes} => Hash<String,String>
|
799
807
|
# * {Types::PostTextResponse#message #message} => String
|
@@ -803,6 +811,7 @@ module Aws::Lex
|
|
803
811
|
# * {Types::PostTextResponse#slot_to_elicit #slot_to_elicit} => String
|
804
812
|
# * {Types::PostTextResponse#response_card #response_card} => Types::ResponseCard
|
805
813
|
# * {Types::PostTextResponse#session_id #session_id} => String
|
814
|
+
# * {Types::PostTextResponse#bot_version #bot_version} => String
|
806
815
|
#
|
807
816
|
# @example Request syntax with placeholder values
|
808
817
|
#
|
@@ -822,6 +831,12 @@ module Aws::Lex
|
|
822
831
|
# @example Response structure
|
823
832
|
#
|
824
833
|
# resp.intent_name #=> String
|
834
|
+
# resp.nlu_intent_confidence.score #=> Float
|
835
|
+
# resp.alternative_intents #=> Array
|
836
|
+
# resp.alternative_intents[0].intent_name #=> String
|
837
|
+
# resp.alternative_intents[0].nlu_intent_confidence.score #=> Float
|
838
|
+
# resp.alternative_intents[0].slots #=> Hash
|
839
|
+
# resp.alternative_intents[0].slots["String"] #=> String
|
825
840
|
# resp.slots #=> Hash
|
826
841
|
# resp.slots["String"] #=> String
|
827
842
|
# resp.session_attributes #=> Hash
|
@@ -843,6 +858,7 @@ module Aws::Lex
|
|
843
858
|
# resp.response_card.generic_attachments[0].buttons[0].text #=> String
|
844
859
|
# resp.response_card.generic_attachments[0].buttons[0].value #=> String
|
845
860
|
# resp.session_id #=> String
|
861
|
+
# resp.bot_version #=> String
|
846
862
|
#
|
847
863
|
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/PostText AWS API Documentation
|
848
864
|
#
|
@@ -1017,7 +1033,7 @@ module Aws::Lex
|
|
1017
1033
|
params: params,
|
1018
1034
|
config: config)
|
1019
1035
|
context[:gem_name] = 'aws-sdk-lex'
|
1020
|
-
context[:gem_version] = '1.
|
1036
|
+
context[:gem_version] = '1.29.0'
|
1021
1037
|
Seahorse::Client::Request.new(handlers, context)
|
1022
1038
|
end
|
1023
1039
|
|
@@ -20,6 +20,7 @@ module Aws::Lex
|
|
20
20
|
BlobStream = Shapes::BlobShape.new(name: 'BlobStream', streaming: true)
|
21
21
|
BotAlias = Shapes::StringShape.new(name: 'BotAlias')
|
22
22
|
BotName = Shapes::StringShape.new(name: 'BotName')
|
23
|
+
BotVersion = Shapes::StringShape.new(name: 'BotVersion')
|
23
24
|
Button = Shapes::StructureShape.new(name: 'Button')
|
24
25
|
ButtonTextStringWithLength = Shapes::StringShape.new(name: 'ButtonTextStringWithLength')
|
25
26
|
ButtonValueStringWithLength = Shapes::StringShape.new(name: 'ButtonValueStringWithLength')
|
@@ -32,12 +33,15 @@ module Aws::Lex
|
|
32
33
|
DialogAction = Shapes::StructureShape.new(name: 'DialogAction')
|
33
34
|
DialogActionType = Shapes::StringShape.new(name: 'DialogActionType')
|
34
35
|
DialogState = Shapes::StringShape.new(name: 'DialogState')
|
36
|
+
Double = Shapes::FloatShape.new(name: 'Double')
|
35
37
|
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
36
38
|
FulfillmentState = Shapes::StringShape.new(name: 'FulfillmentState')
|
37
39
|
GenericAttachment = Shapes::StructureShape.new(name: 'GenericAttachment')
|
38
40
|
GetSessionRequest = Shapes::StructureShape.new(name: 'GetSessionRequest')
|
39
41
|
GetSessionResponse = Shapes::StructureShape.new(name: 'GetSessionResponse')
|
40
42
|
HttpContentType = Shapes::StringShape.new(name: 'HttpContentType')
|
43
|
+
IntentConfidence = Shapes::StructureShape.new(name: 'IntentConfidence')
|
44
|
+
IntentList = Shapes::ListShape.new(name: 'IntentList')
|
41
45
|
IntentName = Shapes::StringShape.new(name: 'IntentName')
|
42
46
|
IntentSummary = Shapes::StructureShape.new(name: 'IntentSummary')
|
43
47
|
IntentSummaryCheckpointLabel = Shapes::StringShape.new(name: 'IntentSummaryCheckpointLabel')
|
@@ -52,6 +56,7 @@ module Aws::Lex
|
|
52
56
|
PostContentResponse = Shapes::StructureShape.new(name: 'PostContentResponse')
|
53
57
|
PostTextRequest = Shapes::StructureShape.new(name: 'PostTextRequest')
|
54
58
|
PostTextResponse = Shapes::StructureShape.new(name: 'PostTextResponse')
|
59
|
+
PredictedIntent = Shapes::StructureShape.new(name: 'PredictedIntent')
|
55
60
|
PutSessionRequest = Shapes::StructureShape.new(name: 'PutSessionRequest')
|
56
61
|
PutSessionResponse = Shapes::StructureShape.new(name: 'PutSessionResponse')
|
57
62
|
RequestTimeoutException = Shapes::StructureShape.new(name: 'RequestTimeoutException')
|
@@ -124,6 +129,11 @@ module Aws::Lex
|
|
124
129
|
GetSessionResponse.add_member(:dialog_action, Shapes::ShapeRef.new(shape: DialogAction, location_name: "dialogAction"))
|
125
130
|
GetSessionResponse.struct_class = Types::GetSessionResponse
|
126
131
|
|
132
|
+
IntentConfidence.add_member(:score, Shapes::ShapeRef.new(shape: Double, location_name: "score"))
|
133
|
+
IntentConfidence.struct_class = Types::IntentConfidence
|
134
|
+
|
135
|
+
IntentList.member = Shapes::ShapeRef.new(shape: PredictedIntent)
|
136
|
+
|
127
137
|
IntentSummary.add_member(:intent_name, Shapes::ShapeRef.new(shape: IntentName, location_name: "intentName"))
|
128
138
|
IntentSummary.add_member(:checkpoint_label, Shapes::ShapeRef.new(shape: IntentSummaryCheckpointLabel, location_name: "checkpointLabel"))
|
129
139
|
IntentSummary.add_member(:slots, Shapes::ShapeRef.new(shape: StringMap, location_name: "slots"))
|
@@ -165,6 +175,8 @@ module Aws::Lex
|
|
165
175
|
|
166
176
|
PostContentResponse.add_member(:content_type, Shapes::ShapeRef.new(shape: HttpContentType, location: "header", location_name: "Content-Type"))
|
167
177
|
PostContentResponse.add_member(:intent_name, Shapes::ShapeRef.new(shape: IntentName, location: "header", location_name: "x-amz-lex-intent-name"))
|
178
|
+
PostContentResponse.add_member(:nlu_intent_confidence, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amz-lex-nlu-intent-confidence", metadata: {"jsonvalue"=>true}))
|
179
|
+
PostContentResponse.add_member(:alternative_intents, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amz-lex-alternative-intents", metadata: {"jsonvalue"=>true}))
|
168
180
|
PostContentResponse.add_member(:slots, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amz-lex-slots", metadata: {"jsonvalue"=>true}))
|
169
181
|
PostContentResponse.add_member(:session_attributes, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amz-lex-session-attributes", metadata: {"jsonvalue"=>true}))
|
170
182
|
PostContentResponse.add_member(:sentiment_response, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amz-lex-sentiment"))
|
@@ -174,6 +186,7 @@ module Aws::Lex
|
|
174
186
|
PostContentResponse.add_member(:slot_to_elicit, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amz-lex-slot-to-elicit"))
|
175
187
|
PostContentResponse.add_member(:input_transcript, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amz-lex-input-transcript"))
|
176
188
|
PostContentResponse.add_member(:audio_stream, Shapes::ShapeRef.new(shape: BlobStream, location_name: "audioStream"))
|
189
|
+
PostContentResponse.add_member(:bot_version, Shapes::ShapeRef.new(shape: BotVersion, location: "header", location_name: "x-amz-lex-bot-version"))
|
177
190
|
PostContentResponse.add_member(:session_id, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amz-lex-session-id"))
|
178
191
|
PostContentResponse.struct_class = Types::PostContentResponse
|
179
192
|
PostContentResponse[:payload] = :audio_stream
|
@@ -188,6 +201,8 @@ module Aws::Lex
|
|
188
201
|
PostTextRequest.struct_class = Types::PostTextRequest
|
189
202
|
|
190
203
|
PostTextResponse.add_member(:intent_name, Shapes::ShapeRef.new(shape: IntentName, location_name: "intentName"))
|
204
|
+
PostTextResponse.add_member(:nlu_intent_confidence, Shapes::ShapeRef.new(shape: IntentConfidence, location_name: "nluIntentConfidence"))
|
205
|
+
PostTextResponse.add_member(:alternative_intents, Shapes::ShapeRef.new(shape: IntentList, location_name: "alternativeIntents"))
|
191
206
|
PostTextResponse.add_member(:slots, Shapes::ShapeRef.new(shape: StringMap, location_name: "slots"))
|
192
207
|
PostTextResponse.add_member(:session_attributes, Shapes::ShapeRef.new(shape: StringMap, location_name: "sessionAttributes"))
|
193
208
|
PostTextResponse.add_member(:message, Shapes::ShapeRef.new(shape: Text, location_name: "message"))
|
@@ -197,8 +212,14 @@ module Aws::Lex
|
|
197
212
|
PostTextResponse.add_member(:slot_to_elicit, Shapes::ShapeRef.new(shape: String, location_name: "slotToElicit"))
|
198
213
|
PostTextResponse.add_member(:response_card, Shapes::ShapeRef.new(shape: ResponseCard, location_name: "responseCard"))
|
199
214
|
PostTextResponse.add_member(:session_id, Shapes::ShapeRef.new(shape: String, location_name: "sessionId"))
|
215
|
+
PostTextResponse.add_member(:bot_version, Shapes::ShapeRef.new(shape: BotVersion, location_name: "botVersion"))
|
200
216
|
PostTextResponse.struct_class = Types::PostTextResponse
|
201
217
|
|
218
|
+
PredictedIntent.add_member(:intent_name, Shapes::ShapeRef.new(shape: IntentName, location_name: "intentName"))
|
219
|
+
PredictedIntent.add_member(:nlu_intent_confidence, Shapes::ShapeRef.new(shape: IntentConfidence, location_name: "nluIntentConfidence"))
|
220
|
+
PredictedIntent.add_member(:slots, Shapes::ShapeRef.new(shape: StringMap, location_name: "slots"))
|
221
|
+
PredictedIntent.struct_class = Types::PredictedIntent
|
222
|
+
|
202
223
|
PutSessionRequest.add_member(:bot_name, Shapes::ShapeRef.new(shape: BotName, required: true, location: "uri", location_name: "botName"))
|
203
224
|
PutSessionRequest.add_member(:bot_alias, Shapes::ShapeRef.new(shape: BotAlias, required: true, location: "uri", location_name: "botAlias"))
|
204
225
|
PutSessionRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: UserId, required: true, location: "uri", location_name: "userId"))
|
data/lib/aws-sdk-lex/types.rb
CHANGED
@@ -372,6 +372,23 @@ module Aws::Lex
|
|
372
372
|
include Aws::Structure
|
373
373
|
end
|
374
374
|
|
375
|
+
# Provides a score that indicates the confidence that Amazon Lex has
|
376
|
+
# that an intent is the one that satisfies the user's intent.
|
377
|
+
#
|
378
|
+
# @!attribute [rw] score
|
379
|
+
# A score that indicates how confident Amazon Lex is that an intent
|
380
|
+
# satisfies the user's intent. Ranges between 0.00 and 1.00. Higher
|
381
|
+
# scores indicate higher confidence.
|
382
|
+
# @return [Float]
|
383
|
+
#
|
384
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/IntentConfidence AWS API Documentation
|
385
|
+
#
|
386
|
+
class IntentConfidence < Struct.new(
|
387
|
+
:score)
|
388
|
+
SENSITIVE = []
|
389
|
+
include Aws::Structure
|
390
|
+
end
|
391
|
+
|
375
392
|
# Provides information about the state of an intent. You can use this
|
376
393
|
# information to get the current state of an intent so that you can
|
377
394
|
# process the intent, or so that you can return the intent to its
|
@@ -728,6 +745,24 @@ module Aws::Lex
|
|
728
745
|
# Current user intent that Amazon Lex is aware of.
|
729
746
|
# @return [String]
|
730
747
|
#
|
748
|
+
# @!attribute [rw] nlu_intent_confidence
|
749
|
+
# Provides a score that indicates how confident Amazon Lex is that the
|
750
|
+
# returned intent is the one that matches the user's intent. The
|
751
|
+
# score is between 0.0 and 1.0.
|
752
|
+
#
|
753
|
+
# The score is a relative score, not an absolute score. The score may
|
754
|
+
# change based on improvements to the Amazon Lex NLU.
|
755
|
+
# @return [String]
|
756
|
+
#
|
757
|
+
# @!attribute [rw] alternative_intents
|
758
|
+
# One to four alternative intents that may be applicable to the
|
759
|
+
# user's intent.
|
760
|
+
#
|
761
|
+
# Each alternative includes a score that indicates how confident
|
762
|
+
# Amazon Lex is that the intent matches the user's intent. The
|
763
|
+
# intents are sorted by the confidence score.
|
764
|
+
# @return [String]
|
765
|
+
#
|
731
766
|
# @!attribute [rw] slots
|
732
767
|
# Map of zero or more intent slots (name/value pairs) Amazon Lex
|
733
768
|
# detected from the user input during the conversation. The field is
|
@@ -751,7 +786,7 @@ module Aws::Lex
|
|
751
786
|
# @return [String]
|
752
787
|
#
|
753
788
|
# @!attribute [rw] sentiment_response
|
754
|
-
# The sentiment expressed in
|
789
|
+
# The sentiment expressed in an utterance.
|
755
790
|
#
|
756
791
|
# When the bot is configured to send utterances to Amazon Comprehend
|
757
792
|
# for sentiment analysis, this field contains the result of the
|
@@ -868,6 +903,23 @@ module Aws::Lex
|
|
868
903
|
# Amazon Lex sends that message in the response.
|
869
904
|
# @return [IO]
|
870
905
|
#
|
906
|
+
# @!attribute [rw] bot_version
|
907
|
+
# The version of the bot that responded to the conversation. You can
|
908
|
+
# use this information to help determine if one version of a bot is
|
909
|
+
# performing better than another version.
|
910
|
+
#
|
911
|
+
# If you have enabled the new natural language understanding (NLU)
|
912
|
+
# model, you can use this to determine if the improvement is due to
|
913
|
+
# changes to the bot or changes to the NLU.
|
914
|
+
#
|
915
|
+
# For more information about enabling the new NLU, see the
|
916
|
+
# [enableModelImprovements][1] parameter of the `PutBot` operation.
|
917
|
+
#
|
918
|
+
#
|
919
|
+
#
|
920
|
+
# [1]: https://docs.aws.amazon.com/lex/latest/dg/API_PutBot.html#lex-PutBot-request-enableModelImprovements
|
921
|
+
# @return [String]
|
922
|
+
#
|
871
923
|
# @!attribute [rw] session_id
|
872
924
|
# The unique identifier for the session.
|
873
925
|
# @return [String]
|
@@ -877,6 +929,8 @@ module Aws::Lex
|
|
877
929
|
class PostContentResponse < Struct.new(
|
878
930
|
:content_type,
|
879
931
|
:intent_name,
|
932
|
+
:nlu_intent_confidence,
|
933
|
+
:alternative_intents,
|
880
934
|
:slots,
|
881
935
|
:session_attributes,
|
882
936
|
:sentiment_response,
|
@@ -886,6 +940,7 @@ module Aws::Lex
|
|
886
940
|
:slot_to_elicit,
|
887
941
|
:input_transcript,
|
888
942
|
:audio_stream,
|
943
|
+
:bot_version,
|
889
944
|
:session_id)
|
890
945
|
SENSITIVE = [:message]
|
891
946
|
include Aws::Structure
|
@@ -988,6 +1043,30 @@ module Aws::Lex
|
|
988
1043
|
# The current user intent that Amazon Lex is aware of.
|
989
1044
|
# @return [String]
|
990
1045
|
#
|
1046
|
+
# @!attribute [rw] nlu_intent_confidence
|
1047
|
+
# Provides a score that indicates how confident Amazon Lex is that the
|
1048
|
+
# returned intent is the one that matches the user's intent. The
|
1049
|
+
# score is between 0.0 and 1.0. For more information, see [Confidence
|
1050
|
+
# Scores][1].
|
1051
|
+
#
|
1052
|
+
# The score is a relative score, not an absolute score. The score may
|
1053
|
+
# change based on improvements to the Amazon Lex natural language
|
1054
|
+
# understanding (NLU) model.
|
1055
|
+
#
|
1056
|
+
#
|
1057
|
+
#
|
1058
|
+
# [1]: https://docs.aws.amazon.com/lex/latest/dg/confidence-scores.html
|
1059
|
+
# @return [Types::IntentConfidence]
|
1060
|
+
#
|
1061
|
+
# @!attribute [rw] alternative_intents
|
1062
|
+
# One to four alternative intents that may be applicable to the
|
1063
|
+
# user's intent.
|
1064
|
+
#
|
1065
|
+
# Each alternative includes a score that indicates how confident
|
1066
|
+
# Amazon Lex is that the intent matches the user's intent. The
|
1067
|
+
# intents are sorted by the confidence score.
|
1068
|
+
# @return [Array<Types::PredictedIntent>]
|
1069
|
+
#
|
991
1070
|
# @!attribute [rw] slots
|
992
1071
|
# The intent slots that Amazon Lex detected from the user input in the
|
993
1072
|
# conversation.
|
@@ -1119,10 +1198,29 @@ module Aws::Lex
|
|
1119
1198
|
# A unique identifier for the session.
|
1120
1199
|
# @return [String]
|
1121
1200
|
#
|
1201
|
+
# @!attribute [rw] bot_version
|
1202
|
+
# The version of the bot that responded to the conversation. You can
|
1203
|
+
# use this information to help determine if one version of a bot is
|
1204
|
+
# performing better than another version.
|
1205
|
+
#
|
1206
|
+
# If you have enabled the new natural language understanding (NLU)
|
1207
|
+
# model, you can use this to determine if the improvement is due to
|
1208
|
+
# changes to the bot or changes to the NLU.
|
1209
|
+
#
|
1210
|
+
# For more information about enabling the new NLU, see the
|
1211
|
+
# [enableModelImprovements][1] parameter of the `PutBot` operation.
|
1212
|
+
#
|
1213
|
+
#
|
1214
|
+
#
|
1215
|
+
# [1]: https://docs.aws.amazon.com/lex/latest/dg/API_PutBot.html#lex-PutBot-request-enableModelImprovements
|
1216
|
+
# @return [String]
|
1217
|
+
#
|
1122
1218
|
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/PostTextResponse AWS API Documentation
|
1123
1219
|
#
|
1124
1220
|
class PostTextResponse < Struct.new(
|
1125
1221
|
:intent_name,
|
1222
|
+
:nlu_intent_confidence,
|
1223
|
+
:alternative_intents,
|
1126
1224
|
:slots,
|
1127
1225
|
:session_attributes,
|
1128
1226
|
:message,
|
@@ -1131,11 +1229,41 @@ module Aws::Lex
|
|
1131
1229
|
:dialog_state,
|
1132
1230
|
:slot_to_elicit,
|
1133
1231
|
:response_card,
|
1134
|
-
:session_id
|
1232
|
+
:session_id,
|
1233
|
+
:bot_version)
|
1135
1234
|
SENSITIVE = [:slots, :session_attributes, :message]
|
1136
1235
|
include Aws::Structure
|
1137
1236
|
end
|
1138
1237
|
|
1238
|
+
# An intent that Amazon Lex suggests satisfies the user's intent.
|
1239
|
+
# Includes the name of the intent, the confidence that Amazon Lex has
|
1240
|
+
# that the user's intent is satisfied, and the slots defined for the
|
1241
|
+
# intent.
|
1242
|
+
#
|
1243
|
+
# @!attribute [rw] intent_name
|
1244
|
+
# The name of the intent that Amazon Lex suggests satisfies the
|
1245
|
+
# user's intent.
|
1246
|
+
# @return [String]
|
1247
|
+
#
|
1248
|
+
# @!attribute [rw] nlu_intent_confidence
|
1249
|
+
# Indicates how confident Amazon Lex is that an intent satisfies the
|
1250
|
+
# user's intent.
|
1251
|
+
# @return [Types::IntentConfidence]
|
1252
|
+
#
|
1253
|
+
# @!attribute [rw] slots
|
1254
|
+
# The slot and slot values associated with the predicted intent.
|
1255
|
+
# @return [Hash<String,String>]
|
1256
|
+
#
|
1257
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/PredictedIntent AWS API Documentation
|
1258
|
+
#
|
1259
|
+
class PredictedIntent < Struct.new(
|
1260
|
+
:intent_name,
|
1261
|
+
:nlu_intent_confidence,
|
1262
|
+
:slots)
|
1263
|
+
SENSITIVE = [:slots]
|
1264
|
+
include Aws::Structure
|
1265
|
+
end
|
1266
|
+
|
1139
1267
|
# @note When making an API call, you may pass PutSessionRequest
|
1140
1268
|
# data as a hash:
|
1141
1269
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-lex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.29.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
|