stop_prompt

Define the prompt for stopping the conversation.

Attributes

DEFAULT_STOP_DEFINITION

Classes

StopPrompt

Initializes the prompt.

Module Contents

stop_prompt.DEFAULT_STOP_DEFINITION = 'You are a USER discussing with an ASSISTANT to get a recommendation meeting your REQUIREMENTS....
class 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.Prompt

Initializes 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.