aws-sdk-lexruntimev2 1.10.0 → 1.14.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 +16 -2
- data/lib/aws-sdk-lexruntimev2/client.rb +50 -3
- 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: c5a6722bb4a95993b0b4cb2e125a19e6a26e17ab57de16777429dce656348f1b
|
|
4
|
+
data.tar.gz: 22fbffaa850ca2516465d53e47d6479e46c9d8be95b4e2e7e5e05226d1003a7f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5a1458b2ee7f2d091636a71102394c277d06f2e2eaa3e771bd4ab747678132cc7ec9314b231268d5e710929043bb53ba2d3252e3565b599ea7ce4f0a8532dd2e
|
|
7
|
+
data.tar.gz: 062e512dc5da504d28c84bfb5ff54c621c6b57ba08080e7f424f5c5696656dfce82330e9b8be6e984c190b80680c2d805c6aecca2b2a7c9ab5b73fdc146d018d
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.14.0 (2022-02-03)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
8
|
+
|
|
9
|
+
1.13.0 (2022-01-13)
|
|
10
|
+
------------------
|
|
11
|
+
|
|
12
|
+
* 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.
|
|
13
|
+
|
|
14
|
+
1.12.0 (2021-12-21)
|
|
15
|
+
------------------
|
|
16
|
+
|
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
18
|
+
|
|
19
|
+
1.11.0 (2021-11-30)
|
|
20
|
+
------------------
|
|
21
|
+
|
|
22
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
23
|
+
|
|
4
24
|
1.10.0 (2021-11-19)
|
|
5
25
|
------------------
|
|
6
26
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.14.0
|
|
@@ -23,6 +23,8 @@ 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'
|
|
27
|
+
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
|
26
28
|
require 'aws-sdk-core/plugins/invocation_id.rb'
|
|
27
29
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
|
28
30
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
|
@@ -52,6 +54,8 @@ module Aws::LexRuntimeV2
|
|
|
52
54
|
add_plugin(Aws::Plugins::IdempotencyToken)
|
|
53
55
|
add_plugin(Aws::Plugins::JsonvalueConverter)
|
|
54
56
|
add_plugin(Aws::Plugins::HttpChecksum)
|
|
57
|
+
add_plugin(Aws::Plugins::DefaultsMode)
|
|
58
|
+
add_plugin(Aws::Plugins::RecursionDetection)
|
|
55
59
|
add_plugin(Aws::Plugins::InvocationId)
|
|
56
60
|
add_plugin(Aws::Plugins::SignatureV4)
|
|
57
61
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
|
@@ -98,7 +102,9 @@ module Aws::LexRuntimeV2
|
|
|
98
102
|
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
|
99
103
|
# are very aggressive. Construct and pass an instance of
|
|
100
104
|
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
|
101
|
-
# enable retries and extended timeouts.
|
|
105
|
+
# enable retries and extended timeouts. Instance profile credential
|
|
106
|
+
# fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
|
|
107
|
+
# to true.
|
|
102
108
|
#
|
|
103
109
|
# @option options [required, String] :region
|
|
104
110
|
# The AWS region to connect to. The configured `:region` is
|
|
@@ -128,6 +134,10 @@ module Aws::LexRuntimeV2
|
|
|
128
134
|
# Used only in `standard` and adaptive retry modes. Specifies whether to apply
|
|
129
135
|
# a clock skew correction and retry requests with skewed client clocks.
|
|
130
136
|
#
|
|
137
|
+
# @option options [String] :defaults_mode ("legacy")
|
|
138
|
+
# See {Aws::DefaultsModeConfiguration} for a list of the
|
|
139
|
+
# accepted modes and the configuration defaults that are included.
|
|
140
|
+
#
|
|
131
141
|
# @option options [String] :endpoint
|
|
132
142
|
# The client endpoint is normally constructed from the `:region`
|
|
133
143
|
# option. You should only configure an `:endpoint` when connecting
|
|
@@ -535,6 +545,10 @@ module Aws::LexRuntimeV2
|
|
|
535
545
|
# event.session_state.session_attributes #=> Hash
|
|
536
546
|
# event.session_state.session_attributes["NonEmptyString"] #=> String
|
|
537
547
|
# event.session_state.originating_request_id #=> String
|
|
548
|
+
# event.session_state.runtime_hints.slot_hints #=> Hash
|
|
549
|
+
# event.session_state.runtime_hints.slot_hints["Name"] #=> Hash
|
|
550
|
+
# event.session_state.runtime_hints.slot_hints["Name"]["Name"].runtime_hint_values #=> Array
|
|
551
|
+
# event.session_state.runtime_hints.slot_hints["Name"]["Name"].runtime_hint_values[0].phrase #=> String
|
|
538
552
|
# event.request_attributes #=> Hash
|
|
539
553
|
# event.request_attributes["NonEmptyString"] #=> String
|
|
540
554
|
# event.session_id #=> String
|
|
@@ -627,7 +641,7 @@ module Aws::LexRuntimeV2
|
|
|
627
641
|
http_response: Seahorse::Client::Http::AsyncResponse.new,
|
|
628
642
|
config: config)
|
|
629
643
|
context[:gem_name] = 'aws-sdk-lexruntimev2'
|
|
630
|
-
context[:gem_version] = '1.
|
|
644
|
+
context[:gem_version] = '1.14.0'
|
|
631
645
|
Seahorse::Client::Request.new(handlers, context)
|
|
632
646
|
end
|
|
633
647
|
|
|
@@ -27,6 +27,8 @@ 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'
|
|
31
|
+
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
|
30
32
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
|
31
33
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
|
32
34
|
require 'aws-sdk-core/plugins/event_stream_configuration.rb'
|
|
@@ -74,6 +76,8 @@ module Aws::LexRuntimeV2
|
|
|
74
76
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
|
75
77
|
add_plugin(Aws::Plugins::TransferEncoding)
|
|
76
78
|
add_plugin(Aws::Plugins::HttpChecksum)
|
|
79
|
+
add_plugin(Aws::Plugins::DefaultsMode)
|
|
80
|
+
add_plugin(Aws::Plugins::RecursionDetection)
|
|
77
81
|
add_plugin(Aws::Plugins::SignatureV4)
|
|
78
82
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
|
79
83
|
add_plugin(Aws::Plugins::EventStreamConfiguration)
|
|
@@ -121,7 +125,9 @@ module Aws::LexRuntimeV2
|
|
|
121
125
|
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
|
122
126
|
# are very aggressive. Construct and pass an instance of
|
|
123
127
|
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
|
124
|
-
# enable retries and extended timeouts.
|
|
128
|
+
# enable retries and extended timeouts. Instance profile credential
|
|
129
|
+
# fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
|
|
130
|
+
# to true.
|
|
125
131
|
#
|
|
126
132
|
# @option options [required, String] :region
|
|
127
133
|
# The AWS region to connect to. The configured `:region` is
|
|
@@ -175,6 +181,10 @@ module Aws::LexRuntimeV2
|
|
|
175
181
|
# Used only in `standard` and adaptive retry modes. Specifies whether to apply
|
|
176
182
|
# a clock skew correction and retry requests with skewed client clocks.
|
|
177
183
|
#
|
|
184
|
+
# @option options [String] :defaults_mode ("legacy")
|
|
185
|
+
# See {Aws::DefaultsModeConfiguration} for a list of the
|
|
186
|
+
# accepted modes and the configuration defaults that are included.
|
|
187
|
+
#
|
|
178
188
|
# @option options [Boolean] :disable_host_prefix_injection (false)
|
|
179
189
|
# Set to true to disable SDK automatically adding host prefix
|
|
180
190
|
# to default service endpoint when available.
|
|
@@ -306,7 +316,7 @@ module Aws::LexRuntimeV2
|
|
|
306
316
|
# seconds to wait when opening a HTTP session before raising a
|
|
307
317
|
# `Timeout::Error`.
|
|
308
318
|
#
|
|
309
|
-
# @option options [
|
|
319
|
+
# @option options [Float] :http_read_timeout (60) The default
|
|
310
320
|
# number of seconds to wait for response data. This value can
|
|
311
321
|
# safely be set per-request on the session.
|
|
312
322
|
#
|
|
@@ -322,6 +332,9 @@ module Aws::LexRuntimeV2
|
|
|
322
332
|
# disables this behaviour. This value can safely be set per
|
|
323
333
|
# request on the session.
|
|
324
334
|
#
|
|
335
|
+
# @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
|
|
336
|
+
# in seconds.
|
|
337
|
+
#
|
|
325
338
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
|
326
339
|
# HTTP debug output will be sent to the `:logger`.
|
|
327
340
|
#
|
|
@@ -500,6 +513,10 @@ module Aws::LexRuntimeV2
|
|
|
500
513
|
# resp.session_state.session_attributes #=> Hash
|
|
501
514
|
# resp.session_state.session_attributes["NonEmptyString"] #=> String
|
|
502
515
|
# resp.session_state.originating_request_id #=> String
|
|
516
|
+
# resp.session_state.runtime_hints.slot_hints #=> Hash
|
|
517
|
+
# resp.session_state.runtime_hints.slot_hints["Name"] #=> Hash
|
|
518
|
+
# resp.session_state.runtime_hints.slot_hints["Name"]["Name"].runtime_hint_values #=> Array
|
|
519
|
+
# resp.session_state.runtime_hints.slot_hints["Name"]["Name"].runtime_hint_values[0].phrase #=> String
|
|
503
520
|
#
|
|
504
521
|
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex.v2-2020-08-07/GetSession AWS API Documentation
|
|
505
522
|
#
|
|
@@ -627,6 +644,19 @@ module Aws::LexRuntimeV2
|
|
|
627
644
|
# "NonEmptyString" => "String",
|
|
628
645
|
# },
|
|
629
646
|
# originating_request_id: "NonEmptyString",
|
|
647
|
+
# runtime_hints: {
|
|
648
|
+
# slot_hints: {
|
|
649
|
+
# "Name" => {
|
|
650
|
+
# "Name" => {
|
|
651
|
+
# runtime_hint_values: [ # required
|
|
652
|
+
# {
|
|
653
|
+
# phrase: "RuntimeHintPhrase", # required
|
|
654
|
+
# },
|
|
655
|
+
# ],
|
|
656
|
+
# },
|
|
657
|
+
# },
|
|
658
|
+
# },
|
|
659
|
+
# },
|
|
630
660
|
# },
|
|
631
661
|
# request_attributes: {
|
|
632
662
|
# "NonEmptyString" => "String",
|
|
@@ -767,6 +797,19 @@ module Aws::LexRuntimeV2
|
|
|
767
797
|
# "NonEmptyString" => "String",
|
|
768
798
|
# },
|
|
769
799
|
# originating_request_id: "NonEmptyString",
|
|
800
|
+
# runtime_hints: {
|
|
801
|
+
# slot_hints: {
|
|
802
|
+
# "Name" => {
|
|
803
|
+
# "Name" => {
|
|
804
|
+
# runtime_hint_values: [ # required
|
|
805
|
+
# {
|
|
806
|
+
# phrase: "RuntimeHintPhrase", # required
|
|
807
|
+
# },
|
|
808
|
+
# ],
|
|
809
|
+
# },
|
|
810
|
+
# },
|
|
811
|
+
# },
|
|
812
|
+
# },
|
|
770
813
|
# },
|
|
771
814
|
# request_attributes: {
|
|
772
815
|
# "NonEmptyString" => "String",
|
|
@@ -807,6 +850,10 @@ module Aws::LexRuntimeV2
|
|
|
807
850
|
# resp.session_state.session_attributes #=> Hash
|
|
808
851
|
# resp.session_state.session_attributes["NonEmptyString"] #=> String
|
|
809
852
|
# resp.session_state.originating_request_id #=> String
|
|
853
|
+
# resp.session_state.runtime_hints.slot_hints #=> Hash
|
|
854
|
+
# resp.session_state.runtime_hints.slot_hints["Name"] #=> Hash
|
|
855
|
+
# resp.session_state.runtime_hints.slot_hints["Name"]["Name"].runtime_hint_values #=> Array
|
|
856
|
+
# resp.session_state.runtime_hints.slot_hints["Name"]["Name"].runtime_hint_values[0].phrase #=> String
|
|
810
857
|
# resp.interpretations #=> Array
|
|
811
858
|
# resp.interpretations[0].nlu_confidence.score #=> Float
|
|
812
859
|
# resp.interpretations[0].sentiment_response.sentiment #=> String, one of "MIXED", "NEGATIVE", "NEUTRAL", "POSITIVE"
|
|
@@ -1042,7 +1089,7 @@ module Aws::LexRuntimeV2
|
|
|
1042
1089
|
params: params,
|
|
1043
1090
|
config: config)
|
|
1044
1091
|
context[:gem_name] = 'aws-sdk-lexruntimev2'
|
|
1045
|
-
context[:gem_version] = '1.
|
|
1092
|
+
context[:gem_version] = '1.14.0'
|
|
1046
1093
|
Seahorse::Client::Request.new(handlers, context)
|
|
1047
1094
|
end
|
|
1048
1095
|
|
|
@@ -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.14.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-03 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.126.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.126.0
|
|
33
33
|
- !ruby/object:Gem::Dependency
|
|
34
34
|
name: aws-sigv4
|
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|