forked from alexa/alexa-skills-kit-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c23055e
commit 40ab702
Showing
14 changed files
with
444 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.amazon.speech.slu; | ||
|
||
|
||
/** | ||
* Indication of whether an intent or slot has been explicitly confirmed or denied by the user, or neither. | ||
* | ||
* Intents can be confirmed or denied using | ||
* {@link com.amazon.speech.speechlet.dialog.directives.ConfirmIntentDirective}, or by indicating | ||
* in the skill's configured dialog that the intent requires confirmation. | ||
* | ||
* Slots can be confirmed or denied using {@link com.amazon.speech.speechlet.dialog.directives.ConfirmSlotDirective}, | ||
* or by indicating in the skill's configured dialog that the intent requires confirmation. | ||
*/ | ||
public enum ConfirmationStatus { | ||
NONE, | ||
CONFIRMED, | ||
DENIED | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/com/amazon/speech/speechlet/dialog/directives/ConfirmIntentDirective.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.amazon.speech.speechlet.dialog.directives; | ||
|
||
import com.fasterxml.jackson.annotation.JsonTypeName; | ||
|
||
/** | ||
* A Directive which a skill may return to indicate that the skill is asking the user to | ||
* confirm or deny the overall intent. The skill must also provide output speech for the request. | ||
* If the user confirms the intent, subsequent requests to the skill for the same dialog | ||
* session will have a confirmationStatus of | ||
* {@link com.amazon.speech.slu.ConfirmationStatus#CONFIRMED} for the intent; if the user denies | ||
* the value, the confirmationStatus will be | ||
* {@link com.amazon.speech.slu.ConfirmationStatus#DENIED}. | ||
* | ||
* When a user confirms the intent, it is expected that the skill will then try to fulfill the | ||
* intent. When a user denies the intent, or the user confirms the intent but the skill is unable | ||
* to fulfill it, the skill may either end the session or give the | ||
* user the opportunity to (re-)confirm or change one or more slot values via a sequence of | ||
* {@link ConfirmSlotDirective} and/or {@link ElicitSlotDirective}. In this case, the skill | ||
* should use {@link #setUpdatedIntent} to clear any values or confirmation statuses as | ||
* necessary. | ||
* | ||
* @see DialogDirective#setUpdatedIntent | ||
*/ | ||
@JsonTypeName("Dialog.ConfirmIntent") | ||
public class ConfirmIntentDirective extends DialogDirective { | ||
} |
Oops, something went wrong.