feat: 补齐智能体对话思考和工具过程渲染

This commit is contained in:
brother7 committed 2026-10-12 23:21:54 +08:00
1 parent 7a7d1f7fd8
commit 70a3212bce
12 files changed
+517 -31

No files matched your search

+8
View File
@@ -98,6 +98,14 @@ export interface CloudInterrupt {
export interface CloudMessage {
id: number; role: 'user' | 'assistant' | 'system'; content: string; request_id: string;
run_id: string | null; created_at: string;
message_id?: string | null;
reasoning_content?: string;
tool_calls?: CloudToolCall[];
}
export interface CloudToolCall {
id: string; name: string; args: unknown; status: string;
tool_call_result?: { content: unknown } | null;
error_message?: string | null;
}
export interface CloudHistory {
thread_id: string; messages: CloudMessage[]; run: CloudRun | null; next_offset: number | null;