summaryrefslogtreecommitdiff
path: root/packages/core/src/tools/web-fetch.ts
diff options
context:
space:
mode:
authorjoshualitt <[email protected]>2025-08-19 13:55:06 -0700
committerGitHub <[email protected]>2025-08-19 20:55:06 +0000
commitb9cece767d1abccd06fb95cab759afd06cc2c1e1 (patch)
tree8c29a49bbaedd0a706bd2dba82eb4c587797ba7e /packages/core/src/tools/web-fetch.ts
parent2143731f6efdf1aafff38ec249caf01a8bcd163e (diff)
feat(core): Cleanup after migrating tools. (#6199)
Co-authored-by: Jacob Richman <[email protected]>
Diffstat (limited to 'packages/core/src/tools/web-fetch.ts')
-rw-r--r--packages/core/src/tools/web-fetch.ts10
1 files changed, 1 insertions, 9 deletions
diff --git a/packages/core/src/tools/web-fetch.ts b/packages/core/src/tools/web-fetch.ts
index 7c80650b..26e59efc 100644
--- a/packages/core/src/tools/web-fetch.ts
+++ b/packages/core/src/tools/web-fetch.ts
@@ -4,7 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/
-import { SchemaValidator } from '../utils/schemaValidator.js';
import {
BaseDeclarativeTool,
BaseToolInvocation,
@@ -339,16 +338,9 @@ export class WebFetchTool extends BaseDeclarativeTool<
}
}
- protected override validateToolParams(
+ protected override validateToolParamValues(
params: WebFetchToolParams,
): string | null {
- const errors = SchemaValidator.validate(
- this.schema.parametersJsonSchema,
- params,
- );
- if (errors) {
- return errors;
- }
if (!params.prompt || params.prompt.trim() === '') {
return "The 'prompt' parameter cannot be empty and must contain URL(s) and instructions.";
}