public interface NaturalLanguagePlugin
Modifier and Type | Method and Description |
---|---|
void |
clearSlot(java.lang.String sName_p)
Clears a slot _internally_ in the DialogEngine object.
|
java.lang.String |
getCurrentIntent()
Returns null if there is no intent yet.
|
java.lang.String |
getNextPrompt() |
java.util.Map<java.lang.String,java.util.Map<com.speechstorm.fish.ai.dialogcommons.SlotValue,java.lang.Float>> |
getSlots()
Returns a read-only map where each key is the name of a slot, and the
content is a mapping of values to confidence scores (0.0-1.0).
|
static boolean |
isAvailable(java.lang.String sConfigString_p)
Checks whether there is an URL configured for the sConfigString_p passed.
|
boolean |
isCompleted()
Returns true if the intent and all required slots have been captured.
|
boolean |
isLiveAgentHandoffRequested()
DialoFlow:
Checks if the live agent handoff flag is set to true in the response from the
DialogEngine.
|
boolean |
isRecognitionFailure() |
boolean |
isSlotFailure()
Enables the runtime to check if the NL engine has failed in filling a slot value.
|
boolean |
processUserInput(com.speechstorm.fish.runtime.RecognitionResults recognitionResults_p) |
boolean processUserInput(com.speechstorm.fish.runtime.RecognitionResults recognitionResults_p) throws java.lang.Exception
java.lang.Exception
java.lang.String getCurrentIntent()
java.lang.String getNextPrompt()
java.util.Map<java.lang.String,java.util.Map<com.speechstorm.fish.ai.dialogcommons.SlotValue,java.lang.Float>> getSlots()
{ "Vegetable" : { "Aubergine" : 0.7, "Carrot" : 0.13 }, "Fruit" : { "Tomato" : 0.8 } }
void clearSlot(java.lang.String sName_p)
boolean isSlotFailure()
boolean isRecognitionFailure()
boolean isCompleted()
static boolean isAvailable(java.lang.String sConfigString_p)
sConfigString_p
- boolean isLiveAgentHandoffRequested()