refactor(xt-chat): 修改枚举值和接口名称

-将 EnumTeamRunStatus 枚举中的部分值进行重命名
- 更新了 UseChatHandlerOptions 接口中的方法名称
- 这些更改统一了命名风格,提高了代码的可读性和维护性
This commit is contained in:
林志军
2025-09-10 20:58:38 +08:00
parent f14e95aa1f
commit 67f59f0b83

View File

@ -14,12 +14,12 @@ export interface UseChatHandlerReturn {
senderRef?: Ref<null> senderRef?: Ref<null>
} }
export enum EnumTeamRunStatus { export enum EnumTeamRunStatus {
TeamRunStarted = 'TeamRunStarted', // 对话开始 TeamRunStarted = 'TaskRunStarted', // 对话开始
TeamRunResponseContent = 'TeamRunResponseContent', // 对话执行中 TeamRunResponseContent = 'TeamRunResponseContent', // 对话执行中
TeamRunCompleted = 'TeamRunCompleted', // 对话完成 TeamRunCompleted = 'TaskRunCompleted', // 对话完成
RunStarted = 'RunStarted', // l2开始运行 RunStarted = 'L2Started', // l2开始运行
RunResponseContent = 'RunResponseContent', // l2执行中 RunResponseContent = 'L2RunContent', // l2执行中
RunCompleted = 'RunCompleted', // l2完成 RunCompleted = 'L2Completed', // l2完成
} }
export interface UseChatHandlerOptions { export interface UseChatHandlerOptions {
initSse: (inputInfo: CHAT.TInputInfo) => Promise<void>; // 明确 initSse 带参 initSse: (inputInfo: CHAT.TInputInfo) => Promise<void>; // 明确 initSse 带参
@ -54,4 +54,4 @@ export const FILE_TYPE_MAP = {
[FILE_TYPE.topic_only]: '排期&选题', [FILE_TYPE.topic_only]: '排期&选题',
[FILE_TYPE.topic_with_content]: '选题&内容稿件', [FILE_TYPE.topic_with_content]: '选题&内容稿件',
[FILE_TYPE.content_only]: '内容稿件', [FILE_TYPE.content_only]: '内容稿件',
} }