From f0cc0eb99623e09e54a4ba30abe4d1ca5c291745 Mon Sep 17 00:00:00 2001 From: gaoziman <2942894660@qq.com> Date: Mon, 22 Dec 2025 12:21:47 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E7=B1=BB=E5=9E=8B):=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=B7=A5=E5=85=B7=E4=BD=BF=E7=94=A8=E5=92=8C=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E6=90=9C=E7=B4=A2=E7=9B=B8=E5=85=B3=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Message 接口添加 usedTools 和 searchImages 字段 - 新增 SearchImageData 接口定义搜索图片数据结构 --- src/types/index.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/types/index.ts b/src/types/index.ts index 4c08214..9bec5c5 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -32,6 +32,21 @@ export interface Message { toolCalls?: ToolCall[]; /** 工具调用结果 */ toolResults?: ToolResult[]; + /** 使用的工具名称列表 */ + usedTools?: string[]; + /** 搜索到的图片(图片搜索工具结果) */ + searchImages?: SearchImageData[]; +} + +// 搜索图片数据类型 +export interface SearchImageData { + title: string; + imageUrl: string; + width: number; + height: number; + score: string; + position: number; + sourceUrl?: string; } // 工具调用记录