Use predicted length as input for detecting omissions

This commit is contained in:
Matt Rubens
2024-12-18 23:34:03 -05:00
parent a9775c0eb3
commit ef9c468f17
7 changed files with 178 additions and 19 deletions

View File

@@ -30,6 +30,7 @@ export const toolParamNames = [
"command",
"path",
"content",
"line_count",
"regex",
"file_pattern",
"recursive",
@@ -71,7 +72,7 @@ export interface ReadFileToolUse extends ToolUse {
export interface WriteToFileToolUse extends ToolUse {
name: "write_to_file"
params: Partial<Pick<Record<ToolParamName, string>, "path" | "content">>
params: Partial<Pick<Record<ToolParamName, string>, "path" | "content" | "line_count">>
}
export interface SearchFilesToolUse extends ToolUse {