Add modify_file tool
Removed file_insert_lines, file_replace_lines
This commit is contained in:
@@ -8,12 +8,11 @@ import (
|
||||
)
|
||||
|
||||
var AvailableTools map[string]api.ToolSpec = map[string]api.ToolSpec{
|
||||
"dir_tree": toolbox.DirTreeTool,
|
||||
"read_dir": toolbox.ReadDirTool,
|
||||
"read_file": toolbox.ReadFileTool,
|
||||
"write_file": toolbox.WriteFileTool,
|
||||
"file_insert_lines": toolbox.FileInsertLinesTool,
|
||||
"file_replace_lines": toolbox.FileReplaceLinesTool,
|
||||
"dir_tree": toolbox.DirTreeTool,
|
||||
"read_dir": toolbox.ReadDirTool,
|
||||
"read_file": toolbox.ReadFileTool,
|
||||
"modify_file": toolbox.ModifyFile,
|
||||
"write_file": toolbox.WriteFileTool,
|
||||
}
|
||||
|
||||
func ExecuteToolCalls(calls []api.ToolCall, available []api.ToolSpec) ([]api.ToolResult, error) {
|
||||
|
||||
Reference in New Issue
Block a user