From e20a73c83af4bedde90dd5bfe1205522b50e27a4 Mon Sep 17 00:00:00 2001 From: RockChinQ Date: Thu, 27 Aug 2026 15:14:53 +0800 Subject: [PATCH] style(agents): distinguish agent capabilities from events --- .../components/ProcessorTypeDiagram.tsx | 59 ++++++++++++++----- web/src/i18n/locales/en-US.ts | 2 +- web/src/i18n/locales/ja-JP.ts | 2 +- web/src/i18n/locales/zh-Hans.ts | 2 +- 4 files changed, 46 insertions(+), 19 deletions(-) diff --git a/web/src/app/home/agents/components/ProcessorTypeDiagram.tsx b/web/src/app/home/agents/components/ProcessorTypeDiagram.tsx index 3e83ac235..e28ddc6fa 100644 --- a/web/src/app/home/agents/components/ProcessorTypeDiagram.tsx +++ b/web/src/app/home/agents/components/ProcessorTypeDiagram.tsx @@ -22,6 +22,40 @@ function ArrowMarker({ id }: { id: string }) { ); } +function CapabilityIcon({ + kind, + x, + y, +}: { + kind: 'model' | 'tool' | 'action'; + x: number; + y: number; +}) { + return ( + + {kind === 'model' && ( + <> + + + + )} + {kind === 'tool' && ( + + )} + {kind === 'action' && ( + + )} + + ); +} + function AgentDiagram() { const { t } = useTranslation(); const arrowId = `agent-arrow-${useId().replace(/:/g, '')}`; @@ -31,9 +65,9 @@ function AgentDiagram() { { label: t('agents.diagramFeedback'), y: 395 }, ]; const outputs = [ - { label: t('agents.diagramModel'), y: 155 }, - { label: t('agents.diagramTools'), y: 275 }, - { label: t('agents.diagramActions'), y: 395 }, + { kind: 'model' as const, label: t('agents.diagramModel'), y: 155 }, + { kind: 'tool' as const, label: t('agents.diagramTools'), y: 275 }, + { kind: 'action' as const, label: t('agents.diagramActions'), y: 395 }, ]; return ( @@ -121,7 +155,7 @@ function AgentDiagram() { fontSize="13" fontWeight="600" > - {t('agents.diagramAgentInitiated')} + {t('agents.diagramAgentCanUse')} {outputs.map((item) => ( @@ -129,10 +163,10 @@ function AgentDiagram() { - +