qisdk / com.aldebaran.qi.sdk.object.conversation / Chatbot

Chatbot

interface Chatbot

Object representing a Chatbot that can react in response to Phrases.

Since
3

Types

Async

interface Async

OnAutonomousReactionChangedListener

Listener for autonomousReaction property changed event

interface OnAutonomousReactionChangedListener

OnIsAvailableToReplyChangedListener

Listener for isAvailableToReply property changed event

interface OnIsAvailableToReplyChangedListener

OnMaxHypothesesPerUtteranceChangedListener

Listener for maxHypothesesPerUtterance property changed event

interface OnMaxHypothesesPerUtteranceChangedListener

Functions

acknowledgeHeard

Inform the Chatbot with the last phrase heard by the robot. It will be called anytime a reply not given by this Chatbot has been chosen to answer a phrase.

abstract fun acknowledgeHeard(phrase: Phrase!, locale: Locale!): Unit

acknowledgeSaid

Inform the Chatbot with the last phrase said by the robot. It will be called anytime a ChatbotReaction not given by this Chatbot has been chosen to answer a phrase.

abstract fun acknowledgeSaid(phrase: Phrase!, locale: Locale!): Unit

addOnAutonomousReactionChangedListener

Add a property changed listener for autonomousReaction

abstract fun addOnAutonomousReactionChangedListener(onAutonomousReactionChangedListener: OnAutonomousReactionChangedListener!): Unit

addOnIsAvailableToReplyChangedListener

Add a property changed listener for isAvailableToReply

abstract fun addOnIsAvailableToReplyChangedListener(onIsAvailableToReplyChangedListener: OnIsAvailableToReplyChangedListener!): Unit

addOnMaxHypothesesPerUtteranceChangedListener

Add a property changed listener for maxHypothesesPerUtterance

abstract fun addOnMaxHypothesesPerUtteranceChangedListener(onMaxHypothesesPerUtteranceChangedListener: OnMaxHypothesesPerUtteranceChangedListener!): Unit

async

abstract fun async(): Async!

getAutonomousReaction

Exposes the property autonomousReaction value

abstract fun getAutonomousReaction(): AutonomousReaction!

getIsAvailableToReply

Exposes the property isAvailableToReply value

abstract fun getIsAvailableToReply(): Boolean!

getMaxHypothesesPerUtterance

Exposes the property maxHypothesesPerUtterance value

abstract fun getMaxHypothesesPerUtterance(): Int!

removeAllOnAutonomousReactionChangedListeners

Remove all autonomousReaction changed listeners

abstract fun removeAllOnAutonomousReactionChangedListeners(): Unit

removeAllOnIsAvailableToReplyChangedListeners

Remove all isAvailableToReply changed listeners

abstract fun removeAllOnIsAvailableToReplyChangedListeners(): Unit

removeAllOnMaxHypothesesPerUtteranceChangedListeners

Remove all maxHypothesesPerUtterance changed listeners

abstract fun removeAllOnMaxHypothesesPerUtteranceChangedListeners(): Unit

removeOnAutonomousReactionChangedListener

Remove a property changed listener for autonomousReaction

abstract fun removeOnAutonomousReactionChangedListener(onAutonomousReactionChangedListener: OnAutonomousReactionChangedListener!): Unit

removeOnIsAvailableToReplyChangedListener

Remove a property changed listener for isAvailableToReply

abstract fun removeOnIsAvailableToReplyChangedListener(onIsAvailableToReplyChangedListener: OnIsAvailableToReplyChangedListener!): Unit

removeOnMaxHypothesesPerUtteranceChangedListener

Remove a property changed listener for maxHypothesesPerUtterance

abstract fun removeOnMaxHypothesesPerUtteranceChangedListener(onMaxHypothesesPerUtteranceChangedListener: OnMaxHypothesesPerUtteranceChangedListener!): Unit

replyTo

Produce a ReplyReaction based on a given input phrase. This phrase may be empty if the robot was not able to make out what was being said.

abstract fun replyTo(phrase: Phrase!, locale: Locale!): ReplyReaction!

setMaxHypothesesPerUtterance

Set the property maxHypothesesPerUtterance value

abstract fun setMaxHypothesesPerUtterance(maxHypothesesPerUtterance: Int!): Unit

setOnAutonomousReactionChangedListener

Set a property changed listener for autonomousReaction

abstract fun setOnAutonomousReactionChangedListener(onAutonomousReactionChangedListener: OnAutonomousReactionChangedListener!): Unit

setOnIsAvailableToReplyChangedListener

Set a property changed listener for isAvailableToReply

abstract fun setOnIsAvailableToReplyChangedListener(onIsAvailableToReplyChangedListener: OnIsAvailableToReplyChangedListener!): Unit

setOnMaxHypothesesPerUtteranceChangedListener

Set a property changed listener for maxHypothesesPerUtterance

abstract fun setOnMaxHypothesesPerUtteranceChangedListener(onMaxHypothesesPerUtteranceChangedListener: OnMaxHypothesesPerUtteranceChangedListener!): Unit

Inheritors

BaseChatbot

Parent class for ChatBot implementations.

abstract class BaseChatbot : AnyObjectWrapper, Chatbot

QiChatbot

Chatbot that can be used to make the robot able to chat with a human. The interaction will be based on the content given in the QiChatbot topics.

interface QiChatbot : Chatbot