From 900f46336a4c718da56260e7b6d0f4dc6ef432b3 Mon Sep 17 00:00:00 2001 From: Jeremiah Lowin <153965+jlowin@users.noreply.github.com> Date: Tue, 16 Apr 2024 22:54:44 -0400 Subject: [PATCH] Fix user access bools --- src/control_flow/core/controller/instruction_template.py | 4 +++- src/control_flow/dx.py | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/control_flow/core/controller/instruction_template.py b/src/control_flow/core/controller/instruction_template.py index 5e8f260b..26930bca 100644 --- a/src/control_flow/core/controller/instruction_template.py +++ b/src/control_flow/core/controller/instruction_template.py @@ -171,7 +171,9 @@ class TasksTemplate(Template): The following tasks are pending. You and any other agents are responsible for completing them and will continue to be invoked until you mark each - task as either "completed" or "failed" with the appropriate tool. + task as either "completed" or "failed" with the appropriate tool. The + result of a complete task should be an artifact that fully represents + the completed objective. Note: Task IDs are assigned for identification purposes only and will be resused after tasks complete. diff --git a/src/control_flow/dx.py b/src/control_flow/dx.py index 5b576768..79817606 100644 --- a/src/control_flow/dx.py +++ b/src/control_flow/dx.py @@ -169,7 +169,7 @@ def run_ai( Task[cast]( objective=t, context=context or {}, - user_access=user_access, + user_access=user_access or False, tools=tools or [], ) for t in tasks @@ -179,7 +179,7 @@ def run_ai( # create agent if agents is None: - agents = [Agent(user_access=user_access)] + agents = [Agent(user_access=user_access or False)] # create Controller from control_flow.core.controller.controller import Controller