diff --git a/web/app/components/workflow/nodes/_base/components/agent-strategy-selector.tsx b/web/app/components/workflow/nodes/_base/components/agent-strategy-selector.tsx index 8976289149..ed506c63f3 100644 --- a/web/app/components/workflow/nodes/_base/components/agent-strategy-selector.tsx +++ b/web/app/components/workflow/nodes/_base/components/agent-strategy-selector.tsx @@ -48,6 +48,7 @@ export const AgentStrategySelector = (props: AgentStrategySelectorProps) => { }, [query, list.data]) // TODO: should be replaced by real data const isExternalInstalled = true + const { t } = useTranslation() return
setOpen(o => !o)}> @@ -64,7 +65,7 @@ export const AgentStrategySelector = (props: AgentStrategySelectorProps) => {

- {value?.agent_strategy_name || 'Select agentic strategy'} + {value?.agent_strategy_name || t('workflow.nodes.agent.strategy.selectTip')}

{value &&
e.stopPropagation()} size={'small'} /> diff --git a/web/app/components/workflow/nodes/agent/node.tsx b/web/app/components/workflow/nodes/agent/node.tsx index dbc968de93..448bb1f58b 100644 --- a/web/app/components/workflow/nodes/agent/node.tsx +++ b/web/app/components/workflow/nodes/agent/node.tsx @@ -6,18 +6,20 @@ import ModelSelector from '@/app/components/header/account-setting/model-provide import { Group, GroupLabel } from '../_base/components/group' import { ToolIcon } from './components/tool-icon' import useConfig from './use-config' +import { useTranslation } from 'react-i18next' const AgentNode: FC> = (props) => { const { inputs } = useConfig(props.id, props.data) + const { t } = useTranslation() return
{inputs.agent_strategy_name ? {inputs.agent_strategy_name} - : } + : } - Model + {t('workflow.nodes.agent.model')} } > > = (props) => { /> - Toolbox + {t('workflow.nodes.agent.toolbox')} }>
diff --git a/web/i18n/en-US/workflow.ts b/web/i18n/en-US/workflow.ts index 2566dc67e5..e24d8eee45 100644 --- a/web/i18n/en-US/workflow.ts +++ b/web/i18n/en-US/workflow.ts @@ -699,8 +699,10 @@ const translation = { }, agent: { strategy: { + label: 'Agentic Strategy', configureTip: 'Please configure agentic strategy.', configureTipDesc: 'After configuring the agentic strategy, this node will automatically load the remaining configurations. The strategy will affect the mechanism of multi-step tool reasoning. ', + selectTip: 'Select agentic strategy', }, learnMore: 'Learn more', pluginNotInstalled: 'This plugin is not installed', @@ -710,6 +712,9 @@ const translation = { install: 'Install', installing: 'Installing', }, + model: 'model', + toolbox: 'toolbox', + strategyNotSet: 'Agentic strategy Not Set', }, }, tracing: { diff --git a/web/i18n/zh-Hans/workflow.ts b/web/i18n/zh-Hans/workflow.ts index f2e1cf4881..7f2ecc994d 100644 --- a/web/i18n/zh-Hans/workflow.ts +++ b/web/i18n/zh-Hans/workflow.ts @@ -699,8 +699,10 @@ const translation = { }, agent: { strategy: { + label: 'Agent 策略', configureTip: '请配置 Agent 策略。', configureTipDesc: '配置完成后,此节点将自动加载剩余配置。策略将影响多步工具推理的机制。', + selectTip: '选择 Agent 策略', }, learnMore: '了解更多', pluginNotInstalled: '插件未安装', @@ -710,6 +712,9 @@ const translation = { install: '安装', installing: '安装中', }, + model: '模型', + toolbox: '工具箱', + strategyNotSet: '代理策略未设置', }, }, tracing: {