feat: 添加 file_delete 工具支持

This commit is contained in:
XiaoFeng
2025-12-25 16:17:31 +08:00
parent 6c5d470bad
commit 5ea5ddba6e
2 changed files with 49 additions and 0 deletions

View File

@ -192,6 +192,7 @@ export interface ToolResultResponse {
export type ToolName =
| 'file_read'
| 'file_write'
| 'file_delete'
| 'file_list'
| 'syntax_check'
| 'simulation'
@ -208,6 +209,12 @@ export interface FileWriteArgs {
content: string;
}
/** file_delete 工具参数 */
export interface FileDeleteArgs {
/** 要删除的文件路径 */
path: string;
}
/** file_list 工具参数 */
export interface FileListArgs {
path?: string;
@ -237,6 +244,7 @@ export interface WaveformSummaryArgs {
export type ToolArgs =
| FileReadArgs
| FileWriteArgs
| FileDeleteArgs
| FileListArgs
| SyntaxCheckArgs
| SimulationArgs