feat(core): Cleanup after migrating tools. (#6199)

Co-authored-by: Jacob Richman <jacob314@gmail.com>
This commit is contained in:
joshualitt
2025-08-19 13:55:06 -07:00
committed by GitHub
parent 2143731f6e
commit b9cece767d
17 changed files with 86 additions and 132 deletions

View File

@@ -13,7 +13,6 @@ import {
ToolResult,
Kind,
} from '../tools/tools.js';
import { Schema, Type } from '@google/genai';
import {
ModifiableDeclarativeTool,
ModifyContext,
@@ -74,9 +73,9 @@ export class MockTool extends BaseDeclarativeTool<
name = 'mock-tool',
displayName?: string,
description = 'A mock tool for testing.',
params: Schema = {
type: Type.OBJECT,
properties: { param: { type: Type.STRING } },
params = {
type: 'object',
properties: { param: { type: 'string' } },
},
) {
super(name, displayName ?? name, description, Kind.Other, params);