remove unnecessary checks in WriteFileChecks.getDescription (#5526)

This commit is contained in:
Jacob MacDonald 2025-08-04 12:12:33 -07:00 committed by GitHub
parent d1bfba1abb
commit 5caf23d627
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 29 additions and 3 deletions

View file

@ -131,8 +131,8 @@ export class WriteFileTool
}
getDescription(params: WriteFileToolParams): string {
if (!params.file_path || !params.content) {
return `Model did not provide valid parameters for write file tool`;
if (!params.file_path) {
return `Model did not provide valid parameters for write file tool, missing or empty "file_path"`;
}
const relativePath = makeRelative(
params.file_path,