Spaces:
Sleeping
Sleeping
Update agi.py
Browse files
agi.py
CHANGED
@@ -345,7 +345,7 @@ def run_action(purpose, task, history, directory, action_name, action_input,repo
|
|
345 |
print(f"RUN: {action_name} ACTION_NAME: {action_input}")
|
346 |
return NAME_TO_FUNC[action_name](purpose, task, history, directory, action_input,repo_name,hf_token)
|
347 |
else:
|
348 |
-
history += "observation: The TOOL I tried to use returned an error
|
349 |
return "UPDATE-TASK", None, history, task
|
350 |
|
351 |
def run(purpose, directory, repo_name,hf_token,task=""):
|
|
|
345 |
print(f"RUN: {action_name} ACTION_NAME: {action_input}")
|
346 |
return NAME_TO_FUNC[action_name](purpose, task, history, directory, action_input,repo_name,hf_token)
|
347 |
else:
|
348 |
+
history += "observation: The TOOL I tried to use returned an error\n"
|
349 |
return "UPDATE-TASK", None, history, task
|
350 |
|
351 |
def run(purpose, directory, repo_name,hf_token,task=""):
|