| Package | Description |
|---|---|
| io.spokestack.spokestack.dialogue |
This package contains components used for dialogue management.
|
| io.spokestack.spokestack.dialogue.policy |
This package contains Spokestack's custom rule-based dialogue policy and
supporting classes.
|
| io.spokestack.spokestack.rasa |
This package contains components used to perform NLU with Rasa NLU.
|
| Modifier and Type | Class and Description |
|---|---|
class |
InMemoryConversationData
A simple data store for conversation data that resides in memory and lasts
only as long as the dialogue manager holding it.
|
| Modifier and Type | Method and Description |
|---|---|
ConversationData |
DialogueManager.getDataStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
DialoguePolicy.completeTurn(boolean success,
ConversationData conversationData,
DialogueDispatcher eventDispatcher)
Complete the pending user turn.
|
String |
DialoguePolicy.dump(ConversationData conversationData)
Store the internal state of the dialogue policy in the specified data
store for cross-session persistence.
|
FinalizedPrompt |
Prompt.finalizePrompt(ConversationData dataStore)
Finalize this prompt, filling in all placeholders with data from the
conversation's data store.
|
String |
Prompt.getText(ConversationData data)
Get a version of the prompt formatted for print.
|
String |
Prompt.getVoice(ConversationData data)
Get a version of the prompt formatted for TTS synthesis.
|
void |
DialoguePolicy.handleTurn(NLUResult userTurn,
ConversationData conversationData,
DialogueDispatcher eventDispatcher)
Process a user turn and return a relevant response.
|
void |
DialoguePolicy.load(String state,
ConversationData conversationData)
Load previously serialized internal state.
|
DialogueManager.Builder |
DialogueManager.Builder.withDataStore(ConversationData dataStore)
Specify the data store to use for conversation data.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RuleBasedDialoguePolicy.completeTurn(boolean success,
ConversationData conversationData,
DialogueDispatcher eventDispatcher) |
String |
RuleBasedDialoguePolicy.dump(ConversationData conversationData) |
void |
RuleBasedDialoguePolicy.handleTurn(NLUResult nluResult,
ConversationData conversationData,
DialogueDispatcher eventDispatcher) |
void |
RuleBasedDialoguePolicy.load(String state,
ConversationData conversationData) |
boolean |
Model.Rule.shouldTrigger(io.spokestack.spokestack.dialogue.policy.UserTurn userTurn,
ConversationData conversationData,
boolean redirected)
Determine whether the rule should change the conversation flow based
on its criteria and the current state of the conversation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RasaDialoguePolicy.completeTurn(boolean success,
ConversationData conversationData,
DialogueDispatcher eventDispatcher) |
String |
RasaDialoguePolicy.dump(ConversationData conversationData) |
void |
RasaDialoguePolicy.handleTurn(NLUResult userTurn,
ConversationData conversationData,
DialogueDispatcher eventDispatcher) |
void |
RasaDialoguePolicy.load(String state,
ConversationData conversationData) |
Copyright © 2021. All rights reserved.