Skip to content

Commit 88a6dac

Browse files
author
AWS
committed
Amazon Lex Runtime V2 Update: Now supports styled slots in Lex V2 runtime. Customers can provide inputs like "a as in apple b for beta" which will be resolved to "ab" as slot value.
1 parent 04c51f5 commit 88a6dac

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Lex Runtime V2",
4+
"contributor": "",
5+
"description": "Now supports styled slots in Lex V2 runtime. Customers can provide inputs like \"a as in apple b for beta\" which will be resolved to \"ab\" as slot value."
6+
}

services/lexruntimev2/src/main/resources/codegen-resources/service-2.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,10 @@
490490
"slotToElicit":{
491491
"shape":"NonEmptyString",
492492
"documentation":"<p>The name of the slot that should be elicited from the user.</p>"
493+
},
494+
"slotElicitationStyle":{
495+
"shape":"StyleType",
496+
"documentation":"<p>Configures the slot to use spell-by-letter or spell-by-word style. When you use a style on a slot, users can spell out their input to make it clear to your bot.</p> <ul> <li> <p>Spell by letter - \"b\" \"o\" \"b\"</p> </li> <li> <p>Spell by word - \"b as in boy\" \"o as in oscar\" \"b as in boy\"</p> </li> </ul> <p>For more information, see <a href=\"https://docs.aws.amazon.com/lexv2/latest/dg/using-spelling.html\"> Using spelling to enter slot values </a>.</p>"
493497
}
494498
},
495499
"documentation":"<p>The next action that Amazon Lex V2 should take.</p>"
@@ -1355,6 +1359,14 @@
13551359
"key":{"shape":"NonEmptyString"},
13561360
"value":{"shape":"String"}
13571361
},
1362+
"StyleType":{
1363+
"type":"string",
1364+
"enum":[
1365+
"Default",
1366+
"SpellByLetter",
1367+
"SpellByWord"
1368+
]
1369+
},
13581370
"Text":{
13591371
"type":"string",
13601372
"max":1024,

0 commit comments

Comments
 (0)