mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 16:57:46 +00:00
feat(core): Cleanup after migrating tools. (#6199)
Co-authored-by: Jacob Richman <jacob314@gmail.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user