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/tools.ts | |
| parent | 7cd3b95317c4d9263e514f33589cb359766d463b (diff) | |
Rename invalidParams to validateToolParams (#12)
Methods should be verbs. Fixes #4.
Diffstat (limited to 'packages/cli/src/tools/tools.ts')
| -rw-r--r-- | packages/cli/src/tools/tools.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/cli/src/tools/tools.ts b/packages/cli/src/tools/tools.ts index 9df90261..dcbd71ac 100644 --- a/packages/cli/src/tools/tools.ts +++ b/packages/cli/src/tools/tools.ts @@ -33,7 +33,7 @@ export interface Tool< * @param params Parameters to validate * @returns An error message string if invalid, null otherwise */ - invalidParams(params: TParams): string | null; + validateToolParams(params: TParams): string | null; /** * Gets a pre-execution description of the tool operation @@ -99,7 +99,7 @@ export abstract class BaseTool< * @param params Parameters to validate * @returns An error message string if invalid, null otherwise */ - invalidParams(params: TParams): string | null { + validateToolParams(params: TParams): string | null { // Implementation would typically use a JSON Schema validator // This is a placeholder that should be implemented by derived classes return null; |
