feat: llm node support tools

This commit is contained in:
zxhlyh 2025-12-24 14:15:55 +08:00
parent f439e081b5
commit a7859de625
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,29 @@
import { memo } from 'react'
import { useTranslation } from 'react-i18next'
import Tooltip from '@/app/components/base/tooltip'
import Field from '@/app/components/workflow/nodes/_base/components/field'
const i18nPrefix = 'workflow.nodes.llm'
const Tools = () => {
const { t } = useTranslation()
return (
<Field
title={t(`${i18nPrefix}.tools.title`)}
tooltip={t('appDebug.vision.description')!}
operations={(
<Tooltip
popupContent={t('appDebug.vision.onlySupportVisionModelTip')!}
>
</Tooltip>
)}
>
<div>
<div>Tools</div>
</div>
</Field>
)
}
export default memo(Tools)

View File

@ -560,6 +560,9 @@ const translation = {
saveSchema: 'Please finish editing the current field before saving the schema', saveSchema: 'Please finish editing the current field before saving the schema',
}, },
}, },
tools: {
title: 'Tools',
},
}, },
knowledgeRetrieval: { knowledgeRetrieval: {
queryVariable: 'Query Variable', queryVariable: 'Query Variable',