fix: 完善AI流式后台任务与模型配置

This commit is contained in:
LoveChengke committed 2026-11-07 22:25:39 +08:00
1 parent 0b35a58f07
commit cdb64c5499
30 files changed
+1732 -150

No files matched your search

+21 -1
View File
@@ -50,5 +50,25 @@ export interface AiConversationResult {
planId: string | null;
message: string;
steps: AiPlanStep[];
results: { action: string; label: string; data: unknown }[];
results: { action: string; label: string; data: unknown; operation?: AiOperation }[];
}
export interface AiTaskDto {
id: string;
state: string;
text: string;
events: AiAgentEvent[];
result?: AiConversationResult;
error?: string;
}
export type AiReasoningEffort = 'auto' | 'none' | 'low' | 'medium' | 'high' | 'max';
export interface AiModelInfo {
id: string;
name: string;
efforts: AiReasoningEffort[];
}
export type AiAgentEvent =
| { type: 'status'; message: string }
| { type: 'message'; text: string }
| { type: 'result'; result: AiConversationResult }
| { type: 'error'; code: string; message: string; retryable: boolean };