Skip to content

Commit

Permalink
Fix user access bools
Browse files Browse the repository at this point in the history
  • Loading branch information
jlowin committed Apr 17, 2024
1 parent 01685d6 commit 900f463
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/control_flow/core/controller/instruction_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions src/control_flow/dx.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 900f463

Please sign in to comment.