TaskSpecifyAgent
- model (BaseModelBackend, optional): The model backend to use for generating responses. (default: :obj:
OpenAIModel
withGPT_4O_MINI
) - task_type (TaskType, optional): The type of task for which to generate a prompt. (default: :obj:
TaskType.AI_SOCIETY
) - task_specify_prompt (Union[str, TextPrompt], optional): The prompt for specifying the task. (default: :obj:
None
) - word_limit (int, optional): The word limit for the task prompt. (default: :obj:
50
) - output_language (str, optional): The language to be output by the agent. (default: :obj:
None
)
init
run
- task_prompt (Union[str, TextPrompt]): The original task prompt.
- meta_dict (Dict[str, Any], optional): A dictionary containing additional information to include in the prompt. (default: :obj:
None
)
TaskPlannerAgent
- model (BaseModelBackend, optional): The model backend to use for generating responses. (default: :obj:
OpenAIModel
withGPT_4O_MINI
) - output_language (str, optional): The language to be output by the agent. (default: :obj:
None
)
init
run
- task_prompt (Union[str, TextPrompt]): The prompt for the task to be divided into subtasks.
TaskCreationAgent
TaskPlannerAgent
,
it’s still a task planner, but it has more context information
like last task and incomplete task list. Modified from
BabyAGI <https://github.com/yoheinakajima/babyagi>
_.
Parameters:
- role_name (str): The role name of the Agent to create the task.
- objective (Union[str, TextPrompt]): The objective of the Agent to perform the task.
- model (BaseModelBackend, optional): The LLM backend to use for generating responses. (default: :obj:
OpenAIModel
withGPT_4O_MINI
) - output_language (str, optional): The language to be output by the agent. (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
) - max_task_num (int, optional): The maximum number of planned tasks in one round. (default: :obj:3)
init
run
- task_list (List[str]): The completed or in-progress tasks which should not overlap with new created tasks.
TaskPrioritizationAgent
BabyAGI <https://github.com/yoheinakajima/babyagi>
_.
Parameters:
- objective (Union[str, TextPrompt]): The objective of the Agent to perform the task.
- model (BaseModelBackend, optional): The LLM backend to use for generating responses. (default: :obj:
OpenAIModel
withGPT_4O_MINI
) - output_language (str, optional): The language to be output by the agent. (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
)
init
run
- task_list (List[str]): The unprioritized tasks of agent.