PromptTemplateGenerator
- task_prompt_template_dict (TaskPromptTemplateDict, optional): A dictionary of task prompt templates for each task type. If not provided, an empty dictionary is used as default.
init
get_prompt_from_key
task_type
and
:obj:key
.
Parameters:
- task_type (TaskType): The type of task.
- key (Any): The key used to generate the prompt.
get_system_prompt
task_type
and :obj:role_type
.
Parameters:
- task_type (TaskType): The type of task.
- role_type (RoleType): The type of role, either “USER” or “ASSISTANT”.
get_generate_tasks_prompt
- task_type (TaskType): The type of the task.
get_task_specify_prompt
- task_type (TaskType): The type of the task.