diff options
| author | joshualitt <[email protected]> | 2025-08-19 13:55:06 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-19 20:55:06 +0000 |
| commit | b9cece767d1abccd06fb95cab759afd06cc2c1e1 (patch) | |
| tree | 8c29a49bbaedd0a706bd2dba82eb4c587797ba7e /packages/core/src/tools/memoryTool.ts | |
| parent | 2143731f6efdf1aafff38ec249caf01a8bcd163e (diff) | |
feat(core): Cleanup after migrating tools. (#6199)
Co-authored-by: Jacob Richman <[email protected]>
Diffstat (limited to 'packages/core/src/tools/memoryTool.ts')
| -rw-r--r-- | packages/core/src/tools/memoryTool.ts | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/packages/core/src/tools/memoryTool.ts b/packages/core/src/tools/memoryTool.ts index 73282d60..74efc25e 100644 --- a/packages/core/src/tools/memoryTool.ts +++ b/packages/core/src/tools/memoryTool.ts @@ -20,7 +20,6 @@ import * as Diff from 'diff'; import { DEFAULT_DIFF_OPTIONS } from './diffOptions.js'; import { tildeifyPath } from '../utils/paths.js'; import { ModifiableDeclarativeTool, ModifyContext } from './modifiable-tool.js'; -import { SchemaValidator } from '../utils/schemaValidator.js'; const memoryToolSchemaData: FunctionDeclaration = { name: 'save_memory', @@ -294,15 +293,9 @@ export class MemoryTool ); } - override validateToolParams(params: SaveMemoryParams): string | null { - const errors = SchemaValidator.validate( - this.schema.parametersJsonSchema, - params, - ); - if (errors) { - return errors; - } - + protected override validateToolParamValues( + params: SaveMemoryParams, + ): string | null { if (params.fact.trim() === '') { return 'Parameter "fact" must be a non-empty string.'; } |
