public static interface Conversation.Async
Modifier and Type | Method and Description |
---|---|
<any> |
makeChat(RobotContext context,
java.util.List<Chatbot> chatbots)
Create a Chat in the current language
|
<any> |
makeChat(RobotContext context,
java.util.List<Chatbot> chatbots,
ChatOptions chatOptions)
Create a Chat in the current language, using the specified options.
|
<any> |
makeChat(RobotContext context,
java.util.List<Chatbot> chatbots,
Locale locale)
Create a Chat in the given language
|
<any> |
makeChat(RobotContext context,
java.util.List<Chatbot> chatbots,
SpeechEngine speechEngine)
Create a Chat in the current language
|
<any> |
makeChat(RobotContext context,
java.util.List<Chatbot> chatbots,
SpeechEngine speechEngine,
Locale locale)
Create a Chat in the given language
|
<any> |
makeDiscuss(RobotContext context,
java.util.List<Topic> topics)
Create a Discussion in the current language.
|
<any> |
makeDiscuss(RobotContext context,
java.util.List<Topic> topics,
Locale locale)
Create a Discussion in the given language.
|
<any> |
makeListen(RobotContext context,
java.util.List<PhraseSet> phraseSets)
Create a listen action.
|
<any> |
makeListen(RobotContext context,
java.util.List<PhraseSet> phraseSets,
BodyLanguageOption bodyLanguageOption)
Create a listen action.
|
<any> |
makeListen(RobotContext context,
java.util.List<PhraseSet> phraseSets,
BodyLanguageOption bodyLanguageOption,
Locale locale)
Create a listen action.
|
<any> |
makeListen(RobotContext context,
java.util.List<PhraseSet> phraseSets,
ListenOptions listenOptions)
Create a listen action, using the specified Options.
|
<any> |
makePhraseSet(java.util.List<Phrase> phrases)
Create a phrase set from a set of phrases.
|
<any> |
makeQiChatbot(RobotContext context,
java.util.List<Topic> topics)
Create a Qichatbot in the current language.
|
<any> |
makeQiChatbot(RobotContext context,
java.util.List<Topic> topics,
Locale locale)
Create a Qichatbot in the given language.
|
<any> |
makeSay(RobotContext context,
Phrase phrase)
Create a say action.
|
<any> |
makeSay(RobotContext context,
Phrase phrase,
BodyLanguageOption bodyLanguageOption)
Create a say action.
|
<any> |
makeSay(RobotContext context,
Phrase phrase,
BodyLanguageOption bodyLanguageOption,
Locale locale)
Create a say action.
|
<any> |
makeSpeechEngine(RobotContext context)
Creates a SpeechEngine, that will create Say actions using the Conversation service
with the given context
|
<any> |
makeTopic(java.lang.String topicContent)
Create a new Topic object.
|
<any> |
status(RobotContext context)
Access Conversation related signals and properties for the given context via a ConversationStatus object
|
<any> makeSay(RobotContext context, Phrase phrase)
context
- The context to authorize the action to be effectively executed on a robot.phrase
- The phrase to say.<any> makeSay(RobotContext context, Phrase phrase, BodyLanguageOption bodyLanguageOption)
context
- The context to authorize the action to be effectively executed on a robot.phrase
- The phrase to say.bodyLanguageOption
- The body language policy to apply.
"neutral" policy: the robot chooses animations to perform accordingly to the spoken words and the syntactic structure of the phrase.<any> makeSay(RobotContext context, Phrase phrase, BodyLanguageOption bodyLanguageOption, Locale locale)
context
- The context to authorize the action to be effectively executed on a robot.phrase
- The phrase to say.bodyLanguageOption
- The body language policy to apply.
"neutral" policy: the robot chooses animations to perform accordingly to the spoken words and the syntactic structure of the phrase.locale
- The locale to be used to say the text.<any> makeListen(RobotContext context, java.util.List<PhraseSet> phraseSets)
context
- The context to authorize the action to be effectively executed on a robot.phraseSets
- The vector of phrase sets to detect.<any> makeListen(RobotContext context, java.util.List<PhraseSet> phraseSets, BodyLanguageOption bodyLanguageOption)
context
- The context to authorize the action to be effectively executed on a robot.phraseSets
- The vector of phrase sets to detect.bodyLanguageOption
- The body language policy to apply.
"neutral" policy: the robot nods and gesticulates to express that he is listening.
And a final head node when the robot has finished to listen.<any> makeListen(RobotContext context, java.util.List<PhraseSet> phraseSets, BodyLanguageOption bodyLanguageOption, Locale locale)
context
- The context to authorize the action to be effectively executed on a robot.phraseSets
- The vector of phrase sets to detect.bodyLanguageOption
- The body language policy to apply.
"neutral" policy: the robot nods and gesticulates to express that he is listening.
And a final head nod when the robot has finished to listen.locale
- The locale to be used to listen.<any> makeListen(RobotContext context, java.util.List<PhraseSet> phraseSets, ListenOptions listenOptions)
context
- The context to authorize the action to be effectively executed on a robot.phraseSets
- The vector of phrase sets to detect.listenOptions
- Optional data for the Listen action configuration<any> makePhraseSet(java.util.List<Phrase> phrases)
phrases
- Set of phrases to put in the resulting phrase set.<any> makeDiscuss(RobotContext context, java.util.List<Topic> topics)
context
- The context to authorize the action to be effectively executed on a robottopics
- The list of topics to use with the actionFuture on error when:
<any> makeDiscuss(RobotContext context, java.util.List<Topic> topics, Locale locale)
context
- The context to authorize the action to be effectively executed on a robot.topics
- The list of topics to use with the action.locale
- The language of the conversation.Future on error when:
<any> makeTopic(java.lang.String topicContent)
topicContent
- The content of the TopicFuture on error when:
<any> makeSpeechEngine(RobotContext context)
context
- The context to authorize the created Say actions to be effectively executed on a robot<any> makeChat(RobotContext context, java.util.List<Chatbot> chatbots)
context
- The context to authorize the action to be effectively executed on a robotchatbots
- The list of Chatbots to use with the action, ordered by priorityFuture on error when:
<any> makeChat(RobotContext context, java.util.List<Chatbot> chatbots, SpeechEngine speechEngine)
context
- The context to authorize the action to be effectively executed on a robotchatbots
- The list of Chatbots to use with the action, ordered by priorityspeechEngine
- The factory which is necessary to create the Say objects used
to make speak the robot during a reply.Future on error when:
<any> makeChat(RobotContext context, java.util.List<Chatbot> chatbots, Locale locale)
context
- The context to authorize the action to be effectively executed on a robotchatbots
- The list of Chatbots to use with the action, ordered by prioritylocale
- The language of the chatbotFuture on error when:
<any> makeChat(RobotContext context, java.util.List<Chatbot> chatbots, SpeechEngine speechEngine, Locale locale)
context
- The context to authorize the action to be effectively executed on a robotchatbots
- The list of Chatbots to use with the action, ordered by prioritylocale
- The language of the chatbotspeechEngine
- The factory which is necessary to create the Say objects used
to make speak the robot during a reply.Future on error when:
<any> makeChat(RobotContext context, java.util.List<Chatbot> chatbots, ChatOptions chatOptions)
context
- The context to authorize the action to be effectively executed on a robotchatbots
- The list of Chatbots to use with the action, ordered by prioritychatOptions
- Optional data for the Chat action configurationFuture on error when:
<any> makeQiChatbot(RobotContext context, java.util.List<Topic> topics)
context
- The context of the applicationtopics
- The list of topics to use within the QiChatbotFuture on error when:
<any> makeQiChatbot(RobotContext context, java.util.List<Topic> topics, Locale locale)
context
- The context of the applicationtopics
- The list of topics to use within the QiChatbotlocale
- The language of the conversation.Future on error when:
<any> status(RobotContext context)
context
- The context of the application