perf: 对话式运行状态归6类
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user