aws-lex-conversation 6.2.0 → 6.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +2 -0
- data/CHANGELOG.md +13 -0
- data/aws-lex-conversation.gemspec +1 -0
- data/lib/aws/lex/conversation/base.rb +1 -0
- data/lib/aws/lex/conversation/response/elicit_slot.rb +3 -2
- data/lib/aws/lex/conversation/type/dialog_action.rb +3 -1
- data/lib/aws/lex/conversation/type/slot_elicitation_style.rb +17 -0
- data/lib/aws/lex/conversation/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33df2c318e3e0d2e3157ebe43e27b38855334518efa5fa957be0e1035e6454f2
|
4
|
+
data.tar.gz: 5f7db4ab55ef155967688aae6a85781b1fca26860574d45280cfceb2e410b730
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4831b1eed996b95384635c446a2432efbb765900a8ef814c089ab4bbbfa5311708b0f71fe080d5b4910110448c698dfe855747bc2d9b9a8b19643743581b9c86
|
7
|
+
data.tar.gz: 53cdad241f6ace96a3ea1cb7be904f3518edbab40a403c8ab0641ea26cc6629ae1e0ce16b642cf08217a6f06017936e5865ac01be74e3fdeb620f4654edad52c
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,16 @@
|
|
1
|
+
# 6.3.0 - Nov 22, 2021
|
2
|
+
|
3
|
+
* Add support for the recently added `slotElicitationStyle` property when generating an `ElicitSlot` repsonse ([documentation](https://docs.aws.amazon.com/lexv2/latest/dg/using-spelling.html)).
|
4
|
+
|
5
|
+
You can generate an `ElicitSlot` response now with an optional `slot_elicitation_style` property to allow for spelling support:
|
6
|
+
|
7
|
+
```ruby
|
8
|
+
conversation.elicit_slot(
|
9
|
+
slot_to_elicit: 'LastName',
|
10
|
+
slot_elicitation_style: 'SpellByWord' # one of Default, SpellByLetter, or SpellByWord
|
11
|
+
)
|
12
|
+
```
|
13
|
+
|
1
14
|
# 6.2.0 - Sept 28, 2021
|
2
15
|
|
3
16
|
* Add a `Aws::Lex::Conversation#restore_from!` method that accepts a checkpoint parameter. This method modifies the underlying conversation state to match the data from the saved checkpoint.
|
@@ -26,6 +26,7 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.license = 'MIT'
|
27
27
|
spec.required_ruby_version = Gem::Requirement.new('>= 2.3.0')
|
28
28
|
spec.metadata['homepage_uri'] = spec.homepage
|
29
|
+
spec.metadata['rubygems_mfa_required'] = 'true'
|
29
30
|
|
30
31
|
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
31
32
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
@@ -25,6 +25,7 @@ require_relative 'type/sentiment_score'
|
|
25
25
|
require_relative 'type/sentiment_response'
|
26
26
|
require_relative 'type/invocation_source'
|
27
27
|
require_relative 'type/dialog_action_type'
|
28
|
+
require_relative 'type/slot_elicitation_style'
|
28
29
|
require_relative 'type/dialog_action'
|
29
30
|
require_relative 'type/confirmation_state'
|
30
31
|
require_relative 'type/fulfillment_state'
|
@@ -5,7 +5,7 @@ module Aws
|
|
5
5
|
class Conversation
|
6
6
|
module Response
|
7
7
|
class ElicitSlot < Base
|
8
|
-
attr_accessor :slot_to_elicit
|
8
|
+
attr_accessor :slot_to_elicit, :slot_elicitation_style
|
9
9
|
|
10
10
|
def initialize(opts = {})
|
11
11
|
super
|
@@ -16,7 +16,8 @@ module Aws
|
|
16
16
|
def dialog_action
|
17
17
|
Aws::Lex::Conversation::Type::DialogAction.shrink_wrap(
|
18
18
|
type: 'ElicitSlot',
|
19
|
-
slotToElicit: slot_to_elicit
|
19
|
+
slotToElicit: slot_to_elicit,
|
20
|
+
slotElicitationStyle: slot_elicitation_style
|
20
21
|
)
|
21
22
|
end
|
22
23
|
end
|
@@ -8,10 +8,12 @@ module Aws
|
|
8
8
|
include Base
|
9
9
|
|
10
10
|
optional :slot_to_elicit
|
11
|
+
optional :slot_elicitation_style, default: -> { 'Default' }
|
11
12
|
required :type
|
12
13
|
|
13
14
|
coerce(
|
14
|
-
type: DialogActionType
|
15
|
+
type: DialogActionType,
|
16
|
+
slot_elicitation_style: SlotElicitationStyle
|
15
17
|
)
|
16
18
|
end
|
17
19
|
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Aws
|
4
|
+
module Lex
|
5
|
+
class Conversation
|
6
|
+
module Type
|
7
|
+
class SlotElicitationStyle
|
8
|
+
include Enumeration
|
9
|
+
|
10
|
+
enumeration('Default')
|
11
|
+
enumeration('SpellByLetter')
|
12
|
+
enumeration('SpellByWord')
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-lex-conversation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.
|
4
|
+
version: 6.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jesse Doyle
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: exe
|
14
14
|
cert_chain: []
|
15
|
-
date: 2021-
|
15
|
+
date: 2021-11-22 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: shrink_wrap
|
@@ -101,6 +101,7 @@ files:
|
|
101
101
|
- lib/aws/lex/conversation/type/session_attributes.rb
|
102
102
|
- lib/aws/lex/conversation/type/session_state.rb
|
103
103
|
- lib/aws/lex/conversation/type/slot.rb
|
104
|
+
- lib/aws/lex/conversation/type/slot_elicitation_style.rb
|
104
105
|
- lib/aws/lex/conversation/type/slot_shape.rb
|
105
106
|
- lib/aws/lex/conversation/type/slot_value.rb
|
106
107
|
- lib/aws/lex/conversation/type/time_to_live.rb
|
@@ -110,6 +111,7 @@ licenses:
|
|
110
111
|
- MIT
|
111
112
|
metadata:
|
112
113
|
homepage_uri: https://github.com/amaabca/aws-lex-conversation
|
114
|
+
rubygems_mfa_required: 'true'
|
113
115
|
post_install_message:
|
114
116
|
rdoc_options: []
|
115
117
|
require_paths:
|