feat(apps/chat): 新增 UI Schema 导航和路由导航工具
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
enum AgentStage { intent, execution }
|
||||
enum AgentStage { execution, memory }
|
||||
|
||||
AgentStage? stageFromStepName(String value) {
|
||||
switch (value) {
|
||||
case 'router':
|
||||
return AgentStage.intent;
|
||||
case 'worker':
|
||||
return AgentStage.execution;
|
||||
case 'memory':
|
||||
return AgentStage.memory;
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
@@ -13,8 +13,8 @@ AgentStage? stageFromStepName(String value) {
|
||||
|
||||
String stageLabel(AgentStage? stage) {
|
||||
return switch (stage) {
|
||||
AgentStage.intent => '意图识别中',
|
||||
AgentStage.execution => '任务执行中',
|
||||
AgentStage.memory => '记忆提取中',
|
||||
null => '任务处理中',
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user