From 0dc8ee4771aa237c6c1415a1e4cb419d288d1ad8 Mon Sep 17 00:00:00 2001 From: Roman Gurov <44749519+rgurov@users.noreply.github.com> Date: Thu, 1 May 2025 20:29:06 +0300 Subject: [PATCH] fix: change function name python to run_python (#1901) --- lua/avante/llm_tools/init.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lua/avante/llm_tools/init.lua b/lua/avante/llm_tools/init.lua index f3b9bec..9ff979f 100644 --- a/lua/avante/llm_tools/init.lua +++ b/lua/avante/llm_tools/init.lua @@ -630,7 +630,7 @@ M._tools = { }, }, { - name = "python", + name = "run_python", description = "Run python code in current project scope. Can't use it to read files or modify files.", param = { type = "table", @@ -1097,6 +1097,9 @@ M._tools = { }, } +--- compatibility alias for old calls & tests +M.run_python = M.python + ---@param tools AvanteLLMTool[] ---@param tool_use AvanteLLMToolUse ---@param on_log? fun(tool_id: string, tool_name: string, log: string, state: AvanteLLMToolUseState): nil