fix: change function name python to run_python (#1901)
This commit is contained in:
@@ -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.",
|
description = "Run python code in current project scope. Can't use it to read files or modify files.",
|
||||||
param = {
|
param = {
|
||||||
type = "table",
|
type = "table",
|
||||||
@@ -1097,6 +1097,9 @@ M._tools = {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
--- compatibility alias for old calls & tests
|
||||||
|
M.run_python = M.python
|
||||||
|
|
||||||
---@param tools AvanteLLMTool[]
|
---@param tools AvanteLLMTool[]
|
||||||
---@param tool_use AvanteLLMToolUse
|
---@param tool_use AvanteLLMToolUse
|
||||||
---@param on_log? fun(tool_id: string, tool_name: string, log: string, state: AvanteLLMToolUseState): nil
|
---@param on_log? fun(tool_id: string, tool_name: string, log: string, state: AvanteLLMToolUseState): nil
|
||||||
|
|||||||
Reference in New Issue
Block a user