aws-sdk-lexruntimev2 1.12.0 → 1.15.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 +15 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-lexruntimev2/async_client.rb +9 -1
- data/lib/aws-sdk-lexruntimev2/client.rb +39 -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 +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd6ca50110fda6f758f27e4281580d1ca1b22b5b7b632f54dc2b82906f5c1f4d
|
4
|
+
data.tar.gz: c2357f66da3599850ecbd3652786ddd8e3be059038e7afc4c5face102a4883f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84b54a508e7275e93ff7b23e533ba5f44c2331afe78a5cfeb069710d39f633aabc4dd40152ba7a6b7772e69de5193e6efb193abe5c4197ae3384bb9f3ba5382f
|
7
|
+
data.tar.gz: '09c0b8cbc618a6ecc509927b4435d197f9d6762c46cd1227c3c2cb2bca5d0a88bac92c67a422f4475395b7bc96fd1ca3bc65a0b09d5425524349055c7e9b6ed3'
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,21 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.15.0 (2022-02-24)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.14.0 (2022-02-03)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
1.13.0 (2022-01-13)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* 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.
|
18
|
+
|
4
19
|
1.12.0 (2021-12-21)
|
5
20
|
------------------
|
6
21
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.15.0
|
@@ -23,7 +23,9 @@ 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/checksum_algorithm.rb'
|
26
27
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
28
|
+
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
27
29
|
require 'aws-sdk-core/plugins/invocation_id.rb'
|
28
30
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
29
31
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
@@ -53,7 +55,9 @@ module Aws::LexRuntimeV2
|
|
53
55
|
add_plugin(Aws::Plugins::IdempotencyToken)
|
54
56
|
add_plugin(Aws::Plugins::JsonvalueConverter)
|
55
57
|
add_plugin(Aws::Plugins::HttpChecksum)
|
58
|
+
add_plugin(Aws::Plugins::ChecksumAlgorithm)
|
56
59
|
add_plugin(Aws::Plugins::DefaultsMode)
|
60
|
+
add_plugin(Aws::Plugins::RecursionDetection)
|
57
61
|
add_plugin(Aws::Plugins::InvocationId)
|
58
62
|
add_plugin(Aws::Plugins::SignatureV4)
|
59
63
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
@@ -543,6 +547,10 @@ module Aws::LexRuntimeV2
|
|
543
547
|
# event.session_state.session_attributes #=> Hash
|
544
548
|
# event.session_state.session_attributes["NonEmptyString"] #=> String
|
545
549
|
# event.session_state.originating_request_id #=> String
|
550
|
+
# event.session_state.runtime_hints.slot_hints #=> Hash
|
551
|
+
# event.session_state.runtime_hints.slot_hints["Name"] #=> Hash
|
552
|
+
# event.session_state.runtime_hints.slot_hints["Name"]["Name"].runtime_hint_values #=> Array
|
553
|
+
# event.session_state.runtime_hints.slot_hints["Name"]["Name"].runtime_hint_values[0].phrase #=> String
|
546
554
|
# event.request_attributes #=> Hash
|
547
555
|
# event.request_attributes["NonEmptyString"] #=> String
|
548
556
|
# event.session_id #=> String
|
@@ -635,7 +643,7 @@ module Aws::LexRuntimeV2
|
|
635
643
|
http_response: Seahorse::Client::Http::AsyncResponse.new,
|
636
644
|
config: config)
|
637
645
|
context[:gem_name] = 'aws-sdk-lexruntimev2'
|
638
|
-
context[:gem_version] = '1.
|
646
|
+
context[:gem_version] = '1.15.0'
|
639
647
|
Seahorse::Client::Request.new(handlers, context)
|
640
648
|
end
|
641
649
|
|
@@ -27,7 +27,9 @@ 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/checksum_algorithm.rb'
|
30
31
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
32
|
+
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
31
33
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
32
34
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
33
35
|
require 'aws-sdk-core/plugins/event_stream_configuration.rb'
|
@@ -75,7 +77,9 @@ module Aws::LexRuntimeV2
|
|
75
77
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
76
78
|
add_plugin(Aws::Plugins::TransferEncoding)
|
77
79
|
add_plugin(Aws::Plugins::HttpChecksum)
|
80
|
+
add_plugin(Aws::Plugins::ChecksumAlgorithm)
|
78
81
|
add_plugin(Aws::Plugins::DefaultsMode)
|
82
|
+
add_plugin(Aws::Plugins::RecursionDetection)
|
79
83
|
add_plugin(Aws::Plugins::SignatureV4)
|
80
84
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
81
85
|
add_plugin(Aws::Plugins::EventStreamConfiguration)
|
@@ -511,6 +515,10 @@ module Aws::LexRuntimeV2
|
|
511
515
|
# resp.session_state.session_attributes #=> Hash
|
512
516
|
# resp.session_state.session_attributes["NonEmptyString"] #=> String
|
513
517
|
# resp.session_state.originating_request_id #=> String
|
518
|
+
# resp.session_state.runtime_hints.slot_hints #=> Hash
|
519
|
+
# resp.session_state.runtime_hints.slot_hints["Name"] #=> Hash
|
520
|
+
# resp.session_state.runtime_hints.slot_hints["Name"]["Name"].runtime_hint_values #=> Array
|
521
|
+
# resp.session_state.runtime_hints.slot_hints["Name"]["Name"].runtime_hint_values[0].phrase #=> String
|
514
522
|
#
|
515
523
|
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex.v2-2020-08-07/GetSession AWS API Documentation
|
516
524
|
#
|
@@ -638,6 +646,19 @@ module Aws::LexRuntimeV2
|
|
638
646
|
# "NonEmptyString" => "String",
|
639
647
|
# },
|
640
648
|
# originating_request_id: "NonEmptyString",
|
649
|
+
# runtime_hints: {
|
650
|
+
# slot_hints: {
|
651
|
+
# "Name" => {
|
652
|
+
# "Name" => {
|
653
|
+
# runtime_hint_values: [ # required
|
654
|
+
# {
|
655
|
+
# phrase: "RuntimeHintPhrase", # required
|
656
|
+
# },
|
657
|
+
# ],
|
658
|
+
# },
|
659
|
+
# },
|
660
|
+
# },
|
661
|
+
# },
|
641
662
|
# },
|
642
663
|
# request_attributes: {
|
643
664
|
# "NonEmptyString" => "String",
|
@@ -778,6 +799,19 @@ module Aws::LexRuntimeV2
|
|
778
799
|
# "NonEmptyString" => "String",
|
779
800
|
# },
|
780
801
|
# originating_request_id: "NonEmptyString",
|
802
|
+
# runtime_hints: {
|
803
|
+
# slot_hints: {
|
804
|
+
# "Name" => {
|
805
|
+
# "Name" => {
|
806
|
+
# runtime_hint_values: [ # required
|
807
|
+
# {
|
808
|
+
# phrase: "RuntimeHintPhrase", # required
|
809
|
+
# },
|
810
|
+
# ],
|
811
|
+
# },
|
812
|
+
# },
|
813
|
+
# },
|
814
|
+
# },
|
781
815
|
# },
|
782
816
|
# request_attributes: {
|
783
817
|
# "NonEmptyString" => "String",
|
@@ -818,6 +852,10 @@ module Aws::LexRuntimeV2
|
|
818
852
|
# resp.session_state.session_attributes #=> Hash
|
819
853
|
# resp.session_state.session_attributes["NonEmptyString"] #=> String
|
820
854
|
# resp.session_state.originating_request_id #=> String
|
855
|
+
# resp.session_state.runtime_hints.slot_hints #=> Hash
|
856
|
+
# resp.session_state.runtime_hints.slot_hints["Name"] #=> Hash
|
857
|
+
# resp.session_state.runtime_hints.slot_hints["Name"]["Name"].runtime_hint_values #=> Array
|
858
|
+
# resp.session_state.runtime_hints.slot_hints["Name"]["Name"].runtime_hint_values[0].phrase #=> String
|
821
859
|
# resp.interpretations #=> Array
|
822
860
|
# resp.interpretations[0].nlu_confidence.score #=> Float
|
823
861
|
# resp.interpretations[0].sentiment_response.sentiment #=> String, one of "MIXED", "NEGATIVE", "NEUTRAL", "POSITIVE"
|
@@ -1053,7 +1091,7 @@ module Aws::LexRuntimeV2
|
|
1053
1091
|
params: params,
|
1054
1092
|
config: config)
|
1055
1093
|
context[:gem_name] = 'aws-sdk-lexruntimev2'
|
1056
|
-
context[:gem_version] = '1.
|
1094
|
+
context[:gem_version] = '1.15.0'
|
1057
1095
|
Seahorse::Client::Request.new(handlers, context)
|
1058
1096
|
end
|
1059
1097
|
|
@@ -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.15.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-02-24 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.127.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.127.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|