aws-sdk-lexruntimev2 1.15.0 → 1.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-lexruntimev2/async_client.rb +8 -3
- data/lib/aws-sdk-lexruntimev2/client.rb +43 -9
- data/lib/aws-sdk-lexruntimev2/client_api.rb +9 -1
- data/lib/aws-sdk-lexruntimev2/event_streams.rb +8 -0
- data/lib/aws-sdk-lexruntimev2/types.rb +194 -21
- data/lib/aws-sdk-lexruntimev2.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: 668edc5f74b262fa29ee8eec9d635f47e4f087e754f0151541a1bae77b809ed2
|
4
|
+
data.tar.gz: 27c09efe73b65fe6fb55ad55e66534ff1bb3318d8cf99c981c9c2b0c017cd0bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 801b1b7364ee463a35cedefa8c0bf0b0572fa92e712bb177027ab153ad3cf932e0bbd17c196f9e49930d09856aa3adf06f0dfc72e6fa5039b47ed1654dc9dd78
|
7
|
+
data.tar.gz: 0656d3fddadeab663ba3cab556ca434dd6c030d14eacdf06904bd135bc050733b87e3371c995c7aece66c9af2b8cbbc3a8860215aec308ae791fbc88e21160f5
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.16.0 (2022-09-09)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release is for supporting Composite Slot Type feature in AWS Lex V2. Composite Slot Type will help developer to logically group coherent slots and maintain their inter-relationships in runtime conversation.
|
8
|
+
|
4
9
|
1.15.0 (2022-02-24)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.16.0
|
@@ -519,23 +519,27 @@ module Aws::LexRuntimeV2
|
|
519
519
|
# event.interpretations[0].intent.slots["NonEmptyString"].value.interpreted_value #=> String
|
520
520
|
# event.interpretations[0].intent.slots["NonEmptyString"].value.resolved_values #=> Array
|
521
521
|
# event.interpretations[0].intent.slots["NonEmptyString"].value.resolved_values[0] #=> String
|
522
|
-
# event.interpretations[0].intent.slots["NonEmptyString"].shape #=> String, one of "Scalar", "List"
|
522
|
+
# event.interpretations[0].intent.slots["NonEmptyString"].shape #=> String, one of "Scalar", "List", "Composite"
|
523
523
|
# event.interpretations[0].intent.slots["NonEmptyString"].values #=> Array
|
524
524
|
# event.interpretations[0].intent.slots["NonEmptyString"].values[0] #=> Types::Slot
|
525
|
+
# event.interpretations[0].intent.slots["NonEmptyString"].sub_slots #=> Types::Slots
|
525
526
|
# event.interpretations[0].intent.state #=> String, one of "Failed", "Fulfilled", "InProgress", "ReadyForFulfillment", "Waiting", "FulfillmentInProgress"
|
526
527
|
# event.interpretations[0].intent.confirmation_state #=> String, one of "Confirmed", "Denied", "None"
|
527
528
|
# event.session_state.dialog_action.type #=> String, one of "Close", "ConfirmIntent", "Delegate", "ElicitIntent", "ElicitSlot", "None"
|
528
529
|
# event.session_state.dialog_action.slot_to_elicit #=> String
|
529
530
|
# event.session_state.dialog_action.slot_elicitation_style #=> String, one of "Default", "SpellByLetter", "SpellByWord"
|
531
|
+
# event.session_state.dialog_action.sub_slot_to_elicit.name #=> String
|
532
|
+
# event.session_state.dialog_action.sub_slot_to_elicit.sub_slot_to_elicit #=> Types::ElicitSubSlot
|
530
533
|
# event.session_state.intent.name #=> String
|
531
534
|
# event.session_state.intent.slots #=> Hash
|
532
535
|
# event.session_state.intent.slots["NonEmptyString"].value.original_value #=> String
|
533
536
|
# event.session_state.intent.slots["NonEmptyString"].value.interpreted_value #=> String
|
534
537
|
# event.session_state.intent.slots["NonEmptyString"].value.resolved_values #=> Array
|
535
538
|
# event.session_state.intent.slots["NonEmptyString"].value.resolved_values[0] #=> String
|
536
|
-
# event.session_state.intent.slots["NonEmptyString"].shape #=> String, one of "Scalar", "List"
|
539
|
+
# event.session_state.intent.slots["NonEmptyString"].shape #=> String, one of "Scalar", "List", "Composite"
|
537
540
|
# event.session_state.intent.slots["NonEmptyString"].values #=> Array
|
538
541
|
# event.session_state.intent.slots["NonEmptyString"].values[0] #=> Types::Slot
|
542
|
+
# event.session_state.intent.slots["NonEmptyString"].sub_slots #=> Types::Slots
|
539
543
|
# event.session_state.intent.state #=> String, one of "Failed", "Fulfilled", "InProgress", "ReadyForFulfillment", "Waiting", "FulfillmentInProgress"
|
540
544
|
# event.session_state.intent.confirmation_state #=> String, one of "Confirmed", "Denied", "None"
|
541
545
|
# event.session_state.active_contexts #=> Array
|
@@ -551,6 +555,7 @@ module Aws::LexRuntimeV2
|
|
551
555
|
# event.session_state.runtime_hints.slot_hints["Name"] #=> Hash
|
552
556
|
# event.session_state.runtime_hints.slot_hints["Name"]["Name"].runtime_hint_values #=> Array
|
553
557
|
# event.session_state.runtime_hints.slot_hints["Name"]["Name"].runtime_hint_values[0].phrase #=> String
|
558
|
+
# event.session_state.runtime_hints.slot_hints["Name"]["Name"].sub_slot_hints #=> Types::SlotHintsSlotMap
|
554
559
|
# event.request_attributes #=> Hash
|
555
560
|
# event.request_attributes["NonEmptyString"] #=> String
|
556
561
|
# event.session_id #=> String
|
@@ -643,7 +648,7 @@ module Aws::LexRuntimeV2
|
|
643
648
|
http_response: Seahorse::Client::Http::AsyncResponse.new,
|
644
649
|
config: config)
|
645
650
|
context[:gem_name] = 'aws-sdk-lexruntimev2'
|
646
|
-
context[:gem_version] = '1.
|
651
|
+
context[:gem_version] = '1.16.0'
|
647
652
|
Seahorse::Client::Request.new(handlers, context)
|
648
653
|
end
|
649
654
|
|
@@ -487,23 +487,27 @@ module Aws::LexRuntimeV2
|
|
487
487
|
# resp.interpretations[0].intent.slots["NonEmptyString"].value.interpreted_value #=> String
|
488
488
|
# resp.interpretations[0].intent.slots["NonEmptyString"].value.resolved_values #=> Array
|
489
489
|
# resp.interpretations[0].intent.slots["NonEmptyString"].value.resolved_values[0] #=> String
|
490
|
-
# resp.interpretations[0].intent.slots["NonEmptyString"].shape #=> String, one of "Scalar", "List"
|
490
|
+
# resp.interpretations[0].intent.slots["NonEmptyString"].shape #=> String, one of "Scalar", "List", "Composite"
|
491
491
|
# resp.interpretations[0].intent.slots["NonEmptyString"].values #=> Array
|
492
492
|
# resp.interpretations[0].intent.slots["NonEmptyString"].values[0] #=> Types::Slot
|
493
|
+
# resp.interpretations[0].intent.slots["NonEmptyString"].sub_slots #=> Types::Slots
|
493
494
|
# resp.interpretations[0].intent.state #=> String, one of "Failed", "Fulfilled", "InProgress", "ReadyForFulfillment", "Waiting", "FulfillmentInProgress"
|
494
495
|
# resp.interpretations[0].intent.confirmation_state #=> String, one of "Confirmed", "Denied", "None"
|
495
496
|
# resp.session_state.dialog_action.type #=> String, one of "Close", "ConfirmIntent", "Delegate", "ElicitIntent", "ElicitSlot", "None"
|
496
497
|
# resp.session_state.dialog_action.slot_to_elicit #=> String
|
497
498
|
# resp.session_state.dialog_action.slot_elicitation_style #=> String, one of "Default", "SpellByLetter", "SpellByWord"
|
499
|
+
# resp.session_state.dialog_action.sub_slot_to_elicit.name #=> String
|
500
|
+
# resp.session_state.dialog_action.sub_slot_to_elicit.sub_slot_to_elicit #=> Types::ElicitSubSlot
|
498
501
|
# resp.session_state.intent.name #=> String
|
499
502
|
# resp.session_state.intent.slots #=> Hash
|
500
503
|
# resp.session_state.intent.slots["NonEmptyString"].value.original_value #=> String
|
501
504
|
# resp.session_state.intent.slots["NonEmptyString"].value.interpreted_value #=> String
|
502
505
|
# resp.session_state.intent.slots["NonEmptyString"].value.resolved_values #=> Array
|
503
506
|
# resp.session_state.intent.slots["NonEmptyString"].value.resolved_values[0] #=> String
|
504
|
-
# resp.session_state.intent.slots["NonEmptyString"].shape #=> String, one of "Scalar", "List"
|
507
|
+
# resp.session_state.intent.slots["NonEmptyString"].shape #=> String, one of "Scalar", "List", "Composite"
|
505
508
|
# resp.session_state.intent.slots["NonEmptyString"].values #=> Array
|
506
509
|
# resp.session_state.intent.slots["NonEmptyString"].values[0] #=> Types::Slot
|
510
|
+
# resp.session_state.intent.slots["NonEmptyString"].sub_slots #=> Types::Slots
|
507
511
|
# resp.session_state.intent.state #=> String, one of "Failed", "Fulfilled", "InProgress", "ReadyForFulfillment", "Waiting", "FulfillmentInProgress"
|
508
512
|
# resp.session_state.intent.confirmation_state #=> String, one of "Confirmed", "Denied", "None"
|
509
513
|
# resp.session_state.active_contexts #=> Array
|
@@ -519,6 +523,7 @@ module Aws::LexRuntimeV2
|
|
519
523
|
# resp.session_state.runtime_hints.slot_hints["Name"] #=> Hash
|
520
524
|
# resp.session_state.runtime_hints.slot_hints["Name"]["Name"].runtime_hint_values #=> Array
|
521
525
|
# resp.session_state.runtime_hints.slot_hints["Name"]["Name"].runtime_hint_values[0].phrase #=> String
|
526
|
+
# resp.session_state.runtime_hints.slot_hints["Name"]["Name"].sub_slot_hints #=> Types::SlotHintsSlotMap
|
522
527
|
#
|
523
528
|
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex.v2-2020-08-07/GetSession AWS API Documentation
|
524
529
|
#
|
@@ -609,6 +614,12 @@ module Aws::LexRuntimeV2
|
|
609
614
|
# type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
|
610
615
|
# slot_to_elicit: "NonEmptyString",
|
611
616
|
# slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
|
617
|
+
# sub_slot_to_elicit: {
|
618
|
+
# name: "NonEmptyString", # required
|
619
|
+
# sub_slot_to_elicit: {
|
620
|
+
# # recursive ElicitSubSlot
|
621
|
+
# },
|
622
|
+
# },
|
612
623
|
# },
|
613
624
|
# intent: {
|
614
625
|
# name: "NonEmptyString", # required
|
@@ -619,12 +630,15 @@ module Aws::LexRuntimeV2
|
|
619
630
|
# interpreted_value: "NonEmptyString", # required
|
620
631
|
# resolved_values: ["NonEmptyString"],
|
621
632
|
# },
|
622
|
-
# shape: "Scalar", # accepts Scalar, List
|
633
|
+
# shape: "Scalar", # accepts Scalar, List, Composite
|
623
634
|
# values: [
|
624
635
|
# {
|
625
636
|
# # recursive Slot
|
626
637
|
# },
|
627
638
|
# ],
|
639
|
+
# sub_slots: {
|
640
|
+
# # recursive Slots
|
641
|
+
# },
|
628
642
|
# },
|
629
643
|
# },
|
630
644
|
# state: "Failed", # accepts Failed, Fulfilled, InProgress, ReadyForFulfillment, Waiting, FulfillmentInProgress
|
@@ -650,11 +664,14 @@ module Aws::LexRuntimeV2
|
|
650
664
|
# slot_hints: {
|
651
665
|
# "Name" => {
|
652
666
|
# "Name" => {
|
653
|
-
# runtime_hint_values: [
|
667
|
+
# runtime_hint_values: [
|
654
668
|
# {
|
655
669
|
# phrase: "RuntimeHintPhrase", # required
|
656
670
|
# },
|
657
671
|
# ],
|
672
|
+
# sub_slot_hints: {
|
673
|
+
# # recursive SlotHintsSlotMap
|
674
|
+
# },
|
658
675
|
# },
|
659
676
|
# },
|
660
677
|
# },
|
@@ -762,6 +779,12 @@ module Aws::LexRuntimeV2
|
|
762
779
|
# type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
|
763
780
|
# slot_to_elicit: "NonEmptyString",
|
764
781
|
# slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
|
782
|
+
# sub_slot_to_elicit: {
|
783
|
+
# name: "NonEmptyString", # required
|
784
|
+
# sub_slot_to_elicit: {
|
785
|
+
# # recursive ElicitSubSlot
|
786
|
+
# },
|
787
|
+
# },
|
765
788
|
# },
|
766
789
|
# intent: {
|
767
790
|
# name: "NonEmptyString", # required
|
@@ -772,12 +795,15 @@ module Aws::LexRuntimeV2
|
|
772
795
|
# interpreted_value: "NonEmptyString", # required
|
773
796
|
# resolved_values: ["NonEmptyString"],
|
774
797
|
# },
|
775
|
-
# shape: "Scalar", # accepts Scalar, List
|
798
|
+
# shape: "Scalar", # accepts Scalar, List, Composite
|
776
799
|
# values: [
|
777
800
|
# {
|
778
801
|
# # recursive Slot
|
779
802
|
# },
|
780
803
|
# ],
|
804
|
+
# sub_slots: {
|
805
|
+
# # recursive Slots
|
806
|
+
# },
|
781
807
|
# },
|
782
808
|
# },
|
783
809
|
# state: "Failed", # accepts Failed, Fulfilled, InProgress, ReadyForFulfillment, Waiting, FulfillmentInProgress
|
@@ -803,11 +829,14 @@ module Aws::LexRuntimeV2
|
|
803
829
|
# slot_hints: {
|
804
830
|
# "Name" => {
|
805
831
|
# "Name" => {
|
806
|
-
# runtime_hint_values: [
|
832
|
+
# runtime_hint_values: [
|
807
833
|
# {
|
808
834
|
# phrase: "RuntimeHintPhrase", # required
|
809
835
|
# },
|
810
836
|
# ],
|
837
|
+
# sub_slot_hints: {
|
838
|
+
# # recursive SlotHintsSlotMap
|
839
|
+
# },
|
811
840
|
# },
|
812
841
|
# },
|
813
842
|
# },
|
@@ -832,15 +861,18 @@ module Aws::LexRuntimeV2
|
|
832
861
|
# resp.session_state.dialog_action.type #=> String, one of "Close", "ConfirmIntent", "Delegate", "ElicitIntent", "ElicitSlot", "None"
|
833
862
|
# resp.session_state.dialog_action.slot_to_elicit #=> String
|
834
863
|
# resp.session_state.dialog_action.slot_elicitation_style #=> String, one of "Default", "SpellByLetter", "SpellByWord"
|
864
|
+
# resp.session_state.dialog_action.sub_slot_to_elicit.name #=> String
|
865
|
+
# resp.session_state.dialog_action.sub_slot_to_elicit.sub_slot_to_elicit #=> Types::ElicitSubSlot
|
835
866
|
# resp.session_state.intent.name #=> String
|
836
867
|
# resp.session_state.intent.slots #=> Hash
|
837
868
|
# resp.session_state.intent.slots["NonEmptyString"].value.original_value #=> String
|
838
869
|
# resp.session_state.intent.slots["NonEmptyString"].value.interpreted_value #=> String
|
839
870
|
# resp.session_state.intent.slots["NonEmptyString"].value.resolved_values #=> Array
|
840
871
|
# resp.session_state.intent.slots["NonEmptyString"].value.resolved_values[0] #=> String
|
841
|
-
# resp.session_state.intent.slots["NonEmptyString"].shape #=> String, one of "Scalar", "List"
|
872
|
+
# resp.session_state.intent.slots["NonEmptyString"].shape #=> String, one of "Scalar", "List", "Composite"
|
842
873
|
# resp.session_state.intent.slots["NonEmptyString"].values #=> Array
|
843
874
|
# resp.session_state.intent.slots["NonEmptyString"].values[0] #=> Types::Slot
|
875
|
+
# resp.session_state.intent.slots["NonEmptyString"].sub_slots #=> Types::Slots
|
844
876
|
# resp.session_state.intent.state #=> String, one of "Failed", "Fulfilled", "InProgress", "ReadyForFulfillment", "Waiting", "FulfillmentInProgress"
|
845
877
|
# resp.session_state.intent.confirmation_state #=> String, one of "Confirmed", "Denied", "None"
|
846
878
|
# resp.session_state.active_contexts #=> Array
|
@@ -856,6 +888,7 @@ module Aws::LexRuntimeV2
|
|
856
888
|
# resp.session_state.runtime_hints.slot_hints["Name"] #=> Hash
|
857
889
|
# resp.session_state.runtime_hints.slot_hints["Name"]["Name"].runtime_hint_values #=> Array
|
858
890
|
# resp.session_state.runtime_hints.slot_hints["Name"]["Name"].runtime_hint_values[0].phrase #=> String
|
891
|
+
# resp.session_state.runtime_hints.slot_hints["Name"]["Name"].sub_slot_hints #=> Types::SlotHintsSlotMap
|
859
892
|
# resp.interpretations #=> Array
|
860
893
|
# resp.interpretations[0].nlu_confidence.score #=> Float
|
861
894
|
# resp.interpretations[0].sentiment_response.sentiment #=> String, one of "MIXED", "NEGATIVE", "NEUTRAL", "POSITIVE"
|
@@ -869,9 +902,10 @@ module Aws::LexRuntimeV2
|
|
869
902
|
# resp.interpretations[0].intent.slots["NonEmptyString"].value.interpreted_value #=> String
|
870
903
|
# resp.interpretations[0].intent.slots["NonEmptyString"].value.resolved_values #=> Array
|
871
904
|
# resp.interpretations[0].intent.slots["NonEmptyString"].value.resolved_values[0] #=> String
|
872
|
-
# resp.interpretations[0].intent.slots["NonEmptyString"].shape #=> String, one of "Scalar", "List"
|
905
|
+
# resp.interpretations[0].intent.slots["NonEmptyString"].shape #=> String, one of "Scalar", "List", "Composite"
|
873
906
|
# resp.interpretations[0].intent.slots["NonEmptyString"].values #=> Array
|
874
907
|
# resp.interpretations[0].intent.slots["NonEmptyString"].values[0] #=> Types::Slot
|
908
|
+
# resp.interpretations[0].intent.slots["NonEmptyString"].sub_slots #=> Types::Slots
|
875
909
|
# resp.interpretations[0].intent.state #=> String, one of "Failed", "Fulfilled", "InProgress", "ReadyForFulfillment", "Waiting", "FulfillmentInProgress"
|
876
910
|
# resp.interpretations[0].intent.confirmation_state #=> String, one of "Confirmed", "Denied", "None"
|
877
911
|
# resp.request_attributes #=> Hash
|
@@ -1091,7 +1125,7 @@ module Aws::LexRuntimeV2
|
|
1091
1125
|
params: params,
|
1092
1126
|
config: config)
|
1093
1127
|
context[:gem_name] = 'aws-sdk-lexruntimev2'
|
1094
|
-
context[:gem_version] = '1.
|
1128
|
+
context[:gem_version] = '1.16.0'
|
1095
1129
|
Seahorse::Client::Request.new(handlers, context)
|
1096
1130
|
end
|
1097
1131
|
|
@@ -49,6 +49,7 @@ module Aws::LexRuntimeV2
|
|
49
49
|
DialogActionType = Shapes::StringShape.new(name: 'DialogActionType')
|
50
50
|
DisconnectionEvent = Shapes::StructureShape.new(name: 'DisconnectionEvent')
|
51
51
|
Double = Shapes::FloatShape.new(name: 'Double')
|
52
|
+
ElicitSubSlot = Shapes::StructureShape.new(name: 'ElicitSubSlot')
|
52
53
|
EpochMillis = Shapes::IntegerShape.new(name: 'EpochMillis')
|
53
54
|
EventId = Shapes::StringShape.new(name: 'EventId')
|
54
55
|
GetSessionRequest = Shapes::StructureShape.new(name: 'GetSessionRequest')
|
@@ -187,12 +188,17 @@ module Aws::LexRuntimeV2
|
|
187
188
|
DialogAction.add_member(:type, Shapes::ShapeRef.new(shape: DialogActionType, required: true, location_name: "type"))
|
188
189
|
DialogAction.add_member(:slot_to_elicit, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "slotToElicit"))
|
189
190
|
DialogAction.add_member(:slot_elicitation_style, Shapes::ShapeRef.new(shape: StyleType, location_name: "slotElicitationStyle"))
|
191
|
+
DialogAction.add_member(:sub_slot_to_elicit, Shapes::ShapeRef.new(shape: ElicitSubSlot, location_name: "subSlotToElicit"))
|
190
192
|
DialogAction.struct_class = Types::DialogAction
|
191
193
|
|
192
194
|
DisconnectionEvent.add_member(:event_id, Shapes::ShapeRef.new(shape: EventId, location_name: "eventId"))
|
193
195
|
DisconnectionEvent.add_member(:client_timestamp_millis, Shapes::ShapeRef.new(shape: EpochMillis, location_name: "clientTimestampMillis"))
|
194
196
|
DisconnectionEvent.struct_class = Types::DisconnectionEvent
|
195
197
|
|
198
|
+
ElicitSubSlot.add_member(:name, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location_name: "name"))
|
199
|
+
ElicitSubSlot.add_member(:sub_slot_to_elicit, Shapes::ShapeRef.new(shape: ElicitSubSlot, location_name: "subSlotToElicit"))
|
200
|
+
ElicitSubSlot.struct_class = Types::ElicitSubSlot
|
201
|
+
|
196
202
|
GetSessionRequest.add_member(:bot_id, Shapes::ShapeRef.new(shape: BotIdentifier, required: true, location: "uri", location_name: "botId"))
|
197
203
|
GetSessionRequest.add_member(:bot_alias_id, Shapes::ShapeRef.new(shape: BotAliasIdentifier, required: true, location: "uri", location_name: "botAliasId"))
|
198
204
|
GetSessionRequest.add_member(:locale_id, Shapes::ShapeRef.new(shape: LocaleId, required: true, location: "uri", location_name: "localeId"))
|
@@ -319,7 +325,8 @@ module Aws::LexRuntimeV2
|
|
319
325
|
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
320
326
|
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
321
327
|
|
322
|
-
RuntimeHintDetails.add_member(:runtime_hint_values, Shapes::ShapeRef.new(shape: RuntimeHintValuesList,
|
328
|
+
RuntimeHintDetails.add_member(:runtime_hint_values, Shapes::ShapeRef.new(shape: RuntimeHintValuesList, location_name: "runtimeHintValues"))
|
329
|
+
RuntimeHintDetails.add_member(:sub_slot_hints, Shapes::ShapeRef.new(shape: SlotHintsSlotMap, location_name: "subSlotHints"))
|
323
330
|
RuntimeHintDetails.struct_class = Types::RuntimeHintDetails
|
324
331
|
|
325
332
|
RuntimeHintValue.add_member(:phrase, Shapes::ShapeRef.new(shape: RuntimeHintPhrase, required: true, location_name: "phrase"))
|
@@ -351,6 +358,7 @@ module Aws::LexRuntimeV2
|
|
351
358
|
Slot.add_member(:value, Shapes::ShapeRef.new(shape: Value, location_name: "value"))
|
352
359
|
Slot.add_member(:shape, Shapes::ShapeRef.new(shape: Shape, location_name: "shape"))
|
353
360
|
Slot.add_member(:values, Shapes::ShapeRef.new(shape: Values, location_name: "values"))
|
361
|
+
Slot.add_member(:sub_slots, Shapes::ShapeRef.new(shape: Slots, location_name: "subSlots"))
|
354
362
|
Slot.struct_class = Types::Slot
|
355
363
|
|
356
364
|
SlotHintsIntentMap.key = Shapes::ShapeRef.new(shape: Name)
|
@@ -57,6 +57,14 @@ module Aws::LexRuntimeV2
|
|
57
57
|
# @option params [Array<Types::Message>] :welcome_messages
|
58
58
|
# A list of messages to send to the user.
|
59
59
|
#
|
60
|
+
# If you set the `welcomeMessage` field, you must also set the [
|
61
|
+
# `DialogAction` ][1] structure's [ `type` ][2] field.
|
62
|
+
#
|
63
|
+
#
|
64
|
+
#
|
65
|
+
# [1]: https://docs.aws.amazon.com/lexv2/latest/dg/API_runtime_DialogAction.html
|
66
|
+
# [2]: https://docs.aws.amazon.com/lexv2/latest/dg/API_runtime_DialogAction.html#lexv2-Type-runtime_DialogAction-type
|
67
|
+
#
|
60
68
|
# @option params [Boolean] :disable_playback
|
61
69
|
# Determines whether Amazon Lex V2 should send audio responses to the
|
62
70
|
# client application.
|
@@ -259,6 +259,12 @@ module Aws::LexRuntimeV2
|
|
259
259
|
# type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
|
260
260
|
# slot_to_elicit: "NonEmptyString",
|
261
261
|
# slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
|
262
|
+
# sub_slot_to_elicit: {
|
263
|
+
# name: "NonEmptyString", # required
|
264
|
+
# sub_slot_to_elicit: {
|
265
|
+
# # recursive ElicitSubSlot
|
266
|
+
# },
|
267
|
+
# },
|
262
268
|
# },
|
263
269
|
# intent: {
|
264
270
|
# name: "NonEmptyString", # required
|
@@ -269,12 +275,15 @@ module Aws::LexRuntimeV2
|
|
269
275
|
# interpreted_value: "NonEmptyString", # required
|
270
276
|
# resolved_values: ["NonEmptyString"],
|
271
277
|
# },
|
272
|
-
# shape: "Scalar", # accepts Scalar, List
|
278
|
+
# shape: "Scalar", # accepts Scalar, List, Composite
|
273
279
|
# values: [
|
274
280
|
# {
|
275
281
|
# # recursive Slot
|
276
282
|
# },
|
277
283
|
# ],
|
284
|
+
# sub_slots: {
|
285
|
+
# # recursive Slots
|
286
|
+
# },
|
278
287
|
# },
|
279
288
|
# },
|
280
289
|
# state: "Failed", # accepts Failed, Fulfilled, InProgress, ReadyForFulfillment, Waiting, FulfillmentInProgress
|
@@ -300,11 +309,14 @@ module Aws::LexRuntimeV2
|
|
300
309
|
# slot_hints: {
|
301
310
|
# "Name" => {
|
302
311
|
# "Name" => {
|
303
|
-
# runtime_hint_values: [
|
312
|
+
# runtime_hint_values: [
|
304
313
|
# {
|
305
314
|
# phrase: "RuntimeHintPhrase", # required
|
306
315
|
# },
|
307
316
|
# ],
|
317
|
+
# sub_slot_hints: {
|
318
|
+
# # recursive SlotHintsSlotMap
|
319
|
+
# },
|
308
320
|
# },
|
309
321
|
# },
|
310
322
|
# },
|
@@ -376,6 +388,14 @@ module Aws::LexRuntimeV2
|
|
376
388
|
#
|
377
389
|
# @!attribute [rw] welcome_messages
|
378
390
|
# A list of messages to send to the user.
|
391
|
+
#
|
392
|
+
# If you set the `welcomeMessage` field, you must also set the [
|
393
|
+
# `DialogAction` ][1] structure's [ `type` ][2] field.
|
394
|
+
#
|
395
|
+
#
|
396
|
+
#
|
397
|
+
# [1]: https://docs.aws.amazon.com/lexv2/latest/dg/API_runtime_DialogAction.html
|
398
|
+
# [2]: https://docs.aws.amazon.com/lexv2/latest/dg/API_runtime_DialogAction.html#lexv2-Type-runtime_DialogAction-type
|
379
399
|
# @return [Array<Types::Message>]
|
380
400
|
#
|
381
401
|
# @!attribute [rw] disable_playback
|
@@ -553,6 +573,12 @@ module Aws::LexRuntimeV2
|
|
553
573
|
# type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
|
554
574
|
# slot_to_elicit: "NonEmptyString",
|
555
575
|
# slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
|
576
|
+
# sub_slot_to_elicit: {
|
577
|
+
# name: "NonEmptyString", # required
|
578
|
+
# sub_slot_to_elicit: {
|
579
|
+
# # recursive ElicitSubSlot
|
580
|
+
# },
|
581
|
+
# },
|
556
582
|
# }
|
557
583
|
#
|
558
584
|
# @!attribute [rw] type
|
@@ -569,6 +595,9 @@ module Aws::LexRuntimeV2
|
|
569
595
|
#
|
570
596
|
# * `Delegate` - The next action is determined by Amazon Lex V2.
|
571
597
|
#
|
598
|
+
# * `ElicitIntent` - The next action is to elicit an intent from the
|
599
|
+
# user.
|
600
|
+
#
|
572
601
|
# * `ElicitSlot` - The next action is to elicit a slot value from the
|
573
602
|
# user.
|
574
603
|
# @return [String]
|
@@ -594,12 +623,18 @@ module Aws::LexRuntimeV2
|
|
594
623
|
# [1]: https://docs.aws.amazon.com/lexv2/latest/dg/using-spelling.html
|
595
624
|
# @return [String]
|
596
625
|
#
|
626
|
+
# @!attribute [rw] sub_slot_to_elicit
|
627
|
+
# The name of the constituent sub slot of the composite slot specified
|
628
|
+
# in slotToElicit that should be elicited from the user.
|
629
|
+
# @return [Types::ElicitSubSlot]
|
630
|
+
#
|
597
631
|
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex.v2-2020-08-07/DialogAction AWS API Documentation
|
598
632
|
#
|
599
633
|
class DialogAction < Struct.new(
|
600
634
|
:type,
|
601
635
|
:slot_to_elicit,
|
602
|
-
:slot_elicitation_style
|
636
|
+
:slot_elicitation_style,
|
637
|
+
:sub_slot_to_elicit)
|
603
638
|
SENSITIVE = []
|
604
639
|
include Aws::Structure
|
605
640
|
end
|
@@ -636,6 +671,39 @@ module Aws::LexRuntimeV2
|
|
636
671
|
include Aws::Structure
|
637
672
|
end
|
638
673
|
|
674
|
+
# The specific constituent sub slot of the composite slot to elicit in
|
675
|
+
# dialog action.
|
676
|
+
#
|
677
|
+
# @note When making an API call, you may pass ElicitSubSlot
|
678
|
+
# data as a hash:
|
679
|
+
#
|
680
|
+
# {
|
681
|
+
# name: "NonEmptyString", # required
|
682
|
+
# sub_slot_to_elicit: {
|
683
|
+
# name: "NonEmptyString", # required
|
684
|
+
# sub_slot_to_elicit: {
|
685
|
+
# # recursive ElicitSubSlot
|
686
|
+
# },
|
687
|
+
# },
|
688
|
+
# }
|
689
|
+
#
|
690
|
+
# @!attribute [rw] name
|
691
|
+
# The name of the slot that should be elicited from the user.
|
692
|
+
# @return [String]
|
693
|
+
#
|
694
|
+
# @!attribute [rw] sub_slot_to_elicit
|
695
|
+
# The field is not supported.
|
696
|
+
# @return [Types::ElicitSubSlot]
|
697
|
+
#
|
698
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex.v2-2020-08-07/ElicitSubSlot AWS API Documentation
|
699
|
+
#
|
700
|
+
class ElicitSubSlot < Struct.new(
|
701
|
+
:name,
|
702
|
+
:sub_slot_to_elicit)
|
703
|
+
SENSITIVE = []
|
704
|
+
include Aws::Structure
|
705
|
+
end
|
706
|
+
|
639
707
|
# @note When making an API call, you may pass GetSessionRequest
|
640
708
|
# data as a hash:
|
641
709
|
#
|
@@ -800,12 +868,15 @@ module Aws::LexRuntimeV2
|
|
800
868
|
# interpreted_value: "NonEmptyString", # required
|
801
869
|
# resolved_values: ["NonEmptyString"],
|
802
870
|
# },
|
803
|
-
# shape: "Scalar", # accepts Scalar, List
|
871
|
+
# shape: "Scalar", # accepts Scalar, List, Composite
|
804
872
|
# values: [
|
805
873
|
# {
|
806
874
|
# # recursive Slot
|
807
875
|
# },
|
808
876
|
# ],
|
877
|
+
# sub_slots: {
|
878
|
+
# # recursive Slots
|
879
|
+
# },
|
809
880
|
# },
|
810
881
|
# },
|
811
882
|
# state: "Failed", # accepts Failed, Fulfilled, InProgress, ReadyForFulfillment, Waiting, FulfillmentInProgress
|
@@ -1081,6 +1152,12 @@ module Aws::LexRuntimeV2
|
|
1081
1152
|
# type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
|
1082
1153
|
# slot_to_elicit: "NonEmptyString",
|
1083
1154
|
# slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
|
1155
|
+
# sub_slot_to_elicit: {
|
1156
|
+
# name: "NonEmptyString", # required
|
1157
|
+
# sub_slot_to_elicit: {
|
1158
|
+
# # recursive ElicitSubSlot
|
1159
|
+
# },
|
1160
|
+
# },
|
1084
1161
|
# },
|
1085
1162
|
# intent: {
|
1086
1163
|
# name: "NonEmptyString", # required
|
@@ -1091,12 +1168,15 @@ module Aws::LexRuntimeV2
|
|
1091
1168
|
# interpreted_value: "NonEmptyString", # required
|
1092
1169
|
# resolved_values: ["NonEmptyString"],
|
1093
1170
|
# },
|
1094
|
-
# shape: "Scalar", # accepts Scalar, List
|
1171
|
+
# shape: "Scalar", # accepts Scalar, List, Composite
|
1095
1172
|
# values: [
|
1096
1173
|
# {
|
1097
1174
|
# # recursive Slot
|
1098
1175
|
# },
|
1099
1176
|
# ],
|
1177
|
+
# sub_slots: {
|
1178
|
+
# # recursive Slots
|
1179
|
+
# },
|
1100
1180
|
# },
|
1101
1181
|
# },
|
1102
1182
|
# state: "Failed", # accepts Failed, Fulfilled, InProgress, ReadyForFulfillment, Waiting, FulfillmentInProgress
|
@@ -1122,11 +1202,14 @@ module Aws::LexRuntimeV2
|
|
1122
1202
|
# slot_hints: {
|
1123
1203
|
# "Name" => {
|
1124
1204
|
# "Name" => {
|
1125
|
-
# runtime_hint_values: [
|
1205
|
+
# runtime_hint_values: [
|
1126
1206
|
# {
|
1127
1207
|
# phrase: "RuntimeHintPhrase", # required
|
1128
1208
|
# },
|
1129
1209
|
# ],
|
1210
|
+
# sub_slot_hints: {
|
1211
|
+
# # recursive SlotHintsSlotMap
|
1212
|
+
# },
|
1130
1213
|
# },
|
1131
1214
|
# },
|
1132
1215
|
# },
|
@@ -1260,6 +1343,12 @@ module Aws::LexRuntimeV2
|
|
1260
1343
|
# type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
|
1261
1344
|
# slot_to_elicit: "NonEmptyString",
|
1262
1345
|
# slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
|
1346
|
+
# sub_slot_to_elicit: {
|
1347
|
+
# name: "NonEmptyString", # required
|
1348
|
+
# sub_slot_to_elicit: {
|
1349
|
+
# # recursive ElicitSubSlot
|
1350
|
+
# },
|
1351
|
+
# },
|
1263
1352
|
# },
|
1264
1353
|
# intent: {
|
1265
1354
|
# name: "NonEmptyString", # required
|
@@ -1270,12 +1359,15 @@ module Aws::LexRuntimeV2
|
|
1270
1359
|
# interpreted_value: "NonEmptyString", # required
|
1271
1360
|
# resolved_values: ["NonEmptyString"],
|
1272
1361
|
# },
|
1273
|
-
# shape: "Scalar", # accepts Scalar, List
|
1362
|
+
# shape: "Scalar", # accepts Scalar, List, Composite
|
1274
1363
|
# values: [
|
1275
1364
|
# {
|
1276
1365
|
# # recursive Slot
|
1277
1366
|
# },
|
1278
1367
|
# ],
|
1368
|
+
# sub_slots: {
|
1369
|
+
# # recursive Slots
|
1370
|
+
# },
|
1279
1371
|
# },
|
1280
1372
|
# },
|
1281
1373
|
# state: "Failed", # accepts Failed, Fulfilled, InProgress, ReadyForFulfillment, Waiting, FulfillmentInProgress
|
@@ -1301,11 +1393,14 @@ module Aws::LexRuntimeV2
|
|
1301
1393
|
# slot_hints: {
|
1302
1394
|
# "Name" => {
|
1303
1395
|
# "Name" => {
|
1304
|
-
# runtime_hint_values: [
|
1396
|
+
# runtime_hint_values: [
|
1305
1397
|
# {
|
1306
1398
|
# phrase: "RuntimeHintPhrase", # required
|
1307
1399
|
# },
|
1308
1400
|
# ],
|
1401
|
+
# sub_slot_hints: {
|
1402
|
+
# # recursive SlotHintsSlotMap
|
1403
|
+
# },
|
1309
1404
|
# },
|
1310
1405
|
# },
|
1311
1406
|
# },
|
@@ -1659,11 +1754,23 @@ module Aws::LexRuntimeV2
|
|
1659
1754
|
# data as a hash:
|
1660
1755
|
#
|
1661
1756
|
# {
|
1662
|
-
# runtime_hint_values: [
|
1757
|
+
# runtime_hint_values: [
|
1663
1758
|
# {
|
1664
1759
|
# phrase: "RuntimeHintPhrase", # required
|
1665
1760
|
# },
|
1666
1761
|
# ],
|
1762
|
+
# sub_slot_hints: {
|
1763
|
+
# "Name" => {
|
1764
|
+
# runtime_hint_values: [
|
1765
|
+
# {
|
1766
|
+
# phrase: "RuntimeHintPhrase", # required
|
1767
|
+
# },
|
1768
|
+
# ],
|
1769
|
+
# sub_slot_hints: {
|
1770
|
+
# # recursive SlotHintsSlotMap
|
1771
|
+
# },
|
1772
|
+
# },
|
1773
|
+
# },
|
1667
1774
|
# }
|
1668
1775
|
#
|
1669
1776
|
# @!attribute [rw] runtime_hint_values
|
@@ -1672,10 +1779,20 @@ module Aws::LexRuntimeV2
|
|
1672
1779
|
# values.
|
1673
1780
|
# @return [Array<Types::RuntimeHintValue>]
|
1674
1781
|
#
|
1782
|
+
# @!attribute [rw] sub_slot_hints
|
1783
|
+
# A map of constituent sub slot names inside a composite slot in the
|
1784
|
+
# intent and the phrases that should be added for each sub slot.
|
1785
|
+
# Inside each composite slot hints, this structure provides a
|
1786
|
+
# mechanism to add granular sub slot phrases. Only sub slot hints are
|
1787
|
+
# supported for composite slots. The intent name, composite slot name
|
1788
|
+
# and the constituent sub slot names must exist.
|
1789
|
+
# @return [Hash<String,Types::RuntimeHintDetails>]
|
1790
|
+
#
|
1675
1791
|
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex.v2-2020-08-07/RuntimeHintDetails AWS API Documentation
|
1676
1792
|
#
|
1677
1793
|
class RuntimeHintDetails < Struct.new(
|
1678
|
-
:runtime_hint_values
|
1794
|
+
:runtime_hint_values,
|
1795
|
+
:sub_slot_hints)
|
1679
1796
|
SENSITIVE = []
|
1680
1797
|
include Aws::Structure
|
1681
1798
|
end
|
@@ -1712,11 +1829,12 @@ module Aws::LexRuntimeV2
|
|
1712
1829
|
# Before you can use runtime hints with an existing bot, you must first
|
1713
1830
|
# rebuild the bot.
|
1714
1831
|
#
|
1715
|
-
# For more information, see [Using hints to improve
|
1832
|
+
# For more information, see [Using runtime hints to improve recognition
|
1833
|
+
# of slot values][1].
|
1716
1834
|
#
|
1717
1835
|
#
|
1718
1836
|
#
|
1719
|
-
# [1]: https://docs.aws.amazon.com/lexv2/latest/dg/using-hints.
|
1837
|
+
# [1]: https://docs.aws.amazon.com/lexv2/latest/dg/using-hints.html
|
1720
1838
|
#
|
1721
1839
|
# @note When making an API call, you may pass RuntimeHints
|
1722
1840
|
# data as a hash:
|
@@ -1725,11 +1843,14 @@ module Aws::LexRuntimeV2
|
|
1725
1843
|
# slot_hints: {
|
1726
1844
|
# "Name" => {
|
1727
1845
|
# "Name" => {
|
1728
|
-
# runtime_hint_values: [
|
1846
|
+
# runtime_hint_values: [
|
1729
1847
|
# {
|
1730
1848
|
# phrase: "RuntimeHintPhrase", # required
|
1731
1849
|
# },
|
1732
1850
|
# ],
|
1851
|
+
# sub_slot_hints: {
|
1852
|
+
# # recursive SlotHintsSlotMap
|
1853
|
+
# },
|
1733
1854
|
# },
|
1734
1855
|
# },
|
1735
1856
|
# },
|
@@ -1747,7 +1868,7 @@ module Aws::LexRuntimeV2
|
|
1747
1868
|
#
|
1748
1869
|
#
|
1749
1870
|
#
|
1750
|
-
# [1]: https://docs.aws.amazon.com/lexv2/latest/dg/using-hints.
|
1871
|
+
# [1]: https://docs.aws.amazon.com/lexv2/latest/dg/using-hints.html
|
1751
1872
|
# @return [Hash<String,Hash<String,Types::RuntimeHintDetails>>]
|
1752
1873
|
#
|
1753
1874
|
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex.v2-2020-08-07/RuntimeHints AWS API Documentation
|
@@ -1832,6 +1953,12 @@ module Aws::LexRuntimeV2
|
|
1832
1953
|
# type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
|
1833
1954
|
# slot_to_elicit: "NonEmptyString",
|
1834
1955
|
# slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
|
1956
|
+
# sub_slot_to_elicit: {
|
1957
|
+
# name: "NonEmptyString", # required
|
1958
|
+
# sub_slot_to_elicit: {
|
1959
|
+
# # recursive ElicitSubSlot
|
1960
|
+
# },
|
1961
|
+
# },
|
1835
1962
|
# },
|
1836
1963
|
# intent: {
|
1837
1964
|
# name: "NonEmptyString", # required
|
@@ -1842,12 +1969,15 @@ module Aws::LexRuntimeV2
|
|
1842
1969
|
# interpreted_value: "NonEmptyString", # required
|
1843
1970
|
# resolved_values: ["NonEmptyString"],
|
1844
1971
|
# },
|
1845
|
-
# shape: "Scalar", # accepts Scalar, List
|
1972
|
+
# shape: "Scalar", # accepts Scalar, List, Composite
|
1846
1973
|
# values: [
|
1847
1974
|
# {
|
1848
1975
|
# # recursive Slot
|
1849
1976
|
# },
|
1850
1977
|
# ],
|
1978
|
+
# sub_slots: {
|
1979
|
+
# # recursive Slots
|
1980
|
+
# },
|
1851
1981
|
# },
|
1852
1982
|
# },
|
1853
1983
|
# state: "Failed", # accepts Failed, Fulfilled, InProgress, ReadyForFulfillment, Waiting, FulfillmentInProgress
|
@@ -1873,11 +2003,14 @@ module Aws::LexRuntimeV2
|
|
1873
2003
|
# slot_hints: {
|
1874
2004
|
# "Name" => {
|
1875
2005
|
# "Name" => {
|
1876
|
-
# runtime_hint_values: [
|
2006
|
+
# runtime_hint_values: [
|
1877
2007
|
# {
|
1878
2008
|
# phrase: "RuntimeHintPhrase", # required
|
1879
2009
|
# },
|
1880
2010
|
# ],
|
2011
|
+
# sub_slot_hints: {
|
2012
|
+
# # recursive SlotHintsSlotMap
|
2013
|
+
# },
|
1881
2014
|
# },
|
1882
2015
|
# },
|
1883
2016
|
# },
|
@@ -1940,7 +2073,7 @@ module Aws::LexRuntimeV2
|
|
1940
2073
|
# interpreted_value: "NonEmptyString", # required
|
1941
2074
|
# resolved_values: ["NonEmptyString"],
|
1942
2075
|
# },
|
1943
|
-
# shape: "Scalar", # accepts Scalar, List
|
2076
|
+
# shape: "Scalar", # accepts Scalar, List, Composite
|
1944
2077
|
# values: [
|
1945
2078
|
# {
|
1946
2079
|
# value: {
|
@@ -1948,12 +2081,35 @@ module Aws::LexRuntimeV2
|
|
1948
2081
|
# interpreted_value: "NonEmptyString", # required
|
1949
2082
|
# resolved_values: ["NonEmptyString"],
|
1950
2083
|
# },
|
1951
|
-
# shape: "Scalar", # accepts Scalar, List
|
2084
|
+
# shape: "Scalar", # accepts Scalar, List, Composite
|
1952
2085
|
# values: {
|
1953
2086
|
# # recursive Values
|
1954
2087
|
# },
|
2088
|
+
# sub_slots: {
|
2089
|
+
# "NonEmptyString" => {
|
2090
|
+
# # recursive Slot
|
2091
|
+
# },
|
2092
|
+
# },
|
1955
2093
|
# },
|
1956
2094
|
# ],
|
2095
|
+
# sub_slots: {
|
2096
|
+
# "NonEmptyString" => {
|
2097
|
+
# value: {
|
2098
|
+
# original_value: "NonEmptyString",
|
2099
|
+
# interpreted_value: "NonEmptyString", # required
|
2100
|
+
# resolved_values: ["NonEmptyString"],
|
2101
|
+
# },
|
2102
|
+
# shape: "Scalar", # accepts Scalar, List, Composite
|
2103
|
+
# values: [
|
2104
|
+
# {
|
2105
|
+
# # recursive Slot
|
2106
|
+
# },
|
2107
|
+
# ],
|
2108
|
+
# sub_slots: {
|
2109
|
+
# # recursive Slots
|
2110
|
+
# },
|
2111
|
+
# },
|
2112
|
+
# },
|
1957
2113
|
# }
|
1958
2114
|
#
|
1959
2115
|
# @!attribute [rw] value
|
@@ -1972,12 +2128,17 @@ module Aws::LexRuntimeV2
|
|
1972
2128
|
# might be "pepperoni" and "pineapple."
|
1973
2129
|
# @return [Array<Types::Slot>]
|
1974
2130
|
#
|
2131
|
+
# @!attribute [rw] sub_slots
|
2132
|
+
# The constituent sub slots of a composite slot.
|
2133
|
+
# @return [Hash<String,Types::Slot>]
|
2134
|
+
#
|
1975
2135
|
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex.v2-2020-08-07/Slot AWS API Documentation
|
1976
2136
|
#
|
1977
2137
|
class Slot < Struct.new(
|
1978
2138
|
:value,
|
1979
2139
|
:shape,
|
1980
|
-
:values
|
2140
|
+
:values,
|
2141
|
+
:sub_slots)
|
1981
2142
|
SENSITIVE = []
|
1982
2143
|
include Aws::Structure
|
1983
2144
|
end
|
@@ -2214,6 +2375,12 @@ module Aws::LexRuntimeV2
|
|
2214
2375
|
# type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
|
2215
2376
|
# slot_to_elicit: "NonEmptyString",
|
2216
2377
|
# slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
|
2378
|
+
# sub_slot_to_elicit: {
|
2379
|
+
# name: "NonEmptyString", # required
|
2380
|
+
# sub_slot_to_elicit: {
|
2381
|
+
# # recursive ElicitSubSlot
|
2382
|
+
# },
|
2383
|
+
# },
|
2217
2384
|
# },
|
2218
2385
|
# intent: {
|
2219
2386
|
# name: "NonEmptyString", # required
|
@@ -2224,12 +2391,15 @@ module Aws::LexRuntimeV2
|
|
2224
2391
|
# interpreted_value: "NonEmptyString", # required
|
2225
2392
|
# resolved_values: ["NonEmptyString"],
|
2226
2393
|
# },
|
2227
|
-
# shape: "Scalar", # accepts Scalar, List
|
2394
|
+
# shape: "Scalar", # accepts Scalar, List, Composite
|
2228
2395
|
# values: [
|
2229
2396
|
# {
|
2230
2397
|
# # recursive Slot
|
2231
2398
|
# },
|
2232
2399
|
# ],
|
2400
|
+
# sub_slots: {
|
2401
|
+
# # recursive Slots
|
2402
|
+
# },
|
2233
2403
|
# },
|
2234
2404
|
# },
|
2235
2405
|
# state: "Failed", # accepts Failed, Fulfilled, InProgress, ReadyForFulfillment, Waiting, FulfillmentInProgress
|
@@ -2255,11 +2425,14 @@ module Aws::LexRuntimeV2
|
|
2255
2425
|
# slot_hints: {
|
2256
2426
|
# "Name" => {
|
2257
2427
|
# "Name" => {
|
2258
|
-
# runtime_hint_values: [
|
2428
|
+
# runtime_hint_values: [
|
2259
2429
|
# {
|
2260
2430
|
# phrase: "RuntimeHintPhrase", # required
|
2261
2431
|
# },
|
2262
2432
|
# ],
|
2433
|
+
# sub_slot_hints: {
|
2434
|
+
# # recursive SlotHintsSlotMap
|
2435
|
+
# },
|
2263
2436
|
# },
|
2264
2437
|
# },
|
2265
2438
|
# },
|
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.16.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: 2022-
|
11
|
+
date: 2022-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|