fix: selectively enable text editor tool (#1747)
This commit is contained in:
@@ -10,6 +10,8 @@ M.name = "create"
|
||||
|
||||
M.description = "The create tool allows you to create a new file with specified content."
|
||||
|
||||
function M.enabled() return require("avante.config").behaviour.enable_claude_text_editor_tool_mode end
|
||||
|
||||
---@type AvanteLLMToolParam
|
||||
M.param = {
|
||||
type = "table",
|
||||
|
||||
@@ -10,6 +10,8 @@ M.name = "insert"
|
||||
|
||||
M.description = "The insert tool allows you to insert text at a specific location in a file."
|
||||
|
||||
function M.enabled() return require("avante.config").behaviour.enable_claude_text_editor_tool_mode end
|
||||
|
||||
---@type AvanteLLMToolParam
|
||||
M.param = {
|
||||
type = "table",
|
||||
|
||||
@@ -12,6 +12,8 @@ M.name = "str_replace"
|
||||
M.description =
|
||||
"The str_replace tool allows you to replace a specific string in a file with a new string. This is used for making precise edits."
|
||||
|
||||
function M.enabled() return require("avante.config").behaviour.enable_claude_text_editor_tool_mode end
|
||||
|
||||
---@type AvanteLLMToolParam
|
||||
M.param = {
|
||||
type = "table",
|
||||
|
||||
@@ -10,6 +10,8 @@ M.name = "undo_edit"
|
||||
|
||||
M.description = "The undo_edit tool allows you to revert the last edit made to a file."
|
||||
|
||||
function M.enabled() return require("avante.config").behaviour.enable_claude_text_editor_tool_mode end
|
||||
|
||||
---@type AvanteLLMToolParam
|
||||
M.param = {
|
||||
type = "table",
|
||||
|
||||
Reference in New Issue
Block a user