llm_interface¶
Interface for the LLM model.
Classes¶
Initializes the LLM interface. |
Module Contents¶
- class llm_interface.LLMInterface(default_response: str = None)¶
Bases:
abc.ABC
Initializes the LLM interface.
- Parameters:
default_response – Default response to be used if the LLM fails to generate a response.
- abstract generate_response(prompt: usersimcrs.simulator.llm.prompt.Prompt) dialoguekit.core.Utterance ¶
Generates an utterance given a prompt.
- Parameters:
prompt – Prompt for generating the utterance.
- Raises:
NotImplementedError – If the method is not implemented in subclass.
- Returns:
Utterance.