aws-sdk-lexruntimev2 1.27.0 → 1.28.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 +2 -1
- data/lib/aws-sdk-lexruntimev2/client.rb +3 -1
- data/lib/aws-sdk-lexruntimev2/client_api.rb +2 -0
- data/lib/aws-sdk-lexruntimev2/endpoint_provider.rb +1 -1
- data/lib/aws-sdk-lexruntimev2/types.rb +59 -33
- 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: 1367fb6766b04e8135a6eea2c652974969b7d9f880cdb3fa7797af23bc119abd
|
4
|
+
data.tar.gz: 534d2795267a363d69392634764550c44d2f26c248ada80d2b9c5cbae50e76d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 459407cea3693994405560c9d578b355f172866779956f45977ba34f93e631a652240ce09485aef9508bf161567bc1938cc134c6a114de203b6c4f4810dd3941
|
7
|
+
data.tar.gz: 72640ed414ef83958732271d396bffde4dfac6b13c346f792c58aed9778dbe5411c21762326b762949298887ee0d30a4cc21933393edf80b4669ea11234ffa67
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.28.0
|
@@ -562,6 +562,7 @@ module Aws::LexRuntimeV2
|
|
562
562
|
# event.interpretations[0].intent.slots["NonEmptyString"].sub_slots #=> Types::Slots
|
563
563
|
# event.interpretations[0].intent.state #=> String, one of "Failed", "Fulfilled", "InProgress", "ReadyForFulfillment", "Waiting", "FulfillmentInProgress"
|
564
564
|
# event.interpretations[0].intent.confirmation_state #=> String, one of "Confirmed", "Denied", "None"
|
565
|
+
# event.interpretations[0].interpretation_source #=> String, one of "Bedrock", "Lex"
|
565
566
|
# event.session_state.dialog_action.type #=> String, one of "Close", "ConfirmIntent", "Delegate", "ElicitIntent", "ElicitSlot", "None"
|
566
567
|
# event.session_state.dialog_action.slot_to_elicit #=> String
|
567
568
|
# event.session_state.dialog_action.slot_elicitation_style #=> String, one of "Default", "SpellByLetter", "SpellByWord"
|
@@ -687,7 +688,7 @@ module Aws::LexRuntimeV2
|
|
687
688
|
http_response: Seahorse::Client::Http::AsyncResponse.new,
|
688
689
|
config: config)
|
689
690
|
context[:gem_name] = 'aws-sdk-lexruntimev2'
|
690
|
-
context[:gem_version] = '1.
|
691
|
+
context[:gem_version] = '1.28.0'
|
691
692
|
Seahorse::Client::Request.new(handlers, context)
|
692
693
|
end
|
693
694
|
|
@@ -530,6 +530,7 @@ module Aws::LexRuntimeV2
|
|
530
530
|
# resp.interpretations[0].intent.slots["NonEmptyString"].sub_slots #=> Types::Slots
|
531
531
|
# resp.interpretations[0].intent.state #=> String, one of "Failed", "Fulfilled", "InProgress", "ReadyForFulfillment", "Waiting", "FulfillmentInProgress"
|
532
532
|
# resp.interpretations[0].intent.confirmation_state #=> String, one of "Confirmed", "Denied", "None"
|
533
|
+
# resp.interpretations[0].interpretation_source #=> String, one of "Bedrock", "Lex"
|
533
534
|
# resp.session_state.dialog_action.type #=> String, one of "Close", "ConfirmIntent", "Delegate", "ElicitIntent", "ElicitSlot", "None"
|
534
535
|
# resp.session_state.dialog_action.slot_to_elicit #=> String
|
535
536
|
# resp.session_state.dialog_action.slot_elicitation_style #=> String, one of "Default", "SpellByLetter", "SpellByWord"
|
@@ -946,6 +947,7 @@ module Aws::LexRuntimeV2
|
|
946
947
|
# resp.interpretations[0].intent.slots["NonEmptyString"].sub_slots #=> Types::Slots
|
947
948
|
# resp.interpretations[0].intent.state #=> String, one of "Failed", "Fulfilled", "InProgress", "ReadyForFulfillment", "Waiting", "FulfillmentInProgress"
|
948
949
|
# resp.interpretations[0].intent.confirmation_state #=> String, one of "Confirmed", "Denied", "None"
|
950
|
+
# resp.interpretations[0].interpretation_source #=> String, one of "Bedrock", "Lex"
|
949
951
|
# resp.request_attributes #=> Hash
|
950
952
|
# resp.request_attributes["NonEmptyString"] #=> String
|
951
953
|
# resp.session_id #=> String
|
@@ -1167,7 +1169,7 @@ module Aws::LexRuntimeV2
|
|
1167
1169
|
params: params,
|
1168
1170
|
config: config)
|
1169
1171
|
context[:gem_name] = 'aws-sdk-lexruntimev2'
|
1170
|
-
context[:gem_version] = '1.
|
1172
|
+
context[:gem_version] = '1.28.0'
|
1171
1173
|
Seahorse::Client::Request.new(handlers, context)
|
1172
1174
|
end
|
1173
1175
|
|
@@ -62,6 +62,7 @@ module Aws::LexRuntimeV2
|
|
62
62
|
IntentState = Shapes::StringShape.new(name: 'IntentState')
|
63
63
|
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
64
64
|
Interpretation = Shapes::StructureShape.new(name: 'Interpretation')
|
65
|
+
InterpretationSource = Shapes::StringShape.new(name: 'InterpretationSource')
|
65
66
|
Interpretations = Shapes::ListShape.new(name: 'Interpretations')
|
66
67
|
LocaleId = Shapes::StringShape.new(name: 'LocaleId')
|
67
68
|
Message = Shapes::StructureShape.new(name: 'Message')
|
@@ -242,6 +243,7 @@ module Aws::LexRuntimeV2
|
|
242
243
|
Interpretation.add_member(:nlu_confidence, Shapes::ShapeRef.new(shape: ConfidenceScore, location_name: "nluConfidence"))
|
243
244
|
Interpretation.add_member(:sentiment_response, Shapes::ShapeRef.new(shape: SentimentResponse, location_name: "sentimentResponse"))
|
244
245
|
Interpretation.add_member(:intent, Shapes::ShapeRef.new(shape: Intent, location_name: "intent"))
|
246
|
+
Interpretation.add_member(:interpretation_source, Shapes::ShapeRef.new(shape: InterpretationSource, location_name: "interpretationSource"))
|
245
247
|
Interpretation.struct_class = Types::Interpretation
|
246
248
|
|
247
249
|
Interpretations.member = Shapes::ShapeRef.new(shape: Interpretation)
|
@@ -32,7 +32,7 @@ module Aws::LexRuntimeV2
|
|
32
32
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
33
|
end
|
34
34
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
36
36
|
return Aws::Endpoints::Endpoint.new(url: "https://runtime-v2-lex-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
37
|
end
|
38
38
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
@@ -411,22 +411,22 @@ module Aws::LexRuntimeV2
|
|
411
411
|
#
|
412
412
|
# @!attribute [rw] type
|
413
413
|
# The next action that the bot should take in its interaction with the
|
414
|
-
# user. The
|
414
|
+
# user. The following values are possible:
|
415
415
|
#
|
416
|
-
# * `Close`
|
416
|
+
# * `Close` – Indicates that there will not be a response from the
|
417
417
|
# user. For example, the statement "Your order has been placed"
|
418
418
|
# does not require a response.
|
419
419
|
#
|
420
|
-
# * `ConfirmIntent`
|
420
|
+
# * `ConfirmIntent` – The next action is asking the user if the intent
|
421
421
|
# is complete and ready to be fulfilled. This is a yes/no question
|
422
422
|
# such as "Place the order?"
|
423
423
|
#
|
424
|
-
# * `Delegate`
|
424
|
+
# * `Delegate` – The next action is determined by Amazon Lex V2.
|
425
425
|
#
|
426
|
-
# * `ElicitIntent`
|
426
|
+
# * `ElicitIntent` – The next action is to elicit an intent from the
|
427
427
|
# user.
|
428
428
|
#
|
429
|
-
# * `ElicitSlot`
|
429
|
+
# * `ElicitSlot` – The next action is to elicit a slot value from the
|
430
430
|
# user.
|
431
431
|
# @return [String]
|
432
432
|
#
|
@@ -448,7 +448,7 @@ module Aws::LexRuntimeV2
|
|
448
448
|
#
|
449
449
|
#
|
450
450
|
#
|
451
|
-
# [1]: https://docs.aws.amazon.com/lexv2/latest/dg/
|
451
|
+
# [1]: https://docs.aws.amazon.com/lexv2/latest/dg/spelling-styles.html
|
452
452
|
# @return [String]
|
453
453
|
#
|
454
454
|
# @!attribute [rw] sub_slot_to_elicit
|
@@ -649,12 +649,29 @@ module Aws::LexRuntimeV2
|
|
649
649
|
# @return [Hash<String,Types::Slot>]
|
650
650
|
#
|
651
651
|
# @!attribute [rw] state
|
652
|
-
#
|
652
|
+
# Indicates the fulfillment state for the intent. The meanings of each
|
653
|
+
# value are as follows:
|
654
|
+
#
|
655
|
+
# * `Failed` – The bot failed to fulfill the intent.
|
656
|
+
#
|
657
|
+
# * `Fulfilled` – The bot has completed fulfillment of the intent.
|
658
|
+
#
|
659
|
+
# * `FulfillmentInProgress` – The bot is in the middle of fulfilling
|
660
|
+
# the intent.
|
661
|
+
#
|
662
|
+
# * `InProgress` – The bot is in the middle of eliciting the slot
|
663
|
+
# values that are necessary to fulfill the intent.
|
664
|
+
#
|
665
|
+
# * `ReadyForFulfillment` – The bot has elicited all the slot values
|
666
|
+
# for the intent and is ready to fulfill the intent.
|
667
|
+
#
|
668
|
+
# * `Waiting` – The bot is waiting for a response from the user
|
669
|
+
# (limited to streaming conversations).
|
653
670
|
# @return [String]
|
654
671
|
#
|
655
672
|
# @!attribute [rw] confirmation_state
|
656
|
-
#
|
657
|
-
# been
|
673
|
+
# Indicates whether the intent has been `Confirmed`, `Denied`, or
|
674
|
+
# `None` if the confirmation stage has not yet been reached.
|
658
675
|
# @return [String]
|
659
676
|
#
|
660
677
|
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex.v2-2020-08-07/Intent AWS API Documentation
|
@@ -672,7 +689,8 @@ module Aws::LexRuntimeV2
|
|
672
689
|
# application and Amazon Lex V2.
|
673
690
|
#
|
674
691
|
# @!attribute [rw] input_mode
|
675
|
-
# Indicates whether the input to the operation was text or
|
692
|
+
# Indicates whether the input to the operation was text, speech, or
|
693
|
+
# from a touch-tone keypad.
|
676
694
|
# @return [String]
|
677
695
|
#
|
678
696
|
# @!attribute [rw] interpretations
|
@@ -735,8 +753,9 @@ module Aws::LexRuntimeV2
|
|
735
753
|
include Aws::Structure
|
736
754
|
end
|
737
755
|
|
738
|
-
# An intent that Amazon Lex V2
|
739
|
-
# utterance. The intents are
|
756
|
+
# An object containing information about an intent that Amazon Lex V2
|
757
|
+
# determined might satisfy the user's utterance. The intents are
|
758
|
+
# ordered by the confidence score.
|
740
759
|
#
|
741
760
|
# @!attribute [rw] nlu_confidence
|
742
761
|
# Determines the threshold where Amazon Lex V2 will insert the
|
@@ -759,12 +778,17 @@ module Aws::LexRuntimeV2
|
|
759
778
|
# intents are ordered by the confidence score.
|
760
779
|
# @return [Types::Intent]
|
761
780
|
#
|
781
|
+
# @!attribute [rw] interpretation_source
|
782
|
+
# Specifies the service that interpreted the input.
|
783
|
+
# @return [String]
|
784
|
+
#
|
762
785
|
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex.v2-2020-08-07/Interpretation AWS API Documentation
|
763
786
|
#
|
764
787
|
class Interpretation < Struct.new(
|
765
788
|
:nlu_confidence,
|
766
789
|
:sentiment_response,
|
767
|
-
:intent
|
790
|
+
:intent,
|
791
|
+
:interpretation_source)
|
768
792
|
SENSITIVE = []
|
769
793
|
include Aws::Structure
|
770
794
|
end
|
@@ -928,17 +952,16 @@ module Aws::LexRuntimeV2
|
|
928
952
|
# @return [String]
|
929
953
|
#
|
930
954
|
# @!attribute [rw] session_state
|
931
|
-
#
|
932
|
-
# bot.
|
933
|
-
#
|
934
|
-
# Use this to determine the progress of the conversation and what the
|
935
|
-
# next action may be.
|
955
|
+
# A base-64-encoded gzipped field that represents the current state of
|
956
|
+
# the dialog between the user and the bot. Use this to determine the
|
957
|
+
# progress of the conversation and what the next action may be.
|
936
958
|
# @return [String]
|
937
959
|
#
|
938
960
|
# @!attribute [rw] request_attributes
|
939
|
-
#
|
940
|
-
#
|
941
|
-
#
|
961
|
+
# A base-64-encoded gzipped field that provides request-specific
|
962
|
+
# information passed between the client application and Amazon Lex V2.
|
963
|
+
# These are the same as the `requestAttribute` parameter in the call
|
964
|
+
# to the `PutSession` operation.
|
942
965
|
# @return [String]
|
943
966
|
#
|
944
967
|
# @!attribute [rw] session_id
|
@@ -1174,8 +1197,8 @@ module Aws::LexRuntimeV2
|
|
1174
1197
|
end
|
1175
1198
|
|
1176
1199
|
# @!attribute [rw] input_mode
|
1177
|
-
# Indicates whether the input mode to the operation was text
|
1178
|
-
#
|
1200
|
+
# Indicates whether the input mode to the operation was text, speech,
|
1201
|
+
# or from a touch-tone keypad.
|
1179
1202
|
# @return [String]
|
1180
1203
|
#
|
1181
1204
|
# @!attribute [rw] content_type
|
@@ -1695,23 +1718,26 @@ module Aws::LexRuntimeV2
|
|
1695
1718
|
include Aws::Structure
|
1696
1719
|
end
|
1697
1720
|
|
1698
|
-
#
|
1721
|
+
# Information about the value provided for a slot and Amazon Lex V2's
|
1722
|
+
# interpretation.
|
1699
1723
|
#
|
1700
1724
|
# @!attribute [rw] original_value
|
1701
|
-
# The
|
1702
|
-
# slot.
|
1725
|
+
# The part of the user's response to the slot elicitation that Amazon
|
1726
|
+
# Lex V2 determines is relevant to the slot value.
|
1703
1727
|
# @return [String]
|
1704
1728
|
#
|
1705
1729
|
# @!attribute [rw] interpreted_value
|
1706
|
-
# The value that Amazon Lex V2 determines for the slot
|
1707
|
-
# value depends on the setting of the value
|
1708
|
-
# bot. You can choose to use the value
|
1709
|
-
# have Amazon Lex V2 choose the first
|
1710
|
-
# list.
|
1730
|
+
# The value that Amazon Lex V2 determines for the slot, given the user
|
1731
|
+
# input. The actual value depends on the setting of the value
|
1732
|
+
# selection strategy for the bot. You can choose to use the value
|
1733
|
+
# entered by the user, or you can have Amazon Lex V2 choose the first
|
1734
|
+
# value in the `resolvedValues` list.
|
1711
1735
|
# @return [String]
|
1712
1736
|
#
|
1713
1737
|
# @!attribute [rw] resolved_values
|
1714
|
-
# A list of
|
1738
|
+
# A list of values that Amazon Lex V2 determines are possible
|
1739
|
+
# resolutions for the user input. The first value matches the
|
1740
|
+
# `interpretedValue`.
|
1715
1741
|
# @return [Array<String>]
|
1716
1742
|
#
|
1717
1743
|
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex.v2-2020-08-07/Value AWS API Documentation
|
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.28.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: 2023-11-
|
11
|
+
date: 2023-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|