Feat : Save exec block to file, More programming language supported in tools

This commit is contained in:
martin legrand
2025-02-24 09:59:28 +01:00
parent 72989b0811
commit 35022765f7
9 changed files with 318 additions and 45 deletions
+3 -1
View File
@@ -103,7 +103,7 @@ class Agent():
for name, tool in self._tools.items():
feedback = ""
blocks = tool.load_exec_block(answer)
blocks, save_path = tool.load_exec_block(answer)
if blocks != None:
output = tool.execute(blocks)
@@ -115,4 +115,6 @@ class Agent():
return False, feedback
if blocks == None:
return True, feedback
if save_path != None:
tool.save_block(blocks, save_path)
return True, feedback