This commit is contained in:
Saifeddine ALOUI 2024-05-21 00:29:59 +02:00
parent fd4fdd997a
commit b3291c5878

View File

@ -3456,9 +3456,11 @@ The AI should respond in this format using data from actions_list:
final_output += "\n" + out final_output += "\n" + out
if len(function_calls)>0: if len(function_calls)>0:
outputs = self.execute_function_calls(function_calls,function_definitions) outputs = self.execute_function_calls(function_calls,function_definitions)
final_output += "\n" + "\n".join([str(o) for o in outputs]) final_output += "\n" + "\n".join([str(o) for o in outputs])
out += "\n!@>function calls results:\n" + "\n".join([str(o) for o in outputs]) out += "\n!@>function calls results:\n" + "\n".join([str(o) for o in outputs])
prompt += out +"\n"+ "!@>"+self.personality.name+":" prompt += out +"\n"+ "!@>"+self.personality.name+":"
else:
final_output = out
return final_output return final_output
#Helper method to convert outputs path to url #Helper method to convert outputs path to url