mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-07-05 13:47:59 +08:00
chore: remove unused builtin tools
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
import type { MCPTool } from '@renderer/types'
|
||||
|
||||
import { thinkTool } from './think'
|
||||
|
||||
export const BUILT_IN_TOOLS: MCPTool[] = [thinkTool]
|
||||
|
||||
export function getBuiltInTool(name: string): MCPTool | undefined {
|
||||
return BUILT_IN_TOOLS.find((tool) => tool.name === name || tool.id === name)
|
||||
}
|
||||
|
||||
export function isBuiltInTool(tool: MCPTool): boolean {
|
||||
return tool.isBuiltIn === true
|
||||
}
|
||||
|
||||
export * from './think'
|
||||
@@ -1,24 +0,0 @@
|
||||
import type { MCPTool } from '@renderer/types'
|
||||
|
||||
export const thinkTool: MCPTool = {
|
||||
id: 'dummy-server-think',
|
||||
serverId: 'dummy-server',
|
||||
serverName: 'Dummy Server',
|
||||
name: 'think',
|
||||
description:
|
||||
'Use the tool to think about something. It will not obtain new information or make any changes to the repository, but just log the thought. Use it when complex reasoning or brainstorming is needed. For example, if you explore the repo and discover the source of a bug, call this tool to brainstorm several unique ways of fixing the bug, and assess which change(s) are likely to be simplest and most effective. Alternatively, if you receive some test results, call this tool to brainstorm ways to fix the failing tests.',
|
||||
isBuiltIn: true,
|
||||
type: 'mcp',
|
||||
inputSchema: {
|
||||
type: 'object',
|
||||
title: 'Think Tool Input',
|
||||
description: 'Input for the think tool',
|
||||
required: ['thought'],
|
||||
properties: {
|
||||
thought: {
|
||||
type: 'string',
|
||||
description: 'Your thoughts.'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user