feat(agent): 增强 Agent 配置,新增结构化字段与聊天功能支持
This commit is contained in:
1 parent
ac4262cd75
commit
c8ce77199e
183 files changed
+11690
-2300
No files matched your search
@@ -16,7 +16,7 @@ import {
|
||||
getWorkspaceShippingTask,
|
||||
listShippingChatAgents,
|
||||
listWorkspaceShippingTasks,
|
||||
SHIPPING_NOTICE_AGENT_NAME,
|
||||
SHIPPING_NOTICE_AGENT_CODE,
|
||||
workspaceShippingExportUrl,
|
||||
type ShippingCurrentStepProgress,
|
||||
type ShippingTaskDetail,
|
||||
@@ -159,7 +159,7 @@ const loadDetail = async (taskNo: string) => {
|
||||
const resolveChatAgent = async () => {
|
||||
try {
|
||||
const agents = await listShippingChatAgents();
|
||||
const found = agents.find((a) => a.name === SHIPPING_NOTICE_AGENT_NAME);
|
||||
const found = agents.find((a) => String(a.agent_code || '').trim() === SHIPPING_NOTICE_AGENT_CODE);
|
||||
if (found) chatAgentId.value = found.id;
|
||||
} catch {
|
||||
/* ignore */
|
||||
|
||||
Reference in new issue
Block a user