aws-sdk-lexruntimev2 1.26.0 → 1.28.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4ebd4e7b692ac0dd985cd98afbfcdd99e39ecd9ddaab927655578db5d053d3ef
4
- data.tar.gz: 6105438520c99e63a2f0f931f471335f2e529c170422b4d4d92f1cb79d70584c
3
+ metadata.gz: 1367fb6766b04e8135a6eea2c652974969b7d9f880cdb3fa7797af23bc119abd
4
+ data.tar.gz: 534d2795267a363d69392634764550c44d2f26c248ada80d2b9c5cbae50e76d3
5
5
  SHA512:
6
- metadata.gz: 17596b18ead6de61240db08ddf4393608c55bf3734c8081476aa47541d6eaef8783ecee473d3541103eadc927fb377dcc94aed8dbf58a23406f12ab156d75632
7
- data.tar.gz: f1c52c11d4efb2938bc603cc1b8ad19b9afc47de26808fecd67016a79f725962e6932bb69e43a7b56170109a8a071fa280b079850106fff05974c44b69f75dec
6
+ metadata.gz: 459407cea3693994405560c9d578b355f172866779956f45977ba34f93e631a652240ce09485aef9508bf161567bc1938cc134c6a114de203b6c4f4810dd3941
7
+ data.tar.gz: 72640ed414ef83958732271d396bffde4dfac6b13c346f792c58aed9778dbe5411c21762326b762949298887ee0d30a4cc21933393edf80b4669ea11234ffa67
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.28.0 (2023-11-27)
5
+ ------------------
6
+
7
+ * Feature - This release introduces support for interpretationSource in the runtime service response.
8
+
9
+ 1.27.0 (2023-11-22)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.26.0 (2023-09-27)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.26.0
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.26.0'
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.26.0'
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?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
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 possible values are:
414
+ # user. The following values are possible:
415
415
  #
416
- # * `Close` - Indicates that there will not be a response from the
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` - The next action is asking the user if the intent
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` - The next action is determined by Amazon Lex V2.
424
+ # * `Delegate` The next action is determined by Amazon Lex V2.
425
425
  #
426
- # * `ElicitIntent` - The next action is to elicit an intent from the
426
+ # * `ElicitIntent` The next action is to elicit an intent from the
427
427
  # user.
428
428
  #
429
- # * `ElicitSlot` - The next action is to elicit a slot value from the
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/using-spelling.html
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
- # Contains fulfillment information for the intent.
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
- # Contains information about whether fulfillment of the intent has
657
- # been confirmed.
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 speech.
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 determined might satisfy the user's
739
- # utterance. The intents are ordered by the confidence score.
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
- # Represents the current state of the dialog between the user and the
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
- # Request-specific information passed between the client application
940
- # and Amazon Lex V2. These are the same as the `requestAttribute`
941
- # parameter in the call to the `PutSession` operation.
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 or
1178
- # speech.
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
- # The value of a slot.
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 text of the utterance from the user that was entered for 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. The actual
1707
- # value depends on the setting of the value selection strategy for the
1708
- # bot. You can choose to use the value entered by the user, or you can
1709
- # have Amazon Lex V2 choose the first value in the `resolvedValues`
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 additional values that have been recognized for the slot.
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
@@ -54,6 +54,6 @@ require_relative 'aws-sdk-lexruntimev2/event_streams'
54
54
  # @!group service
55
55
  module Aws::LexRuntimeV2
56
56
 
57
- GEM_VERSION = '1.26.0'
57
+ GEM_VERSION = '1.28.0'
58
58
 
59
59
  end
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.26.0
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-09-27 00:00:00.000000000 Z
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
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.184.0
22
+ version: 3.188.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.184.0
32
+ version: 3.188.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -82,7 +82,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
82
82
  requirements:
83
83
  - - ">="
84
84
  - !ruby/object:Gem::Version
85
- version: '2.3'
85
+ version: '2.5'
86
86
  required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  requirements:
88
88
  - - ">="