AI.Agent.Coordinator.Tasks (fnord v0.9.29)
View SourceTask-specific behaviors for AI.Agent.Coordinator, including generating messages related to task management.
Summary
Functions
Return a formatted summary of a single task list, including its description, status, and the status of each individual task. The summary derives the list status from the current tasks when possible, reflecting the concrete state of work.
Appends a message to the conversation, providing an overview of the current
task lists. It lists the IDs of all task lists and instructs the agent to use
the tasks_show_list tool to view the tasks in more detail, including their
descriptions and statuses.
Return a list of task list IDs that have incomplete tasks. This function
filters the task lists associated with the conversation to identify those
that are still in progress and contain at least one task with an outcome of
:todo.
Appends a message to the conversation, reminding the agent to check their task lists for any incomplete tasks. It provides guidelines on how to manage tasks, including resolving completed tasks, addressing stale or irrelevant tasks, and ensuring that all tasks are concrete and actionable. The message also includes a list of task IDs that still have incomplete tasks.
Appends a message to the conversation, instructing the agent to use a task list for managing research. It emphasizes creating tasks for new lines of inquiry, resolving tasks with clear outcomes, and reviewing the task list before proceeding to the next steps.
Return a formatted Coordinator-scoped task summary for the given conversation PID.
Functions
Return a formatted summary of a single task list, including its description, status, and the status of each individual task. The summary derives the list status from the current tasks when possible, reflecting the concrete state of work.
@spec list_msg(t()) :: t()
Appends a message to the conversation, providing an overview of the current
task lists. It lists the IDs of all task lists and instructs the agent to use
the tasks_show_list tool to view the tasks in more detail, including their
descriptions and statuses.
@spec log_summary(t()) :: map()
@spec pending_lists(t()) :: list()
Return a list of task list IDs that have incomplete tasks. This function
filters the task lists associated with the conversation to identify those
that are still in progress and contain at least one task with an outcome of
:todo.
@spec penultimate_check_msg(t(), list()) :: t()
Appends a message to the conversation, reminding the agent to check their task lists for any incomplete tasks. It provides guidelines on how to manage tasks, including resolving completed tasks, addressing stale or irrelevant tasks, and ensuring that all tasks are concrete and actionable. The message also includes a list of task IDs that still have incomplete tasks.
@spec research_msg(t()) :: t()
Appends a message to the conversation, instructing the agent to use a task list for managing research. It emphasizes creating tasks for new lines of inquiry, resolving tasks with clear outcomes, and reviewing the task list before proceeding to the next steps.
Return a formatted Coordinator-scoped task summary for the given conversation PID.