Spaces:
Runtime error
Runtime error
Commit
·
b970c9c
1
Parent(s):
e8f1b7a
Update RBotReloaded.py
Browse files- RBotReloaded.py +1 -0
RBotReloaded.py
CHANGED
@@ -343,6 +343,7 @@ AI:
|
|
343 |
print(f"Action Output: {res}")
|
344 |
observations.append(f"Action Output: {res}")
|
345 |
prompt = prompt + f"Action: {tool.name}({action_input})\nSYS:{res}\nAI:"
|
|
|
346 |
else:
|
347 |
final_response = "\n*Reasoning: ".join(observations) + f"\n{output}" if len(observations) > 0 else f"\n{output}"
|
348 |
print(f"Final Anser: {final_response}")
|
|
|
343 |
print(f"Action Output: {res}")
|
344 |
observations.append(f"Action Output: {res}")
|
345 |
prompt = prompt + f"Action: {tool.name}({action_input})\nSYS:{res}\nAI:"
|
346 |
+
final_response = res # just in case it reaches max iterations
|
347 |
else:
|
348 |
final_response = "\n*Reasoning: ".join(observations) + f"\n{output}" if len(observations) > 0 else f"\n{output}"
|
349 |
print(f"Final Anser: {final_response}")
|