aws-sdk-lexruntimev2 1.27.0 → 1.29.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: 608d4148ba749ea823e65def9012d295ad81a37637f4af15f59d7dc1518ee291
4
- data.tar.gz: 222dd317afc8c36ef1536aa112d836a59536565ffa776949404d5dc36d577ee6
3
+ metadata.gz: 59026ec64e5bfc0676d3cc24bc1af00a107a9ae144eec1c3ce6799f157233d3c
4
+ data.tar.gz: b2d21ddfaf9c2a6ac55f1f95d2293105c179420d01ec62ec247d8a55be492572
5
5
  SHA512:
6
- metadata.gz: 269ddbc00087273eed25ddb1c5892817e486db60d2b58bbea88e1d47ae795cc30417c2d30212db2917d6392a5e9b7c3b0948bdc36d29df4d7e4cb403f234c7b8
7
- data.tar.gz: e8a12202b12a0b4e584a41db73ab4ddefe5c6c5a547c64f788dff9ea8313c5e2c0e8f6df2d6c801f489f12a4684ab318aa28d129ee6b677b879a3671df04b3a1
6
+ metadata.gz: d26b85aacf705eaaef863419123f8d8def30d0dce101edf2c64594c8c1c2391157ade6b5ac4878b13f3bdce6d3ed5a7321647752651917e39194329541e87cd9
7
+ data.tar.gz: 36e3d4a30cc59f40db30e31510c18d4889d5e3190e02b0ba09e68778680a331bddd07fe38c86b5932ade8a18e0df88b0d6f6118b1580250a2cb9103264242cd6
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.29.0 (2023-11-28)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.28.0 (2023-11-27)
10
+ ------------------
11
+
12
+ * Feature - This release introduces support for interpretationSource in the runtime service response.
13
+
4
14
  1.27.0 (2023-11-22)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.27.0
1
+ 1.29.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.27.0'
691
+ context[:gem_version] = '1.29.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.27.0'
1172
+ context[:gem_version] = '1.29.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"
@@ -25,16 +25,17 @@ module Aws::LexRuntimeV2
25
25
  # @api private
26
26
  class Handler < Seahorse::Client::Handler
27
27
  def call(context)
28
- # If endpoint was discovered, do not resolve or apply the endpoint.
29
28
  unless context[:discovered_endpoint]
30
29
  params = parameters_for_operation(context)
31
30
  endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
31
 
33
32
  context.http_request.endpoint = endpoint.url
34
33
  apply_endpoint_headers(context, endpoint.headers)
34
+
35
+ context[:endpoint_params] = params
36
+ context[:endpoint_properties] = endpoint.properties
35
37
  end
36
38
 
37
- context[:endpoint_params] = params
38
39
  context[:auth_scheme] =
39
40
  Aws::Endpoints.resolve_auth_scheme(context, endpoint)
40
41
 
@@ -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.27.0'
57
+ GEM_VERSION = '1.29.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.27.0
4
+ version: 1.29.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-22 00:00:00.000000000 Z
11
+ date: 2023-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core