perf: 渲染逻辑处理
This commit is contained in:
@ -1,25 +1,22 @@
|
||||
declare global {
|
||||
namespace MESSAGE {
|
||||
type TASK_STATUS =
|
||||
| 'RunStarted'
|
||||
| 'RunResponseContent'
|
||||
| 'RunCompleted'
|
||||
| 'TeamRunStarted'
|
||||
| 'TeamRunResponseContent'
|
||||
| 'TeamRunCompleted';
|
||||
type RUN_TASK_STATUS = 'RunStarted' | 'RunResponseContent' | 'RunCompleted';
|
||||
type TEAM_RUN_TASK_STATUS = 'TeamRunStarted' | 'TeamRunResponseContent' | 'TeamRunCompleted';
|
||||
|
||||
interface Answer {
|
||||
message: string;
|
||||
node: string;
|
||||
output: string;
|
||||
run_id: string;
|
||||
team_run_id: string;
|
||||
status: TASK_STATUS;
|
||||
extra_data: {
|
||||
message?: string;
|
||||
node?: string;
|
||||
output?: string;
|
||||
run_id?: string;
|
||||
teamRunTaskId?: string;
|
||||
isCollapse?: boolean;
|
||||
status?: RUN_TASK_STATUS | TEAM_RUN_TASK_STATUS;
|
||||
runStatus?: RUN_TASK_STATUS;
|
||||
teamRunStatus?: TEAM_RUN_TASK_STATUS;
|
||||
extra_data?: {
|
||||
type: string;
|
||||
data: Record<string, any>;
|
||||
};
|
||||
team_session_state: any;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user