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; } // 工具调用记录