Skip to main content

RoleAssignmentAgent

An agent that generates role names based on the task prompt. Parameters:
  • role_assignment_prompt (TextPrompt): A prompt for the agent to generate role names.

init

run

Generate role names based on the input task prompt. Parameters:
  • task_prompt (Union[str, TextPrompt]): The prompt for the task based on which the roles are to be generated.
  • num_roles (int, optional): The number of roles to generate. (default: :obj:2)
Returns: Dict[str, str]: A dictionary mapping role names to their descriptions.