Update app.py
Browse files
app.py
CHANGED
|
@@ -249,6 +249,7 @@ def call_main(purpose, task, history, action_input):
|
|
| 249 |
action_name, action_input = parse_action(line)
|
| 250 |
print(f'ACTION::{action_name} -- INPUT :: {action_input}')
|
| 251 |
history += "{}\n".format(line)
|
|
|
|
| 252 |
else:
|
| 253 |
#pass
|
| 254 |
history += "{}\n".format(line)
|
|
@@ -256,8 +257,9 @@ def call_main(purpose, task, history, action_input):
|
|
| 256 |
#return "UPDATE-TASK", None, history, task
|
| 257 |
if "VERBOSE":
|
| 258 |
print(history)
|
| 259 |
-
action_name="MAIN" if not action_name else action_name
|
| 260 |
-
|
|
|
|
| 261 |
|
| 262 |
|
| 263 |
def call_set_task(purpose, task, history, action_input):
|
|
|
|
| 249 |
action_name, action_input = parse_action(line)
|
| 250 |
print(f'ACTION::{action_name} -- INPUT :: {action_input}')
|
| 251 |
history += "{}\n".format(line)
|
| 252 |
+
return action_name, action_input,history,task
|
| 253 |
else:
|
| 254 |
#pass
|
| 255 |
history += "{}\n".format(line)
|
|
|
|
| 257 |
#return "UPDATE-TASK", None, history, task
|
| 258 |
if "VERBOSE":
|
| 259 |
print(history)
|
| 260 |
+
#action_name="MAIN" if not action_name else action_name
|
| 261 |
+
|
| 262 |
+
return "MAIN", None, history, task
|
| 263 |
|
| 264 |
|
| 265 |
def call_set_task(purpose, task, history, action_input):
|