feat: 对话式首页接口对接,逻辑调整
This commit is contained in:
@ -1,7 +1,9 @@
|
||||
declare global {
|
||||
namespace CHAT {
|
||||
export type TInputInfo = {
|
||||
type TInputInfo = {
|
||||
message: string;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export default {};
|
||||
|
||||
19
src/types/message.ts
Normal file
19
src/types/message.ts
Normal file
@ -0,0 +1,19 @@
|
||||
declare global {
|
||||
namespace MESSAGE {
|
||||
type TASK_STATUS = 'TeamRunStarted' | 'TeamRunResponseContent' | 'TeamRunCompleted';
|
||||
|
||||
interface Answer {
|
||||
message: string;
|
||||
node: string;
|
||||
output: string;
|
||||
run_id: string;
|
||||
status: TASK_STATUS;
|
||||
extra_data: {
|
||||
type: string,
|
||||
data: Record<string, any>
|
||||
},
|
||||
team_session_state: any
|
||||
}
|
||||
}
|
||||
}
|
||||
export default {};
|
||||
Reference in New Issue
Block a user