aws-sdk-lexruntimev2 1.9.0 → 1.13.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 +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-lexruntimev2/async_client.rb +15 -2
- data/lib/aws-sdk-lexruntimev2/client.rb +52 -3
- data/lib/aws-sdk-lexruntimev2/client_api.rb +28 -0
- data/lib/aws-sdk-lexruntimev2/types.rb +205 -2
- data/lib/aws-sdk-lexruntimev2.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4f67e0ec65e8f812e9ab2670ede53fbf59edd160f531780b2e169cd35aafd32
|
4
|
+
data.tar.gz: 22caedef45d9dd0793432111a3824086149058ead2ae1247808c7dd922fc1838
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c11bf12d300e57223445ea5741eb74756179c3f48afe4d51b94f83d336738833b30faa47be389c682c27f525d1ffcb86bd2b36ff7d86e582b4e89e41e272ce9
|
7
|
+
data.tar.gz: 810e0bd6a4c7a27edc08bc65f808bd4b3ea6b2dda715c2ceac6e9a15941b163ab41baedcefc8d987dc2fad3bddf3d611c42d15aa2ba542c2a3556b2374fef988
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,26 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.13.0 (2022-01-13)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds support for sending hints to Amazon Lex V2 runtime APIs. Bot developers can provide runtime hints to help improve the recognition of slot values.
|
8
|
+
|
9
|
+
1.12.0 (2021-12-21)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
1.11.0 (2021-11-30)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
18
|
+
|
19
|
+
1.10.0 (2021-11-19)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - Now supports styled slots in Lex V2 runtime. Customers can provide inputs like "a as in apple b for beta" which will be resolved to "ab" as slot value.
|
23
|
+
|
4
24
|
1.9.0 (2021-11-04)
|
5
25
|
------------------
|
6
26
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.13.0
|
@@ -23,6 +23,7 @@ require 'aws-sdk-core/plugins/stub_responses.rb'
|
|
23
23
|
require 'aws-sdk-core/plugins/idempotency_token.rb'
|
24
24
|
require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
25
25
|
require 'aws-sdk-core/plugins/http_checksum.rb'
|
26
|
+
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
26
27
|
require 'aws-sdk-core/plugins/invocation_id.rb'
|
27
28
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
28
29
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
@@ -52,6 +53,7 @@ module Aws::LexRuntimeV2
|
|
52
53
|
add_plugin(Aws::Plugins::IdempotencyToken)
|
53
54
|
add_plugin(Aws::Plugins::JsonvalueConverter)
|
54
55
|
add_plugin(Aws::Plugins::HttpChecksum)
|
56
|
+
add_plugin(Aws::Plugins::DefaultsMode)
|
55
57
|
add_plugin(Aws::Plugins::InvocationId)
|
56
58
|
add_plugin(Aws::Plugins::SignatureV4)
|
57
59
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
@@ -98,7 +100,9 @@ module Aws::LexRuntimeV2
|
|
98
100
|
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
99
101
|
# are very aggressive. Construct and pass an instance of
|
100
102
|
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
101
|
-
# enable retries and extended timeouts.
|
103
|
+
# enable retries and extended timeouts. Instance profile credential
|
104
|
+
# fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
|
105
|
+
# to true.
|
102
106
|
#
|
103
107
|
# @option options [required, String] :region
|
104
108
|
# The AWS region to connect to. The configured `:region` is
|
@@ -128,6 +132,10 @@ module Aws::LexRuntimeV2
|
|
128
132
|
# Used only in `standard` and adaptive retry modes. Specifies whether to apply
|
129
133
|
# a clock skew correction and retry requests with skewed client clocks.
|
130
134
|
#
|
135
|
+
# @option options [String] :defaults_mode ("legacy")
|
136
|
+
# See {Aws::DefaultsModeConfiguration} for a list of the
|
137
|
+
# accepted modes and the configuration defaults that are included.
|
138
|
+
#
|
131
139
|
# @option options [String] :endpoint
|
132
140
|
# The client endpoint is normally constructed from the `:region`
|
133
141
|
# option. You should only configure an `:endpoint` when connecting
|
@@ -514,6 +522,7 @@ module Aws::LexRuntimeV2
|
|
514
522
|
# event.interpretations[0].intent.confirmation_state #=> String, one of "Confirmed", "Denied", "None"
|
515
523
|
# event.session_state.dialog_action.type #=> String, one of "Close", "ConfirmIntent", "Delegate", "ElicitIntent", "ElicitSlot", "None"
|
516
524
|
# event.session_state.dialog_action.slot_to_elicit #=> String
|
525
|
+
# event.session_state.dialog_action.slot_elicitation_style #=> String, one of "Default", "SpellByLetter", "SpellByWord"
|
517
526
|
# event.session_state.intent.name #=> String
|
518
527
|
# event.session_state.intent.slots #=> Hash
|
519
528
|
# event.session_state.intent.slots["NonEmptyString"].value.original_value #=> String
|
@@ -534,6 +543,10 @@ module Aws::LexRuntimeV2
|
|
534
543
|
# event.session_state.session_attributes #=> Hash
|
535
544
|
# event.session_state.session_attributes["NonEmptyString"] #=> String
|
536
545
|
# event.session_state.originating_request_id #=> String
|
546
|
+
# event.session_state.runtime_hints.slot_hints #=> Hash
|
547
|
+
# event.session_state.runtime_hints.slot_hints["Name"] #=> Hash
|
548
|
+
# event.session_state.runtime_hints.slot_hints["Name"]["Name"].runtime_hint_values #=> Array
|
549
|
+
# event.session_state.runtime_hints.slot_hints["Name"]["Name"].runtime_hint_values[0].phrase #=> String
|
537
550
|
# event.request_attributes #=> Hash
|
538
551
|
# event.request_attributes["NonEmptyString"] #=> String
|
539
552
|
# event.session_id #=> String
|
@@ -626,7 +639,7 @@ module Aws::LexRuntimeV2
|
|
626
639
|
http_response: Seahorse::Client::Http::AsyncResponse.new,
|
627
640
|
config: config)
|
628
641
|
context[:gem_name] = 'aws-sdk-lexruntimev2'
|
629
|
-
context[:gem_version] = '1.
|
642
|
+
context[:gem_version] = '1.13.0'
|
630
643
|
Seahorse::Client::Request.new(handlers, context)
|
631
644
|
end
|
632
645
|
|
@@ -27,6 +27,7 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
|
27
27
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
28
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
29
|
require 'aws-sdk-core/plugins/http_checksum.rb'
|
30
|
+
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
30
31
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
31
32
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
32
33
|
require 'aws-sdk-core/plugins/event_stream_configuration.rb'
|
@@ -74,6 +75,7 @@ module Aws::LexRuntimeV2
|
|
74
75
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
75
76
|
add_plugin(Aws::Plugins::TransferEncoding)
|
76
77
|
add_plugin(Aws::Plugins::HttpChecksum)
|
78
|
+
add_plugin(Aws::Plugins::DefaultsMode)
|
77
79
|
add_plugin(Aws::Plugins::SignatureV4)
|
78
80
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
79
81
|
add_plugin(Aws::Plugins::EventStreamConfiguration)
|
@@ -121,7 +123,9 @@ module Aws::LexRuntimeV2
|
|
121
123
|
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
122
124
|
# are very aggressive. Construct and pass an instance of
|
123
125
|
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
124
|
-
# enable retries and extended timeouts.
|
126
|
+
# enable retries and extended timeouts. Instance profile credential
|
127
|
+
# fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
|
128
|
+
# to true.
|
125
129
|
#
|
126
130
|
# @option options [required, String] :region
|
127
131
|
# The AWS region to connect to. The configured `:region` is
|
@@ -175,6 +179,10 @@ module Aws::LexRuntimeV2
|
|
175
179
|
# Used only in `standard` and adaptive retry modes. Specifies whether to apply
|
176
180
|
# a clock skew correction and retry requests with skewed client clocks.
|
177
181
|
#
|
182
|
+
# @option options [String] :defaults_mode ("legacy")
|
183
|
+
# See {Aws::DefaultsModeConfiguration} for a list of the
|
184
|
+
# accepted modes and the configuration defaults that are included.
|
185
|
+
#
|
178
186
|
# @option options [Boolean] :disable_host_prefix_injection (false)
|
179
187
|
# Set to true to disable SDK automatically adding host prefix
|
180
188
|
# to default service endpoint when available.
|
@@ -306,7 +314,7 @@ module Aws::LexRuntimeV2
|
|
306
314
|
# seconds to wait when opening a HTTP session before raising a
|
307
315
|
# `Timeout::Error`.
|
308
316
|
#
|
309
|
-
# @option options [
|
317
|
+
# @option options [Float] :http_read_timeout (60) The default
|
310
318
|
# number of seconds to wait for response data. This value can
|
311
319
|
# safely be set per-request on the session.
|
312
320
|
#
|
@@ -322,6 +330,9 @@ module Aws::LexRuntimeV2
|
|
322
330
|
# disables this behaviour. This value can safely be set per
|
323
331
|
# request on the session.
|
324
332
|
#
|
333
|
+
# @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
|
334
|
+
# in seconds.
|
335
|
+
#
|
325
336
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
326
337
|
# HTTP debug output will be sent to the `:logger`.
|
327
338
|
#
|
@@ -479,6 +490,7 @@ module Aws::LexRuntimeV2
|
|
479
490
|
# resp.interpretations[0].intent.confirmation_state #=> String, one of "Confirmed", "Denied", "None"
|
480
491
|
# resp.session_state.dialog_action.type #=> String, one of "Close", "ConfirmIntent", "Delegate", "ElicitIntent", "ElicitSlot", "None"
|
481
492
|
# resp.session_state.dialog_action.slot_to_elicit #=> String
|
493
|
+
# resp.session_state.dialog_action.slot_elicitation_style #=> String, one of "Default", "SpellByLetter", "SpellByWord"
|
482
494
|
# resp.session_state.intent.name #=> String
|
483
495
|
# resp.session_state.intent.slots #=> Hash
|
484
496
|
# resp.session_state.intent.slots["NonEmptyString"].value.original_value #=> String
|
@@ -499,6 +511,10 @@ module Aws::LexRuntimeV2
|
|
499
511
|
# resp.session_state.session_attributes #=> Hash
|
500
512
|
# resp.session_state.session_attributes["NonEmptyString"] #=> String
|
501
513
|
# resp.session_state.originating_request_id #=> String
|
514
|
+
# resp.session_state.runtime_hints.slot_hints #=> Hash
|
515
|
+
# resp.session_state.runtime_hints.slot_hints["Name"] #=> Hash
|
516
|
+
# resp.session_state.runtime_hints.slot_hints["Name"]["Name"].runtime_hint_values #=> Array
|
517
|
+
# resp.session_state.runtime_hints.slot_hints["Name"]["Name"].runtime_hint_values[0].phrase #=> String
|
502
518
|
#
|
503
519
|
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex.v2-2020-08-07/GetSession AWS API Documentation
|
504
520
|
#
|
@@ -588,6 +604,7 @@ module Aws::LexRuntimeV2
|
|
588
604
|
# dialog_action: {
|
589
605
|
# type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
|
590
606
|
# slot_to_elicit: "NonEmptyString",
|
607
|
+
# slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
|
591
608
|
# },
|
592
609
|
# intent: {
|
593
610
|
# name: "NonEmptyString", # required
|
@@ -625,6 +642,19 @@ module Aws::LexRuntimeV2
|
|
625
642
|
# "NonEmptyString" => "String",
|
626
643
|
# },
|
627
644
|
# originating_request_id: "NonEmptyString",
|
645
|
+
# runtime_hints: {
|
646
|
+
# slot_hints: {
|
647
|
+
# "Name" => {
|
648
|
+
# "Name" => {
|
649
|
+
# runtime_hint_values: [ # required
|
650
|
+
# {
|
651
|
+
# phrase: "RuntimeHintPhrase", # required
|
652
|
+
# },
|
653
|
+
# ],
|
654
|
+
# },
|
655
|
+
# },
|
656
|
+
# },
|
657
|
+
# },
|
628
658
|
# },
|
629
659
|
# request_attributes: {
|
630
660
|
# "NonEmptyString" => "String",
|
@@ -727,6 +757,7 @@ module Aws::LexRuntimeV2
|
|
727
757
|
# dialog_action: {
|
728
758
|
# type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
|
729
759
|
# slot_to_elicit: "NonEmptyString",
|
760
|
+
# slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
|
730
761
|
# },
|
731
762
|
# intent: {
|
732
763
|
# name: "NonEmptyString", # required
|
@@ -764,6 +795,19 @@ module Aws::LexRuntimeV2
|
|
764
795
|
# "NonEmptyString" => "String",
|
765
796
|
# },
|
766
797
|
# originating_request_id: "NonEmptyString",
|
798
|
+
# runtime_hints: {
|
799
|
+
# slot_hints: {
|
800
|
+
# "Name" => {
|
801
|
+
# "Name" => {
|
802
|
+
# runtime_hint_values: [ # required
|
803
|
+
# {
|
804
|
+
# phrase: "RuntimeHintPhrase", # required
|
805
|
+
# },
|
806
|
+
# ],
|
807
|
+
# },
|
808
|
+
# },
|
809
|
+
# },
|
810
|
+
# },
|
767
811
|
# },
|
768
812
|
# request_attributes: {
|
769
813
|
# "NonEmptyString" => "String",
|
@@ -783,6 +827,7 @@ module Aws::LexRuntimeV2
|
|
783
827
|
# resp.messages[0].image_response_card.buttons[0].value #=> String
|
784
828
|
# resp.session_state.dialog_action.type #=> String, one of "Close", "ConfirmIntent", "Delegate", "ElicitIntent", "ElicitSlot", "None"
|
785
829
|
# resp.session_state.dialog_action.slot_to_elicit #=> String
|
830
|
+
# resp.session_state.dialog_action.slot_elicitation_style #=> String, one of "Default", "SpellByLetter", "SpellByWord"
|
786
831
|
# resp.session_state.intent.name #=> String
|
787
832
|
# resp.session_state.intent.slots #=> Hash
|
788
833
|
# resp.session_state.intent.slots["NonEmptyString"].value.original_value #=> String
|
@@ -803,6 +848,10 @@ module Aws::LexRuntimeV2
|
|
803
848
|
# resp.session_state.session_attributes #=> Hash
|
804
849
|
# resp.session_state.session_attributes["NonEmptyString"] #=> String
|
805
850
|
# resp.session_state.originating_request_id #=> String
|
851
|
+
# resp.session_state.runtime_hints.slot_hints #=> Hash
|
852
|
+
# resp.session_state.runtime_hints.slot_hints["Name"] #=> Hash
|
853
|
+
# resp.session_state.runtime_hints.slot_hints["Name"]["Name"].runtime_hint_values #=> Array
|
854
|
+
# resp.session_state.runtime_hints.slot_hints["Name"]["Name"].runtime_hint_values[0].phrase #=> String
|
806
855
|
# resp.interpretations #=> Array
|
807
856
|
# resp.interpretations[0].nlu_confidence.score #=> Float
|
808
857
|
# resp.interpretations[0].sentiment_response.sentiment #=> String, one of "MIXED", "NEGATIVE", "NEUTRAL", "POSITIVE"
|
@@ -1038,7 +1087,7 @@ module Aws::LexRuntimeV2
|
|
1038
1087
|
params: params,
|
1039
1088
|
config: config)
|
1040
1089
|
context[:gem_name] = 'aws-sdk-lexruntimev2'
|
1041
|
-
context[:gem_version] = '1.
|
1090
|
+
context[:gem_version] = '1.13.0'
|
1042
1091
|
Seahorse::Client::Request.new(handlers, context)
|
1043
1092
|
end
|
1044
1093
|
|
@@ -66,6 +66,7 @@ module Aws::LexRuntimeV2
|
|
66
66
|
Message = Shapes::StructureShape.new(name: 'Message')
|
67
67
|
MessageContentType = Shapes::StringShape.new(name: 'MessageContentType')
|
68
68
|
Messages = Shapes::ListShape.new(name: 'Messages')
|
69
|
+
Name = Shapes::StringShape.new(name: 'Name')
|
69
70
|
NonEmptyString = Shapes::StringShape.new(name: 'NonEmptyString')
|
70
71
|
ParameterName = Shapes::StringShape.new(name: 'ParameterName')
|
71
72
|
PlaybackCompletionEvent = Shapes::StructureShape.new(name: 'PlaybackCompletionEvent')
|
@@ -78,6 +79,11 @@ module Aws::LexRuntimeV2
|
|
78
79
|
RecognizeUtteranceRequest = Shapes::StructureShape.new(name: 'RecognizeUtteranceRequest')
|
79
80
|
RecognizeUtteranceResponse = Shapes::StructureShape.new(name: 'RecognizeUtteranceResponse')
|
80
81
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
82
|
+
RuntimeHintDetails = Shapes::StructureShape.new(name: 'RuntimeHintDetails')
|
83
|
+
RuntimeHintPhrase = Shapes::StringShape.new(name: 'RuntimeHintPhrase')
|
84
|
+
RuntimeHintValue = Shapes::StructureShape.new(name: 'RuntimeHintValue')
|
85
|
+
RuntimeHintValuesList = Shapes::ListShape.new(name: 'RuntimeHintValuesList')
|
86
|
+
RuntimeHints = Shapes::StructureShape.new(name: 'RuntimeHints')
|
81
87
|
SensitiveNonEmptyString = Shapes::StringShape.new(name: 'SensitiveNonEmptyString')
|
82
88
|
SentimentResponse = Shapes::StructureShape.new(name: 'SentimentResponse')
|
83
89
|
SentimentScore = Shapes::StructureShape.new(name: 'SentimentScore')
|
@@ -86,6 +92,8 @@ module Aws::LexRuntimeV2
|
|
86
92
|
SessionState = Shapes::StructureShape.new(name: 'SessionState')
|
87
93
|
Shape = Shapes::StringShape.new(name: 'Shape')
|
88
94
|
Slot = Shapes::StructureShape.new(name: 'Slot')
|
95
|
+
SlotHintsIntentMap = Shapes::MapShape.new(name: 'SlotHintsIntentMap')
|
96
|
+
SlotHintsSlotMap = Shapes::MapShape.new(name: 'SlotHintsSlotMap')
|
89
97
|
Slots = Shapes::MapShape.new(name: 'Slots')
|
90
98
|
StartConversationRequest = Shapes::StructureShape.new(name: 'StartConversationRequest')
|
91
99
|
StartConversationRequestEventStream = Shapes::StructureShape.new(name: 'StartConversationRequestEventStream')
|
@@ -94,6 +102,7 @@ module Aws::LexRuntimeV2
|
|
94
102
|
String = Shapes::StringShape.new(name: 'String')
|
95
103
|
StringList = Shapes::ListShape.new(name: 'StringList')
|
96
104
|
StringMap = Shapes::MapShape.new(name: 'StringMap')
|
105
|
+
StyleType = Shapes::StringShape.new(name: 'StyleType')
|
97
106
|
Text = Shapes::StringShape.new(name: 'Text')
|
98
107
|
TextInputEvent = Shapes::StructureShape.new(name: 'TextInputEvent')
|
99
108
|
TextResponseEvent = Shapes::StructureShape.new(name: 'TextResponseEvent')
|
@@ -177,6 +186,7 @@ module Aws::LexRuntimeV2
|
|
177
186
|
|
178
187
|
DialogAction.add_member(:type, Shapes::ShapeRef.new(shape: DialogActionType, required: true, location_name: "type"))
|
179
188
|
DialogAction.add_member(:slot_to_elicit, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "slotToElicit"))
|
189
|
+
DialogAction.add_member(:slot_elicitation_style, Shapes::ShapeRef.new(shape: StyleType, location_name: "slotElicitationStyle"))
|
180
190
|
DialogAction.struct_class = Types::DialogAction
|
181
191
|
|
182
192
|
DisconnectionEvent.add_member(:event_id, Shapes::ShapeRef.new(shape: EventId, location_name: "eventId"))
|
@@ -309,6 +319,17 @@ module Aws::LexRuntimeV2
|
|
309
319
|
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
310
320
|
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
311
321
|
|
322
|
+
RuntimeHintDetails.add_member(:runtime_hint_values, Shapes::ShapeRef.new(shape: RuntimeHintValuesList, required: true, location_name: "runtimeHintValues"))
|
323
|
+
RuntimeHintDetails.struct_class = Types::RuntimeHintDetails
|
324
|
+
|
325
|
+
RuntimeHintValue.add_member(:phrase, Shapes::ShapeRef.new(shape: RuntimeHintPhrase, required: true, location_name: "phrase"))
|
326
|
+
RuntimeHintValue.struct_class = Types::RuntimeHintValue
|
327
|
+
|
328
|
+
RuntimeHintValuesList.member = Shapes::ShapeRef.new(shape: RuntimeHintValue)
|
329
|
+
|
330
|
+
RuntimeHints.add_member(:slot_hints, Shapes::ShapeRef.new(shape: SlotHintsIntentMap, location_name: "slotHints"))
|
331
|
+
RuntimeHints.struct_class = Types::RuntimeHints
|
332
|
+
|
312
333
|
SentimentResponse.add_member(:sentiment, Shapes::ShapeRef.new(shape: SentimentType, location_name: "sentiment"))
|
313
334
|
SentimentResponse.add_member(:sentiment_score, Shapes::ShapeRef.new(shape: SentimentScore, location_name: "sentimentScore"))
|
314
335
|
SentimentResponse.struct_class = Types::SentimentResponse
|
@@ -324,6 +345,7 @@ module Aws::LexRuntimeV2
|
|
324
345
|
SessionState.add_member(:active_contexts, Shapes::ShapeRef.new(shape: ActiveContextsList, location_name: "activeContexts"))
|
325
346
|
SessionState.add_member(:session_attributes, Shapes::ShapeRef.new(shape: StringMap, location_name: "sessionAttributes"))
|
326
347
|
SessionState.add_member(:originating_request_id, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "originatingRequestId"))
|
348
|
+
SessionState.add_member(:runtime_hints, Shapes::ShapeRef.new(shape: RuntimeHints, location_name: "runtimeHints"))
|
327
349
|
SessionState.struct_class = Types::SessionState
|
328
350
|
|
329
351
|
Slot.add_member(:value, Shapes::ShapeRef.new(shape: Value, location_name: "value"))
|
@@ -331,6 +353,12 @@ module Aws::LexRuntimeV2
|
|
331
353
|
Slot.add_member(:values, Shapes::ShapeRef.new(shape: Values, location_name: "values"))
|
332
354
|
Slot.struct_class = Types::Slot
|
333
355
|
|
356
|
+
SlotHintsIntentMap.key = Shapes::ShapeRef.new(shape: Name)
|
357
|
+
SlotHintsIntentMap.value = Shapes::ShapeRef.new(shape: SlotHintsSlotMap)
|
358
|
+
|
359
|
+
SlotHintsSlotMap.key = Shapes::ShapeRef.new(shape: Name)
|
360
|
+
SlotHintsSlotMap.value = Shapes::ShapeRef.new(shape: RuntimeHintDetails)
|
361
|
+
|
334
362
|
Slots.key = Shapes::ShapeRef.new(shape: NonEmptyString)
|
335
363
|
Slots.value = Shapes::ShapeRef.new(shape: Slot)
|
336
364
|
|
@@ -258,6 +258,7 @@ module Aws::LexRuntimeV2
|
|
258
258
|
# dialog_action: {
|
259
259
|
# type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
|
260
260
|
# slot_to_elicit: "NonEmptyString",
|
261
|
+
# slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
|
261
262
|
# },
|
262
263
|
# intent: {
|
263
264
|
# name: "NonEmptyString", # required
|
@@ -295,6 +296,19 @@ module Aws::LexRuntimeV2
|
|
295
296
|
# "NonEmptyString" => "String",
|
296
297
|
# },
|
297
298
|
# originating_request_id: "NonEmptyString",
|
299
|
+
# runtime_hints: {
|
300
|
+
# slot_hints: {
|
301
|
+
# "Name" => {
|
302
|
+
# "Name" => {
|
303
|
+
# runtime_hint_values: [ # required
|
304
|
+
# {
|
305
|
+
# phrase: "RuntimeHintPhrase", # required
|
306
|
+
# },
|
307
|
+
# ],
|
308
|
+
# },
|
309
|
+
# },
|
310
|
+
# },
|
311
|
+
# },
|
298
312
|
# },
|
299
313
|
# welcome_messages: [
|
300
314
|
# {
|
@@ -538,6 +552,7 @@ module Aws::LexRuntimeV2
|
|
538
552
|
# {
|
539
553
|
# type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
|
540
554
|
# slot_to_elicit: "NonEmptyString",
|
555
|
+
# slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
|
541
556
|
# }
|
542
557
|
#
|
543
558
|
# @!attribute [rw] type
|
@@ -562,11 +577,29 @@ module Aws::LexRuntimeV2
|
|
562
577
|
# The name of the slot that should be elicited from the user.
|
563
578
|
# @return [String]
|
564
579
|
#
|
580
|
+
# @!attribute [rw] slot_elicitation_style
|
581
|
+
# Configures the slot to use spell-by-letter or spell-by-word style.
|
582
|
+
# When you use a style on a slot, users can spell out their input to
|
583
|
+
# make it clear to your bot.
|
584
|
+
#
|
585
|
+
# * Spell by letter - "b" "o" "b"
|
586
|
+
#
|
587
|
+
# * Spell by word - "b as in boy" "o as in oscar" "b as in boy"
|
588
|
+
#
|
589
|
+
# For more information, see [ Using spelling to enter slot values
|
590
|
+
# ][1].
|
591
|
+
#
|
592
|
+
#
|
593
|
+
#
|
594
|
+
# [1]: https://docs.aws.amazon.com/lexv2/latest/dg/using-spelling.html
|
595
|
+
# @return [String]
|
596
|
+
#
|
565
597
|
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex.v2-2020-08-07/DialogAction AWS API Documentation
|
566
598
|
#
|
567
599
|
class DialogAction < Struct.new(
|
568
600
|
:type,
|
569
|
-
:slot_to_elicit
|
601
|
+
:slot_to_elicit,
|
602
|
+
:slot_elicitation_style)
|
570
603
|
SENSITIVE = []
|
571
604
|
include Aws::Structure
|
572
605
|
end
|
@@ -1047,6 +1080,7 @@ module Aws::LexRuntimeV2
|
|
1047
1080
|
# dialog_action: {
|
1048
1081
|
# type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
|
1049
1082
|
# slot_to_elicit: "NonEmptyString",
|
1083
|
+
# slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
|
1050
1084
|
# },
|
1051
1085
|
# intent: {
|
1052
1086
|
# name: "NonEmptyString", # required
|
@@ -1084,6 +1118,19 @@ module Aws::LexRuntimeV2
|
|
1084
1118
|
# "NonEmptyString" => "String",
|
1085
1119
|
# },
|
1086
1120
|
# originating_request_id: "NonEmptyString",
|
1121
|
+
# runtime_hints: {
|
1122
|
+
# slot_hints: {
|
1123
|
+
# "Name" => {
|
1124
|
+
# "Name" => {
|
1125
|
+
# runtime_hint_values: [ # required
|
1126
|
+
# {
|
1127
|
+
# phrase: "RuntimeHintPhrase", # required
|
1128
|
+
# },
|
1129
|
+
# ],
|
1130
|
+
# },
|
1131
|
+
# },
|
1132
|
+
# },
|
1133
|
+
# },
|
1087
1134
|
# },
|
1088
1135
|
# request_attributes: {
|
1089
1136
|
# "NonEmptyString" => "String",
|
@@ -1212,6 +1259,7 @@ module Aws::LexRuntimeV2
|
|
1212
1259
|
# dialog_action: {
|
1213
1260
|
# type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
|
1214
1261
|
# slot_to_elicit: "NonEmptyString",
|
1262
|
+
# slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
|
1215
1263
|
# },
|
1216
1264
|
# intent: {
|
1217
1265
|
# name: "NonEmptyString", # required
|
@@ -1249,6 +1297,19 @@ module Aws::LexRuntimeV2
|
|
1249
1297
|
# "NonEmptyString" => "String",
|
1250
1298
|
# },
|
1251
1299
|
# originating_request_id: "NonEmptyString",
|
1300
|
+
# runtime_hints: {
|
1301
|
+
# slot_hints: {
|
1302
|
+
# "Name" => {
|
1303
|
+
# "Name" => {
|
1304
|
+
# runtime_hint_values: [ # required
|
1305
|
+
# {
|
1306
|
+
# phrase: "RuntimeHintPhrase", # required
|
1307
|
+
# },
|
1308
|
+
# ],
|
1309
|
+
# },
|
1310
|
+
# },
|
1311
|
+
# },
|
1312
|
+
# },
|
1252
1313
|
# },
|
1253
1314
|
# request_attributes: {
|
1254
1315
|
# "NonEmptyString" => "String",
|
@@ -1591,6 +1652,112 @@ module Aws::LexRuntimeV2
|
|
1591
1652
|
include Aws::Structure
|
1592
1653
|
end
|
1593
1654
|
|
1655
|
+
# Provides an array of phrases that should be given preference when
|
1656
|
+
# resolving values for a slot.
|
1657
|
+
#
|
1658
|
+
# @note When making an API call, you may pass RuntimeHintDetails
|
1659
|
+
# data as a hash:
|
1660
|
+
#
|
1661
|
+
# {
|
1662
|
+
# runtime_hint_values: [ # required
|
1663
|
+
# {
|
1664
|
+
# phrase: "RuntimeHintPhrase", # required
|
1665
|
+
# },
|
1666
|
+
# ],
|
1667
|
+
# }
|
1668
|
+
#
|
1669
|
+
# @!attribute [rw] runtime_hint_values
|
1670
|
+
# One or more strings that Amazon Lex V2 should look for in the input
|
1671
|
+
# to the bot. Each phrase is given preference when deciding on slot
|
1672
|
+
# values.
|
1673
|
+
# @return [Array<Types::RuntimeHintValue>]
|
1674
|
+
#
|
1675
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex.v2-2020-08-07/RuntimeHintDetails AWS API Documentation
|
1676
|
+
#
|
1677
|
+
class RuntimeHintDetails < Struct.new(
|
1678
|
+
:runtime_hint_values)
|
1679
|
+
SENSITIVE = []
|
1680
|
+
include Aws::Structure
|
1681
|
+
end
|
1682
|
+
|
1683
|
+
# Provides the phrase that Amazon Lex V2 should look for in the user's
|
1684
|
+
# input to the bot.
|
1685
|
+
#
|
1686
|
+
# @note When making an API call, you may pass RuntimeHintValue
|
1687
|
+
# data as a hash:
|
1688
|
+
#
|
1689
|
+
# {
|
1690
|
+
# phrase: "RuntimeHintPhrase", # required
|
1691
|
+
# }
|
1692
|
+
#
|
1693
|
+
# @!attribute [rw] phrase
|
1694
|
+
# The phrase that Amazon Lex V2 should look for in the user's input
|
1695
|
+
# to the bot.
|
1696
|
+
# @return [String]
|
1697
|
+
#
|
1698
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex.v2-2020-08-07/RuntimeHintValue AWS API Documentation
|
1699
|
+
#
|
1700
|
+
class RuntimeHintValue < Struct.new(
|
1701
|
+
:phrase)
|
1702
|
+
SENSITIVE = []
|
1703
|
+
include Aws::Structure
|
1704
|
+
end
|
1705
|
+
|
1706
|
+
# You can provide Amazon Lex V2 with hints to the phrases that a
|
1707
|
+
# customer is likely to use for a slot. When a slot with hints is
|
1708
|
+
# resolved, the phrases in the runtime hints are preferred in the
|
1709
|
+
# resolution. You can provide hints for a maximum of 100 intents. You
|
1710
|
+
# can provide a maximum of 100 slots.
|
1711
|
+
#
|
1712
|
+
# Before you can use runtime hints with an existing bot, you must first
|
1713
|
+
# rebuild the bot.
|
1714
|
+
#
|
1715
|
+
# For more information, see [Using hints to improve accuracy][1].
|
1716
|
+
#
|
1717
|
+
#
|
1718
|
+
#
|
1719
|
+
# [1]: https://docs.aws.amazon.com/lexv2/latest/dg/using-hints.xml
|
1720
|
+
#
|
1721
|
+
# @note When making an API call, you may pass RuntimeHints
|
1722
|
+
# data as a hash:
|
1723
|
+
#
|
1724
|
+
# {
|
1725
|
+
# slot_hints: {
|
1726
|
+
# "Name" => {
|
1727
|
+
# "Name" => {
|
1728
|
+
# runtime_hint_values: [ # required
|
1729
|
+
# {
|
1730
|
+
# phrase: "RuntimeHintPhrase", # required
|
1731
|
+
# },
|
1732
|
+
# ],
|
1733
|
+
# },
|
1734
|
+
# },
|
1735
|
+
# },
|
1736
|
+
# }
|
1737
|
+
#
|
1738
|
+
# @!attribute [rw] slot_hints
|
1739
|
+
# A list of the slots in the intent that should have runtime hints
|
1740
|
+
# added, and the phrases that should be added for each slot.
|
1741
|
+
#
|
1742
|
+
# The first level of the `slotHints` map is the name of the intent.
|
1743
|
+
# The second level is the name of the slot within the intent. For more
|
1744
|
+
# information, see [Using hints to improve accuracy][1].
|
1745
|
+
#
|
1746
|
+
# The intent name and slot name must exist.
|
1747
|
+
#
|
1748
|
+
#
|
1749
|
+
#
|
1750
|
+
# [1]: https://docs.aws.amazon.com/lexv2/latest/dg/using-hints.xml
|
1751
|
+
# @return [Hash<String,Hash<String,Types::RuntimeHintDetails>>]
|
1752
|
+
#
|
1753
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex.v2-2020-08-07/RuntimeHints AWS API Documentation
|
1754
|
+
#
|
1755
|
+
class RuntimeHints < Struct.new(
|
1756
|
+
:slot_hints)
|
1757
|
+
SENSITIVE = []
|
1758
|
+
include Aws::Structure
|
1759
|
+
end
|
1760
|
+
|
1594
1761
|
# Provides information about the sentiment expressed in a user's
|
1595
1762
|
# response in a conversation. Sentiments are determined using Amazon
|
1596
1763
|
# Comprehend. Sentiments are only returned if they are enabled for the
|
@@ -1664,6 +1831,7 @@ module Aws::LexRuntimeV2
|
|
1664
1831
|
# dialog_action: {
|
1665
1832
|
# type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
|
1666
1833
|
# slot_to_elicit: "NonEmptyString",
|
1834
|
+
# slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
|
1667
1835
|
# },
|
1668
1836
|
# intent: {
|
1669
1837
|
# name: "NonEmptyString", # required
|
@@ -1701,6 +1869,19 @@ module Aws::LexRuntimeV2
|
|
1701
1869
|
# "NonEmptyString" => "String",
|
1702
1870
|
# },
|
1703
1871
|
# originating_request_id: "NonEmptyString",
|
1872
|
+
# runtime_hints: {
|
1873
|
+
# slot_hints: {
|
1874
|
+
# "Name" => {
|
1875
|
+
# "Name" => {
|
1876
|
+
# runtime_hint_values: [ # required
|
1877
|
+
# {
|
1878
|
+
# phrase: "RuntimeHintPhrase", # required
|
1879
|
+
# },
|
1880
|
+
# ],
|
1881
|
+
# },
|
1882
|
+
# },
|
1883
|
+
# },
|
1884
|
+
# },
|
1704
1885
|
# }
|
1705
1886
|
#
|
1706
1887
|
# @!attribute [rw] dialog_action
|
@@ -1726,8 +1907,15 @@ module Aws::LexRuntimeV2
|
|
1726
1907
|
# @return [Hash<String,String>]
|
1727
1908
|
#
|
1728
1909
|
# @!attribute [rw] originating_request_id
|
1910
|
+
# A unique identifier for a specific request.
|
1729
1911
|
# @return [String]
|
1730
1912
|
#
|
1913
|
+
# @!attribute [rw] runtime_hints
|
1914
|
+
# Hints for phrases that a customer is likely to use for a slot.
|
1915
|
+
# Amazon Lex V2 uses the hints to help determine the correct value of
|
1916
|
+
# a slot.
|
1917
|
+
# @return [Types::RuntimeHints]
|
1918
|
+
#
|
1731
1919
|
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex.v2-2020-08-07/SessionState AWS API Documentation
|
1732
1920
|
#
|
1733
1921
|
class SessionState < Struct.new(
|
@@ -1735,7 +1923,8 @@ module Aws::LexRuntimeV2
|
|
1735
1923
|
:intent,
|
1736
1924
|
:active_contexts,
|
1737
1925
|
:session_attributes,
|
1738
|
-
:originating_request_id
|
1926
|
+
:originating_request_id,
|
1927
|
+
:runtime_hints)
|
1739
1928
|
SENSITIVE = []
|
1740
1929
|
include Aws::Structure
|
1741
1930
|
end
|
@@ -2024,6 +2213,7 @@ module Aws::LexRuntimeV2
|
|
2024
2213
|
# dialog_action: {
|
2025
2214
|
# type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
|
2026
2215
|
# slot_to_elicit: "NonEmptyString",
|
2216
|
+
# slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
|
2027
2217
|
# },
|
2028
2218
|
# intent: {
|
2029
2219
|
# name: "NonEmptyString", # required
|
@@ -2061,6 +2251,19 @@ module Aws::LexRuntimeV2
|
|
2061
2251
|
# "NonEmptyString" => "String",
|
2062
2252
|
# },
|
2063
2253
|
# originating_request_id: "NonEmptyString",
|
2254
|
+
# runtime_hints: {
|
2255
|
+
# slot_hints: {
|
2256
|
+
# "Name" => {
|
2257
|
+
# "Name" => {
|
2258
|
+
# runtime_hint_values: [ # required
|
2259
|
+
# {
|
2260
|
+
# phrase: "RuntimeHintPhrase", # required
|
2261
|
+
# },
|
2262
|
+
# ],
|
2263
|
+
# },
|
2264
|
+
# },
|
2265
|
+
# },
|
2266
|
+
# },
|
2064
2267
|
# },
|
2065
2268
|
# welcome_messages: [
|
2066
2269
|
# {
|
data/lib/aws-sdk-lexruntimev2.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-lexruntimev2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.13.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:
|
11
|
+
date: 2022-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.125.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.125.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|