Initial project setup

This commit is contained in:
martin legrand
2025-04-01 18:49:37 +02:00
parent 698ed78acc
commit 56b5db7df3
13 changed files with 211 additions and 38 deletions
+3 -1
View File
@@ -133,6 +133,8 @@ class Agent():
Show the answer in a pretty way.
Show code blocks and their respective feedback by inserting them in the ressponse.
"""
if self.last_answer is None:
return
lines = self.last_answer.split("\n")
for line in lines:
if "block:" in line:
@@ -190,5 +192,5 @@ class Agent():
self.memory.push('user', feedback)
if save_path != None:
tool.save_block(blocks, save_path)
self.blocks_result = list(reversed(self.blocks_result))
self.blocks_result = self.blocks_result
return True, feedback