perf: 对话式运行状态归6类

This commit is contained in:
rd
2025-08-27 12:04:23 +08:00
parent 4baf054d5c
commit 6e7bf7f9e4
6 changed files with 135 additions and 57 deletions

View File

@ -1,18 +1,25 @@
declare global {
namespace MESSAGE {
type TASK_STATUS = 'TeamRunStarted' | 'TeamRunResponseContent' | 'TeamRunCompleted';
type TASK_STATUS =
| 'RunStarted'
| 'RunResponseContent'
| 'RunCompleted'
| 'TeamRunStarted'
| 'TeamRunResponseContent'
| 'TeamRunCompleted';
interface Answer {
message: string;
node: string;
output: string;
run_id: string;
team_run_id: string;
status: TASK_STATUS;
extra_data: {
type: string,
data: Record<string, any>
},
team_session_state: any
type: string;
data: Record<string, any>;
};
team_session_state: any;
}
}
}