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