From b9cece767d1abccd06fb95cab759afd06cc2c1e1 Mon Sep 17 00:00:00 2001 From: joshualitt Date: Tue, 19 Aug 2025 13:55:06 -0700 Subject: feat(core): Cleanup after migrating tools. (#6199) Co-authored-by: Jacob Richman --- packages/core/src/tools/web-search.ts | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'packages/core/src/tools/web-search.ts') diff --git a/packages/core/src/tools/web-search.ts b/packages/core/src/tools/web-search.ts index 3ecaf21e..71038d5e 100644 --- a/packages/core/src/tools/web-search.ts +++ b/packages/core/src/tools/web-search.ts @@ -12,7 +12,6 @@ import { ToolInvocation, ToolResult, } from './tools.js'; -import { SchemaValidator } from '../utils/schemaValidator.js'; import { getErrorMessage } from '../utils/errors.js'; import { Config } from '../config/config.js'; @@ -192,17 +191,9 @@ export class WebSearchTool extends BaseDeclarativeTool< * @param params The parameters to validate * @returns An error message string if validation fails, null if valid */ - protected override validateToolParams( + protected override validateToolParamValues( params: WebSearchToolParams, ): string | null { - const errors = SchemaValidator.validate( - this.schema.parametersJsonSchema, - params, - ); - if (errors) { - return errors; - } - if (!params.query || params.query.trim() === '') { return "The 'query' parameter cannot be empty."; } -- cgit v1.2.3