Feat : basic web search for casual agent

This commit is contained in:
martin legrand
2025-03-02 18:08:58 +01:00
parent 9a281c364a
commit c2c1c7f09f
8 changed files with 131 additions and 47 deletions
+5 -1
View File
@@ -38,9 +38,10 @@ class Tools():
self.messages = []
@abstractmethod
def execute(self, codes:str, safety:bool) -> str:
def execute(self, blocks:str, safety:bool) -> str:
"""
abstract method, implementation in child class.
Execute the tool.
"""
pass
@@ -48,6 +49,7 @@ class Tools():
def execution_failure_check(self, output:str) -> bool:
"""
abstract method, implementation in child class.
Check if the execution failed.
"""
pass
@@ -55,6 +57,8 @@ class Tools():
def interpreter_feedback(self, output:str) -> str:
"""
abstract method, implementation in child class.
Provide feedback to the AI from the tool.
For exemple the output of a python code or web search.
"""
pass