dialoguekit.platforms.terminal_platform

Terminal platform.

This platform is used for getting user input and displaying agent responses in the terminal.

Classes

TerminalPlatform

Represents a terminal platform. It handles a single user.

Module Contents

class dialoguekit.platforms.terminal_platform.TerminalPlatform(agent_class: Type[dialoguekit.participant.Agent], user_id: str = 'terminal_user')

Bases: dialoguekit.platforms.Platform

Represents a terminal platform. It handles a single user.

Parameters:
  • agent_class – The class of the agent.

  • user_id – User ID. Defaults to “terminal_user”.

start() None

Starts the platform.

display_agent_utterance(user_id: str, utterance: dialoguekit.core.Utterance) None

Displays an agent utterance.

Parameters:
  • user_id – User ID.

  • utterance – An instance of Utterance.

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.