Agent Zero AI framework
refactor: move input tool and prompt into code execution plugin
linuztx9acbf2537e13
diff --git a/plugins/code_execution/extensions/python/system_prompt/_20_code_execution_prompt.py b/plugins/code_execution/extensions/python/system_prompt/_20_code_execution_prompt.pyindex 5917dc6df..afe11541f 100644--- a/plugins/code_execution/extensions/python/system_prompt/_20_code_execution_prompt.py+++ b/plugins/code_execution/extensions/python/system_prompt/_20_code_execution_prompt.py@@ -10,5 +10,5 @@ class CodeExecutionPrompt(Extension):loop_data: LoopData = LoopData(),**kwargs,):- prompt = self.agent.read_prompt("agent.system.tool.code_exe.md")- system_prompt.append(prompt)+ system_prompt.append(self.agent.read_prompt("agent.system.tool.code_exe.md"))+ system_prompt.append(self.agent.read_prompt("agent.system.tool.input.md"))diff --git a/prompts/agent.system.tool.input.md b/plugins/code_execution/prompts/agent.system.tool.input.mdsimilarity index 100%rename from prompts/agent.system.tool.input.mdrename to plugins/code_execution/prompts/agent.system.tool.input.mddiff --git a/tools/input.py b/plugins/code_execution/tools/input.pysimilarity index 93%rename from tools/input.pyrename to plugins/code_execution/tools/input.pyindex 6d91ba0cc..f8b73be29 100644--- a/tools/input.py+++ b/plugins/code_execution/tools/input.py@@ -1,4 +1,3 @@-from agent import Agent, UserMessagefrom helpers.tool import Tool, Responsefrom plugins.code_execution.tools.code_execution_tool import CodeExecution