aws-sdk-lexruntimev2 1.12.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-lexruntimev2/async_client.rb +5 -1
- data/lib/aws-sdk-lexruntimev2/client.rb +35 -1
- data/lib/aws-sdk-lexruntimev2/client_api.rb +26 -0
- data/lib/aws-sdk-lexruntimev2/types.rb +180 -1
- 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: 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,11 @@
|
|
|
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
|
+
|
|
4
9
|
1.12.0 (2021-12-21)
|
|
5
10
|
------------------
|
|
6
11
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.13.0
|
|
@@ -543,6 +543,10 @@ module Aws::LexRuntimeV2
|
|
|
543
543
|
# event.session_state.session_attributes #=> Hash
|
|
544
544
|
# event.session_state.session_attributes["NonEmptyString"] #=> String
|
|
545
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
|
|
546
550
|
# event.request_attributes #=> Hash
|
|
547
551
|
# event.request_attributes["NonEmptyString"] #=> String
|
|
548
552
|
# event.session_id #=> String
|
|
@@ -635,7 +639,7 @@ module Aws::LexRuntimeV2
|
|
|
635
639
|
http_response: Seahorse::Client::Http::AsyncResponse.new,
|
|
636
640
|
config: config)
|
|
637
641
|
context[:gem_name] = 'aws-sdk-lexruntimev2'
|
|
638
|
-
context[:gem_version] = '1.
|
|
642
|
+
context[:gem_version] = '1.13.0'
|
|
639
643
|
Seahorse::Client::Request.new(handlers, context)
|
|
640
644
|
end
|
|
641
645
|
|
|
@@ -511,6 +511,10 @@ module Aws::LexRuntimeV2
|
|
|
511
511
|
# resp.session_state.session_attributes #=> Hash
|
|
512
512
|
# resp.session_state.session_attributes["NonEmptyString"] #=> String
|
|
513
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
|
|
514
518
|
#
|
|
515
519
|
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex.v2-2020-08-07/GetSession AWS API Documentation
|
|
516
520
|
#
|
|
@@ -638,6 +642,19 @@ module Aws::LexRuntimeV2
|
|
|
638
642
|
# "NonEmptyString" => "String",
|
|
639
643
|
# },
|
|
640
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
|
+
# },
|
|
641
658
|
# },
|
|
642
659
|
# request_attributes: {
|
|
643
660
|
# "NonEmptyString" => "String",
|
|
@@ -778,6 +795,19 @@ module Aws::LexRuntimeV2
|
|
|
778
795
|
# "NonEmptyString" => "String",
|
|
779
796
|
# },
|
|
780
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
|
+
# },
|
|
781
811
|
# },
|
|
782
812
|
# request_attributes: {
|
|
783
813
|
# "NonEmptyString" => "String",
|
|
@@ -818,6 +848,10 @@ module Aws::LexRuntimeV2
|
|
|
818
848
|
# resp.session_state.session_attributes #=> Hash
|
|
819
849
|
# resp.session_state.session_attributes["NonEmptyString"] #=> String
|
|
820
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
|
|
821
855
|
# resp.interpretations #=> Array
|
|
822
856
|
# resp.interpretations[0].nlu_confidence.score #=> Float
|
|
823
857
|
# resp.interpretations[0].sentiment_response.sentiment #=> String, one of "MIXED", "NEGATIVE", "NEUTRAL", "POSITIVE"
|
|
@@ -1053,7 +1087,7 @@ module Aws::LexRuntimeV2
|
|
|
1053
1087
|
params: params,
|
|
1054
1088
|
config: config)
|
|
1055
1089
|
context[:gem_name] = 'aws-sdk-lexruntimev2'
|
|
1056
|
-
context[:gem_version] = '1.
|
|
1090
|
+
context[:gem_version] = '1.13.0'
|
|
1057
1091
|
Seahorse::Client::Request.new(handlers, context)
|
|
1058
1092
|
end
|
|
1059
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')
|
|
@@ -311,6 +319,17 @@ module Aws::LexRuntimeV2
|
|
|
311
319
|
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
|
312
320
|
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
|
313
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
|
+
|
|
314
333
|
SentimentResponse.add_member(:sentiment, Shapes::ShapeRef.new(shape: SentimentType, location_name: "sentiment"))
|
|
315
334
|
SentimentResponse.add_member(:sentiment_score, Shapes::ShapeRef.new(shape: SentimentScore, location_name: "sentimentScore"))
|
|
316
335
|
SentimentResponse.struct_class = Types::SentimentResponse
|
|
@@ -326,6 +345,7 @@ module Aws::LexRuntimeV2
|
|
|
326
345
|
SessionState.add_member(:active_contexts, Shapes::ShapeRef.new(shape: ActiveContextsList, location_name: "activeContexts"))
|
|
327
346
|
SessionState.add_member(:session_attributes, Shapes::ShapeRef.new(shape: StringMap, location_name: "sessionAttributes"))
|
|
328
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"))
|
|
329
349
|
SessionState.struct_class = Types::SessionState
|
|
330
350
|
|
|
331
351
|
Slot.add_member(:value, Shapes::ShapeRef.new(shape: Value, location_name: "value"))
|
|
@@ -333,6 +353,12 @@ module Aws::LexRuntimeV2
|
|
|
333
353
|
Slot.add_member(:values, Shapes::ShapeRef.new(shape: Values, location_name: "values"))
|
|
334
354
|
Slot.struct_class = Types::Slot
|
|
335
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
|
+
|
|
336
362
|
Slots.key = Shapes::ShapeRef.new(shape: NonEmptyString)
|
|
337
363
|
Slots.value = Shapes::ShapeRef.new(shape: Slot)
|
|
338
364
|
|
|
@@ -296,6 +296,19 @@ module Aws::LexRuntimeV2
|
|
|
296
296
|
# "NonEmptyString" => "String",
|
|
297
297
|
# },
|
|
298
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
|
+
# },
|
|
299
312
|
# },
|
|
300
313
|
# welcome_messages: [
|
|
301
314
|
# {
|
|
@@ -1105,6 +1118,19 @@ module Aws::LexRuntimeV2
|
|
|
1105
1118
|
# "NonEmptyString" => "String",
|
|
1106
1119
|
# },
|
|
1107
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
|
+
# },
|
|
1108
1134
|
# },
|
|
1109
1135
|
# request_attributes: {
|
|
1110
1136
|
# "NonEmptyString" => "String",
|
|
@@ -1271,6 +1297,19 @@ module Aws::LexRuntimeV2
|
|
|
1271
1297
|
# "NonEmptyString" => "String",
|
|
1272
1298
|
# },
|
|
1273
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
|
+
# },
|
|
1274
1313
|
# },
|
|
1275
1314
|
# request_attributes: {
|
|
1276
1315
|
# "NonEmptyString" => "String",
|
|
@@ -1613,6 +1652,112 @@ module Aws::LexRuntimeV2
|
|
|
1613
1652
|
include Aws::Structure
|
|
1614
1653
|
end
|
|
1615
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
|
+
|
|
1616
1761
|
# Provides information about the sentiment expressed in a user's
|
|
1617
1762
|
# response in a conversation. Sentiments are determined using Amazon
|
|
1618
1763
|
# Comprehend. Sentiments are only returned if they are enabled for the
|
|
@@ -1724,6 +1869,19 @@ module Aws::LexRuntimeV2
|
|
|
1724
1869
|
# "NonEmptyString" => "String",
|
|
1725
1870
|
# },
|
|
1726
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
|
+
# },
|
|
1727
1885
|
# }
|
|
1728
1886
|
#
|
|
1729
1887
|
# @!attribute [rw] dialog_action
|
|
@@ -1749,8 +1907,15 @@ module Aws::LexRuntimeV2
|
|
|
1749
1907
|
# @return [Hash<String,String>]
|
|
1750
1908
|
#
|
|
1751
1909
|
# @!attribute [rw] originating_request_id
|
|
1910
|
+
# A unique identifier for a specific request.
|
|
1752
1911
|
# @return [String]
|
|
1753
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
|
+
#
|
|
1754
1919
|
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex.v2-2020-08-07/SessionState AWS API Documentation
|
|
1755
1920
|
#
|
|
1756
1921
|
class SessionState < Struct.new(
|
|
@@ -1758,7 +1923,8 @@ module Aws::LexRuntimeV2
|
|
|
1758
1923
|
:intent,
|
|
1759
1924
|
:active_contexts,
|
|
1760
1925
|
:session_attributes,
|
|
1761
|
-
:originating_request_id
|
|
1926
|
+
:originating_request_id,
|
|
1927
|
+
:runtime_hints)
|
|
1762
1928
|
SENSITIVE = []
|
|
1763
1929
|
include Aws::Structure
|
|
1764
1930
|
end
|
|
@@ -2085,6 +2251,19 @@ module Aws::LexRuntimeV2
|
|
|
2085
2251
|
# "NonEmptyString" => "String",
|
|
2086
2252
|
# },
|
|
2087
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
|
+
# },
|
|
2088
2267
|
# },
|
|
2089
2268
|
# welcome_messages: [
|
|
2090
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
|