diff options
| author | Wanlin Du <[email protected]> | 2025-08-11 16:12:41 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-11 23:12:41 +0000 |
| commit | d9fb08c9da3d2e8c501ec9badb2e2bd79eb15b93 (patch) | |
| tree | 7d07e1586b736c1b6c44e28828aa29205af335ac /packages/core/src/tools/memoryTool.ts | |
| parent | f52d073dfbfa4d5091a74bf33ac1c66e51265247 (diff) | |
feat: migrate tools to use parametersJsonSchema. (#5330)
Diffstat (limited to 'packages/core/src/tools/memoryTool.ts')
| -rw-r--r-- | packages/core/src/tools/memoryTool.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/core/src/tools/memoryTool.ts b/packages/core/src/tools/memoryTool.ts index f3bf315b..f0c95b6a 100644 --- a/packages/core/src/tools/memoryTool.ts +++ b/packages/core/src/tools/memoryTool.ts @@ -11,7 +11,7 @@ import { ToolConfirmationOutcome, Icon, } from './tools.js'; -import { FunctionDeclaration, Type } from '@google/genai'; +import { FunctionDeclaration } from '@google/genai'; import * as fs from 'fs/promises'; import * as path from 'path'; import { homedir } from 'os'; @@ -24,11 +24,11 @@ const memoryToolSchemaData: FunctionDeclaration = { name: 'save_memory', description: 'Saves a specific piece of information or fact to your long-term memory. Use this when the user explicitly asks you to remember something, or when they state a clear, concise fact that seems important to retain for future interactions.', - parameters: { - type: Type.OBJECT, + parametersJsonSchema: { + type: 'object', properties: { fact: { - type: Type.STRING, + type: 'string', description: 'The specific fact or piece of information to remember. Should be a clear, self-contained statement.', }, @@ -123,7 +123,7 @@ export class MemoryTool 'Save Memory', memoryToolDescription, Icon.LightBulb, - memoryToolSchemaData.parameters as Record<string, unknown>, + memoryToolSchemaData.parametersJsonSchema as Record<string, unknown>, ); } |
