controller.controller_terminal¶
This file contains the Controller class which controls the flow of the conversation while the user interacts with the agent using python console.
Module Contents¶
Classes¶
This is the main class that controls the other components of the |
- class controller.controller_terminal.ControllerTerminal(agent_class: Type[moviebot.agent.agent.MovieBotAgent], agent_args: Dict[str, Any] = {}, user_id: str = 'terminal_user')¶
Bases:
moviebot.controller.controller.Controller,dialoguekit.platforms.TerminalPlatformThis is the main class that controls the other components of the IAI MovieBot. The controller executes the conversational agent.
- start() None¶
Starts the platform.
- display_user_prompt(user_options: moviebot.core.core_types.DialogueOptions) str¶
Displays a user prompt.
- Parameters:
user_options – The options to display to the user.
- Returns:
The user’s response.
- display_agent_utterance(user_id: str, utterance: dialoguekit.core.Utterance, user_options: moviebot.core.core_types.DialogueOptions = None) None¶
Displays an agent utterance.
- Parameters:
user_id – User ID.
utterance – An instance of Utterance.
user_options – The options to display to the user. Defaults to None.
- display_user_utterance(user_id: str, utterance: dialoguekit.core.Utterance) None¶
Displays a user utterance.
- Parameters:
user_id – User ID.
utterance – An instance of Utterance.