dialoguekit.participant.agent¶
Interface defining core agent functionality.
This abstract class is to be subclassed both for bots and human (“Wizard of Oz”) agents.
An agent instance needs to be connected with a DialogueConnector by invoking register_dialogue_connector().
Classes¶
Represents different types of agents (bot vs Wizard-of-Oz). |
|
Represents an agent. |
Module Contents¶
- class dialoguekit.participant.agent.AgentType¶
Bases:
enum.Enum
Represents different types of agents (bot vs Wizard-of-Oz).
- BOT = 0¶
- WOZ = 1¶
- class dialoguekit.participant.agent.Agent(id: str, agent_type: AgentType = AgentType.BOT, stop_intent: dialoguekit.core.intent.Intent = Intent('EXIT'))¶
Bases:
dialoguekit.participant.participant.Participant
Represents an agent.
- Parameters:
id – Agent ID.
agent_type – Agent type (default: BOT).
stop_intent – Label of the exit intent. Defaults to “EXIT”.
- property stop_intent: dialoguekit.core.intent.Intent¶
Returns the agent’s stop intent.
- abstract welcome() None ¶
Sends the agent’s welcome message.
- Raises:
NotImplementedError – If not implemented in derived class.
- abstract goodbye() None ¶
Sends the agent’s goodbye message.
- Raises:
NotImplementedError – If not implemented in derived class.