diff --git a/src/controlflow/orchestration/prompt_templates/tasks.jinja b/src/controlflow/orchestration/prompt_templates/tasks.jinja index 780712a..d194f3c 100644 --- a/src/controlflow/orchestration/prompt_templates/tasks.jinja +++ b/src/controlflow/orchestration/prompt_templates/tasks.jinja @@ -1,9 +1,10 @@ {% macro render_task_hierarchy(task_info, indent='') -%} -{{ indent }}- {{ task_info.task.id }} ({{ task_info.task.status.value }}){% if task_info['is_active'] %} -(active){% endif %} +{{ indent }}- {{ task_info.task.id }} ({{ task_info.task.status.value }}){% if task_info['is_active'] %} (active){% +endif %} {%- if task_info.children %} + {% for child in task_info.children %} -{{ render_task_hierarchy(child, indent + ' ') }} +{{ render_task_hierarchy(child, indent + '-') }} {%- endfor %} {%- endif %} {%- endmacro -%} @@ -21,6 +22,8 @@ The following tasks are active: {{ task.get_prompt() }} + + {% endfor %} Only agents assigned to a task are able to mark the task as complete. You must