diff --git a/frontend-web/public/runtime-config.js b/frontend-web/public/runtime-config.js index 05e3fe6d..24cc025a 100644 --- a/frontend-web/public/runtime-config.js +++ b/frontend-web/public/runtime-config.js @@ -52,7 +52,7 @@ window.__CM_RUNTIME_CONFIG__ = { // 8BF 嵌入页专用任务系统接口。部署到其他系统时只需修改这一项, // 不影响原多智能体会商使用的任务详情接口。 - VITE_8BF_TASK_API_BASE_URL: "https://ch1.b.sit.4.cn/zl_consumer", + VITE_8BF_TASK_API_BASE_URL: "https://ch1.b.uat.4.cn/zl_consumer", // 8BF 会商页右上角「返回」按钮的跳转地址(当前窗口 window.location.href)。 // 部署后直接改 dist/runtime-config.js 即可,无需重新打包。留空则点击时提示未配置。 diff --git a/frontend-web/src/components/ai-elements/reasoning.tsx b/frontend-web/src/components/ai-elements/reasoning.tsx index 2845edf6..d9c63e2a 100644 --- a/frontend-web/src/components/ai-elements/reasoning.tsx +++ b/frontend-web/src/components/ai-elements/reasoning.tsx @@ -165,7 +165,7 @@ export const ReasoningTrigger = memo( export type ReasoningContentProps = ComponentProps< typeof CollapsibleContent > & { - children: string; + children: ReactNode; }; export const ReasoningContent = memo( @@ -178,7 +178,11 @@ export const ReasoningContent = memo( )} {...props} > - {children} + {typeof children === "string" ? ( + {children} + ) : ( + children + )} ), ); diff --git a/frontend-web/src/components/workspace/agents/agent-detail-panel.tsx b/frontend-web/src/components/workspace/agents/agent-detail-panel.tsx index a09653aa..c2c12ef1 100644 --- a/frontend-web/src/components/workspace/agents/agent-detail-panel.tsx +++ b/frontend-web/src/components/workspace/agents/agent-detail-panel.tsx @@ -2,6 +2,7 @@ import { BotIcon, + BriefcaseBusinessIcon, CheckIcon, DatabaseIcon, GlobeIcon, @@ -83,6 +84,7 @@ interface AgentDraft { /** 会商席位「技能识别强化」开关。 */ seatSkillDirective: boolean; knowledgeBaseIds: string[]; + jobResponsibilities: string; } function draftFromAgent(agent: Agent): AgentDraft { @@ -97,6 +99,7 @@ function draftFromAgent(agent: Agent): AgentDraft { templateName: agent.template_name ?? "", seatSkillDirective: agent.seat_skill_directive ?? false, knowledgeBaseIds: agent.llmwiki_knowledge_base_ids ?? [], + jobResponsibilities: agent.job_responsibilities ?? "", }; } @@ -338,6 +341,8 @@ export function AgentDetailPanel({ request.template_name = draft.templateName.trim(); if (draft.seatSkillDirective !== (agent.seat_skill_directive ?? false)) request.seat_skill_directive = draft.seatSkillDirective; + if (draft.jobResponsibilities.trim() !== (agent.job_responsibilities ?? "")) + request.job_responsibilities = draft.jobResponsibilities.trim(); if ( JSON.stringify(draft.knowledgeBaseIds) !== JSON.stringify(agent.llmwiki_knowledge_base_ids ?? []) @@ -720,6 +725,39 @@ export function AgentDetailPanel({ + {/* ── 岗位职责 ───────────────────────────────────────────────────── */} +
} + title="岗位职责" + > + {editing && draft ? ( +