feat: add memory bank prompt, rename read_file and edit_file, improve basic prompt

This commit is contained in:
2025-02-13 01:14:58 +01:00
parent 01932be82a
commit 5b972c5c9f
5 changed files with 100 additions and 28 deletions

View File

@@ -8,13 +8,13 @@ local M = {}
-- We can store a table of available tools here
M.available_tools = {
{
name = "readFile",
usage = "Retrieve the contents of a file. Provide { tool='readFile', path='...' }",
name = "read_file",
usage = "Retrieve the contents of a file. Provide { tool='read_file', path='...' }",
explanation = "Use this to read file content directly from the disk."
},
{
name = "editFile",
usage = "Overwrite an entire file's content. Provide { tool='editFile', path='...', content='...' }, Allways include the whole file content",
name = "edit_file",
usage = "Overwrite an entire file's content. Provide { tool='edit_file', path='...', content='...' }, Allways include the whole file content",
explanation = "Use this when you want to replace a file with new content."
},
{
@@ -30,8 +30,8 @@ M.available_tools = {
}
M.tools_by_name = {
readFile = read_file_tool,
editFile = edit_file_tool,
read_file = read_file_tool,
edit_file = edit_file_tool,
replace_in_file = replace_in_file_tool,
executeCommand = execute_command_tool
}