feat : add java interpreter tool for code agent

This commit is contained in:
martin legrand 2025-04-11 12:46:12 +02:00
parent 92f9b93353
commit 9fe561085b

View File

@ -6,6 +6,7 @@ from sources.tools.C_Interpreter import CInterpreter
from sources.tools.GoInterpreter import GoInterpreter from sources.tools.GoInterpreter import GoInterpreter
from sources.tools.PyInterpreter import PyInterpreter from sources.tools.PyInterpreter import PyInterpreter
from sources.tools.BashInterpreter import BashInterpreter from sources.tools.BashInterpreter import BashInterpreter
from sources.tools.JavaInterpreter import JavaInterpreter
from sources.tools.fileFinder import FileFinder from sources.tools.fileFinder import FileFinder
class CoderAgent(Agent): class CoderAgent(Agent):
@ -19,6 +20,7 @@ class CoderAgent(Agent):
"python": PyInterpreter(), "python": PyInterpreter(),
"c": CInterpreter(), "c": CInterpreter(),
"go": GoInterpreter(), "go": GoInterpreter(),
"java": JavaInterpreter(),
"file_finder": FileFinder() "file_finder": FileFinder()
} }
self.work_dir = self.tools["file_finder"].get_work_dir() self.work_dir = self.tools["file_finder"].get_work_dir()