Replace list_files/analyze_project with more explicit list_files_top_level, list_files_recursive, and extract_source_code_definitions_top_level

This commit is contained in:
Saoud Rizwan
2024-07-31 09:50:07 -04:00
parent 3fc300273d
commit 71a9ed1d1e
5 changed files with 171 additions and 111 deletions

View File

@@ -45,7 +45,13 @@ export type ClaudeSay =
| "command_output"
export interface ClaudeSayTool {
tool: "editedExistingFile" | "newFileCreated" | "readFile" | "listFiles" | "analyzeProject"
tool:
| "editedExistingFile"
| "newFileCreated"
| "readFile"
| "listFilesTopLevel"
| "listFilesRecursive"
| "extractSourceCodeDefinitionsTopLevel"
path?: string
diff?: string
content?: string

View File

@@ -3,8 +3,9 @@ import { Anthropic } from "@anthropic-ai/sdk"
export type ToolName =
| "write_to_file"
| "read_file"
| "analyze_project"
| "list_files"
| "list_files_top_level"
| "list_files_recursive"
| "extract_source_code_definitions_top_level"
| "execute_command"
| "ask_followup_question"
| "attempt_completion"