public class JOPv2DialogEnginePlugin extends java.lang.Object implements Plugin, NaturalLanguagePlugin
Constructor and Description |
---|
JOPv2DialogEnginePlugin(com.speechstorm.fish.runtime.VuiContext vuiContext_p) |
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.
|
com.fasterxml.jackson.databind.JsonNode |
getLastResponse() |
java.lang.String |
getName() |
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).
|
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(java.lang.String sInput_p) |
void |
startSession(java.lang.String sDomainID_p,
java.lang.Boolean bPassContext_p) |
void |
startSession(java.lang.String sDomainID_p,
java.lang.String sUsername_p,
java.lang.String sPassword_p,
java.lang.Boolean bPassContext_p) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isAvailable
public JOPv2DialogEnginePlugin(com.speechstorm.fish.runtime.VuiContext vuiContext_p)
public java.lang.String getName()
public void startSession(java.lang.String sDomainID_p, java.lang.Boolean bPassContext_p) throws java.lang.Exception
java.lang.Exception
public void startSession(java.lang.String sDomainID_p, java.lang.String sUsername_p, java.lang.String sPassword_p, java.lang.Boolean bPassContext_p) throws java.lang.Exception
java.lang.Exception
public boolean processUserInput(com.speechstorm.fish.runtime.RecognitionResults recognitionResults_p) throws java.lang.Exception
processUserInput
in interface NaturalLanguagePlugin
java.lang.Exception
public boolean processUserInput(java.lang.String sInput_p) throws java.lang.Exception
java.lang.Exception
public java.lang.String getCurrentIntent()
getCurrentIntent
in interface NaturalLanguagePlugin
public java.lang.String getNextPrompt()
getNextPrompt
in interface NaturalLanguagePlugin
public 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 } }
getSlots
in interface NaturalLanguagePlugin
public void clearSlot(java.lang.String sName_p)
clearSlot
in interface NaturalLanguagePlugin
public com.fasterxml.jackson.databind.JsonNode getLastResponse()
public boolean isLiveAgentHandoffRequested()
NaturalLanguagePlugin
isLiveAgentHandoffRequested
in interface NaturalLanguagePlugin
public boolean isSlotFailure()
NaturalLanguagePlugin
isSlotFailure
in interface NaturalLanguagePlugin
public boolean isRecognitionFailure()
isRecognitionFailure
in interface NaturalLanguagePlugin
public boolean isCompleted()
NaturalLanguagePlugin
isCompleted
in interface NaturalLanguagePlugin