实现Debug EML实时Trace调试链路

This commit is contained in:
andy
2026-07-12 14:59:03 +08:00
parent eee37315a0
commit 8d8fae670a
20 changed files with 1571 additions and 76 deletions

View File

@@ -35,10 +35,30 @@ export interface DebugEmlSuperAgentRunResult {
superagent_run_id: string | null
superagent_raw_answer: string | null
superagent_parsed_json: unknown | null
superagent_trace_events: DebugEmlSuperAgentTraceEvent[]
warnings: string[]
status: string | null
}
export interface DebugEmlSuperAgentTraceEvent {
event: string | null
run_id: string | null
message_id: string | null
tool_call_id: string | null
tool_name: string | null
text: string | null
input_summary: string | null
output_summary: string | null
status: string | null
ts: string | null
}
export interface DebugEmlStageEvent {
debug_run_id: string | null
status: string | null
safe_summary: string | null
}
export interface DebugEmlUploadedMediaResult {
media_type: string | null
file_name: string | null
@@ -53,3 +73,9 @@ export interface DebugEmlErrorResponse {
error_code?: DebugEmlErrorCode
message?: string
}
export interface DebugEmlStreamHandlers {
onStage?: (stage: DebugEmlStageEvent) => void
onTrace?: (trace: DebugEmlSuperAgentTraceEvent) => void
onResult?: (result: DebugEmlSuperAgentRunResult) => void
}