feat: 对话式首页接口对接,逻辑调整

This commit is contained in:
rd
2025-08-26 17:59:42 +08:00
parent 6211c78c07
commit a125f6f092
12 changed files with 320 additions and 178 deletions

View File

@ -1,7 +1,9 @@
declare global {
namespace CHAT {
export type TInputInfo = {
type TInputInfo = {
message: string;
};
}
}
export default {};

19
src/types/message.ts Normal file
View 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 {};