feat: 添加环境变量示例,更新样式和依赖,增强全局状态管理

This commit is contained in:
2025-03-15 16:30:11 +08:00
parent e3e1a28462
commit bdafa2d083
11 changed files with 476 additions and 53 deletions

View File

@ -1 +1,30 @@
export type VisitorRole = "stu" | "tea" | "fans";
export type LocalMessage = {
id: string;
role: "bot" | "user";
message?: string;
};
export interface IWorkflowResponse {
task_id: string;
workflow_run_id: string;
data: IWorkflowResponseData;
}
export interface IWorkflowResponseData {
id: string;
workflow_id: string;
status: string;
outputs: IWorkflowInquiryOutputs;
error: null;
elapsed_time: number;
total_tokens: number;
total_steps: number;
created_at: number;
finished_at: number;
}
export interface IWorkflowInquiryOutputs {
message: string;
}