refactor: move input tool and prompt into code execution plugin
linuztx committed
Mar 8, 2026 at 23:45 UTC
9acbf2537e136b659e6f835777d6e0e8a0e02566
3 files changed
+2
-3
plugins/code_execution/extensions/python/system_prompt/_20_code_execution_prompt.py
+2
-2
@@ -10,5 +10,5 @@ class CodeExecutionPrompt(Extension):
10
loop_data: LoopData = LoopData(),
11
**kwargs,
12
):
13
- prompt = self.agent.read_prompt("agent.system.tool.code_exe.md")
14
- system_prompt.append(prompt)
13
+ system_prompt.append(self.agent.read_prompt("agent.system.tool.code_exe.md"))
14
+ system_prompt.append(self.agent.read_prompt("agent.system.tool.input.md"))
plugins/code_execution/prompts/agent.system.tool.input.md
renamed
plugins/code_execution/tools/input.py
renamed
-1
@@ -1,4 +1,3 @@
1
-from agent import Agent, UserMessage
1
from helpers.tool import Tool, Response
2
from plugins.code_execution.tools.code_execution_tool import CodeExecution
3