qisdk / com.aldebaran.qi.sdk.object.conversation / Conversation / makeChat

makeChat

abstract fun makeChat(context: RobotContext!, chatbots: MutableList<Chatbot!>!): Chat!

Create a Chat in the current language

Parameters

context - RobotContext!: The context to authorize the action to be effectively executed on a robot

chatbots - MutableList<Chatbot!>!: The list of Chatbots to use with the action, ordered by priority

Exceptions

RuntimeException - The list of chatbots is empty

Return
Chat!: A Chat action

Since
3

abstract fun makeChat(context: RobotContext!, chatbots: MutableList<Chatbot!>!, speechEngine: SpeechEngine!): Chat!

Create a Chat in the current language

Parameters

context - RobotContext!: The context to authorize the action to be effectively executed on a robot

chatbots - MutableList<Chatbot!>!: The list of Chatbots to use with the action, ordered by priority

speechEngine - SpeechEngine!: The factory which is necessary to create the Say objects used to make speak the robot during a reply.

Exceptions

RuntimeException - The list of chatbots is empty

Return
Chat!: A Chat action

Since
3

abstract fun makeChat(context: RobotContext!, chatbots: MutableList<Chatbot!>!, locale: Locale!): Chat!

Create a Chat in the given language

Parameters

context - RobotContext!: The context to authorize the action to be effectively executed on a robot

chatbots - MutableList<Chatbot!>!: The list of Chatbots to use with the action, ordered by priority

locale - Locale!: The language of the chatbot

Exceptions

RuntimeException - The given locale is not available on the robot

Return
Chat!: A Chat action

Since
3

abstract fun makeChat(context: RobotContext!, chatbots: MutableList<Chatbot!>!, speechEngine: SpeechEngine!, locale: Locale!): Chat!

Create a Chat in the given language

Parameters

context - RobotContext!: The context to authorize the action to be effectively executed on a robot

chatbots - MutableList<Chatbot!>!: The list of Chatbots to use with the action, ordered by priority

locale - Locale!: The language of the chatbot

speechEngine - SpeechEngine!: The factory which is necessary to create the Say objects used to make speak the robot during a reply.

Exceptions

RuntimeException - The given locale is not available on the robot

Return
Chat!: A Chat action

Since
3

abstract fun makeChat(context: RobotContext!, chatbots: MutableList<Chatbot!>!, chatOptions: ChatOptions!): Chat!

Create a Chat in the current language, using the specified options.

Parameters

context - RobotContext!: The context to authorize the action to be effectively executed on a robot

chatbots - MutableList<Chatbot!>!: The list of Chatbots to use with the action, ordered by priority

chatOptions - ChatOptions!: Optional data for the Chat action configuration

Exceptions

RuntimeException - The list of chatbots is empty

Return
Chat!: A Chat action

Since
5