Merge branch 'feat/plugins' of https://github.com/langgenius/dify into feat/plugins

This commit is contained in:
AkaraChen 2025-01-02 15:03:23 +08:00
commit 87ce813175
2 changed files with 4 additions and 1 deletions

View File

@ -102,7 +102,9 @@ const useConfig = (id: string, payload: AgentNodeType) => {
defaultRunInputData: {},
})
const allVarStrArr = (() => {
const arr = ['']
const arr = currentStrategy?.parameters.filter(item => item.type === 'string').map((item) => {
return formData[item.name]
}) || []
return arr
})()

View File

@ -395,6 +395,7 @@ export const canRunBySingle = (nodeType: BlockEnum) => {
|| nodeType === BlockEnum.Tool
|| nodeType === BlockEnum.ParameterExtractor
|| nodeType === BlockEnum.Iteration
|| nodeType === BlockEnum.Agent
}
type ConnectedSourceOrTargetNodesChange = {