diff options
| author | Jaana Dogan <[email protected]> | 2025-04-18 11:06:30 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-04-18 11:06:30 -0700 |
| commit | e1fac4025606246e284b3e370d22100e8a25d652 (patch) | |
| tree | 549c3edd9a844756f97c219f5e8b52c2b171fd19 /packages/cli/src/tools/grep.tool.ts | |
| parent | 7cd3b95317c4d9263e514f33589cb359766d463b (diff) | |
Rename invalidParams to validateToolParams (#12)
Methods should be verbs. Fixes #4.
Diffstat (limited to 'packages/cli/src/tools/grep.tool.ts')
| -rw-r--r-- | packages/cli/src/tools/grep.tool.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/cli/src/tools/grep.tool.ts b/packages/cli/src/tools/grep.tool.ts index 1c334a09..7dca170f 100644 --- a/packages/cli/src/tools/grep.tool.ts +++ b/packages/cli/src/tools/grep.tool.ts @@ -127,7 +127,7 @@ export class GrepTool extends BaseTool<GrepToolParams, ToolResult> { * @param params Parameters to validate * @returns An error message string if invalid, null otherwise */ - invalidParams(params: GrepToolParams): string | null { + validateToolParams(params: GrepToolParams): string | null { if ( this.schema.parameters && !SchemaValidator.validate( @@ -161,7 +161,7 @@ export class GrepTool extends BaseTool<GrepToolParams, ToolResult> { * @returns Result of the grep search */ async execute(params: GrepToolParams): Promise<ToolResult> { - const validationError = this.invalidParams(params); + const validationError = this.validateToolParams(params); if (validationError) { console.error(`GrepTool Parameter Validation Failed: ${validationError}`); return { |
