diff options
Diffstat (limited to 'packages/core/src/tools/write-file.ts')
| -rw-r--r-- | packages/core/src/tools/write-file.ts | 8 |
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> { |
