fix(AI Agent Node): Prevent fallback input to be added in version <2.1 (#17094)

This commit is contained in:
Benjamin Schroth 2025-07-08 12:39:47 +02:00 committed by GitHub
parent 3610748913
commit 1a4e4c5e72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -114,7 +114,7 @@ export class AgentV2 implements INodeType {
((hasOutputParser, needsFallback) => {
${getInputs.toString()};
return getInputs(hasOutputParser, needsFallback)
})($parameter.hasOutputParser === undefined || $parameter.hasOutputParser === true, $parameter.needsFallback === undefined || $parameter.needsFallback === true)
})($parameter.hasOutputParser === undefined || $parameter.hasOutputParser === true, $parameter.needsFallback !== undefined && $parameter.needsFallback === true)
}}`,
outputs: [NodeConnectionTypes.Main],
properties: [
@ -148,11 +148,6 @@ export class AgentV2 implements INodeType {
type: 'boolean',
default: false,
noDataExpression: true,
displayOptions: {
show: {
'@version': [{ _cnd: { gte: 2.1 } }],
},
},
},
{
displayName: `Connect an <a data-action='openSelectiveNodeCreator' data-action-parameter-connectiontype='${NodeConnectionTypes.AiOutputParser}'>output parser</a> on the canvas to specify the output format you require`,