assistant_role_name (str): The name of the role played by the assistant.
user_role_name (str): The name of the role played by the user.
task_prompt (str, optional): A prompt for the task to be performed. (default: :obj:"")
task_type (TaskType, optional): The type of task to perform. (default: :obj:TaskType.AI_SOCIETY)
max_task_history (int): The maximum number of previous tasks information to include in the task agent. (default: :obj:10)
assistant_agent_kwargs (Dict, optional): Additional arguments to pass to the assistant agent. (default: :obj:None)
task_specify_agent_kwargs (Dict, optional): Additional arguments to pass to the task specify agent. (default: :obj:None)
task_creation_agent_kwargs (Dict, optional): Additional arguments to pass to the task creation agent. (default: :obj:None)
task_prioritization_agent_kwargs (Dict, optional): Additional arguments to pass to the task prioritization agent. (default: :obj:None)
sys_msg_generator_kwargs (Dict, optional): Additional arguments to pass to the system message generator. (default: :obj:None)
extend_task_specify_meta_dict (Dict, optional): A dict to extend the task specify meta dict with. (default: :obj:None)
output_language (str, optional): The language to be output by the agents. (default: :obj:None)
message_window_size (int, optional): The maximum number of previous messages to include in the context window. If None, no windowing is performed. (default: :obj:None)
Use a task specify agent to generate a specified task prompt.
Generated specified task prompt will be used to replace original
task prompt. If there is no task specify agent, specified task
prompt will not be generated.Parameters:
assistant_role_name (str): The name of the role played by the assistant.
user_role_name (str): The name of the role played by the user.
task_specify_agent_kwargs (Dict, optional): Additional arguments to pass to the task specify agent.
extend_task_specify_meta_dict (Dict, optional): A dict to extend the task specify meta dict with.
output_language (str, optional): The language to be output by the agents.
Initialize assistant and user agents with their system messages.Parameters:
init_assistant_sys_msg (BaseMessage): Assistant agent’s initial system message.
assistant_agent_kwargs (Dict, optional): Additional arguments to pass to the assistant agent.
task_creation_agent_kwargs (Dict, optional): Additional arguments to pass to the task creation agent.
task_prioritization_agent_kwargs (Dict, optional): Additional arguments to pass to the task prioritization agent.
output_language (str, optional): The language to be output by the agents.
message_window_size (int, optional): The maximum number of previous messages to include in the context window. If None, no windowing is performed. (default: :obj:None)
Returns:ChatAgentResponse: it contains the resulting assistant message,
whether the assistant agent terminated the conversation,
and any additional assistant information.