usersimcrs.simulator.llm.prompt.stop_prompt
Define the prompt for stopping the conversation.
Attributes
Classes
Initializes the prompt. |
Module Contents
- usersimcrs.simulator.llm.prompt.stop_prompt.DEFAULT_STOP_DEFINITION = "As a USER interacting with an ASSISTANT to receive a recommendation, analyze the conversation...
- class usersimcrs.simulator.llm.prompt.stop_prompt.StopPrompt(information_need: usersimcrs.core.information_need.InformationNeed, item_type: str, prompt_definition: str = DEFAULT_STOP_DEFINITION, persona: usersimcrs.user_modeling.persona.Persona = None)
Bases:
usersimcrs.simulator.llm.prompt.prompt.PromptInitializes the prompt.
- Parameters:
information_need – The information need of the user.
item_type – The type of the item to be recommended.
prompt_definition – The definition of the task to be performed. Defaults to DEFAULT_STOP_DEFINITION.
persona – The persona of the user. Defaults to None.
- property prompt_text: str
Prompt for the user simulator.
- build_new_prompt() str
Builds the initial prompt without any context.
- Returns:
Initial prompt with task definition, requirements, and persona.