fix: edit_file is an edit tool
This commit is contained in:
@@ -1498,6 +1498,7 @@ end
|
||||
---@param tool_use AvanteLLMToolUse
|
||||
function M.is_edit_tool_use(tool_use)
|
||||
return tool_use.name == "replace_in_file"
|
||||
or tool_use.name == "edit_file"
|
||||
or (tool_use.name == "str_replace_editor" and tool_use.input.command == "str_replace")
|
||||
or (tool_use.name == "str_replace_based_edit_tool" and tool_use.input.command == "str_replace")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user