summaryrefslogtreecommitdiff
path: root/packages/core/src/tools/write-file.ts
diff options
context:
space:
mode:
authorRichie Foreman <[email protected]>2025-08-13 16:17:38 -0400
committerGitHub <[email protected]>2025-08-13 20:17:38 +0000
commita90aeb3d8fd05fc6303ce9ef4e957c2e19cbe9c4 (patch)
tree78423cea4d8f3a3f44d0e182b46fdf0a4bc45de0 /packages/core/src/tools/write-file.ts
parent8fae227e8d53b962f8b7db3abff51906fad1d181 (diff)
chore(build/compiler): Enable a bunch of strict TS compiler options. (#6138)
Diffstat (limited to 'packages/core/src/tools/write-file.ts')
-rw-r--r--packages/core/src/tools/write-file.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/core/src/tools/write-file.ts b/packages/core/src/tools/write-file.ts
index fa1e1301..01c92865 100644
--- a/packages/core/src/tools/write-file.ts
+++ b/packages/core/src/tools/write-file.ts
@@ -102,11 +102,11 @@ export class WriteFileTool
);
}
- toolLocations(params: WriteFileToolParams): ToolLocation[] {
+ override toolLocations(params: WriteFileToolParams): ToolLocation[] {
return [{ path: params.file_path }];
}
- validateToolParams(params: WriteFileToolParams): string | null {
+ override validateToolParams(params: WriteFileToolParams): string | null {
const errors = SchemaValidator.validate(
this.schema.parametersJsonSchema,
params,
@@ -144,7 +144,7 @@ export class WriteFileTool
return null;
}
- getDescription(params: WriteFileToolParams): string {
+ override getDescription(params: WriteFileToolParams): string {
if (!params.file_path) {
return `Model did not provide valid parameters for write file tool, missing or empty "file_path"`;
}
@@ -158,7 +158,7 @@ export class WriteFileTool
/**
* Handles the confirmation prompt for the WriteFile tool.
*/
- async shouldConfirmExecute(
+ override async shouldConfirmExecute(
params: WriteFileToolParams,
abortSignal: AbortSignal,
): Promise<ToolCallConfirmationDetails | false> {