refactor(类型): 添加工具使用和图片搜索相关类型
- Message 接口添加 usedTools 和 searchImages 字段 - 新增 SearchImageData 接口定义搜索图片数据结构
This commit is contained in:
parent
97d89f44ac
commit
f0cc0eb996
@ -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;
|
||||
}
|
||||
|
||||
// 工具调用记录
|
||||
|
||||
Loading…
Reference in New Issue
Block a user