fix: change function name python to run_python (#1901)

This commit is contained in:
Roman Gurov
2025-05-01 20:29:06 +03:00
committed by GitHub
parent d3094d6c9f
commit 0dc8ee4771

View File

@@ -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