mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(AI Agent Node): Exclude tools agent from unsupported node versions (#9728)
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
This commit is contained in:
@@ -302,6 +302,9 @@ export class Agent implements INodeType {
|
||||
// Make Conversational Agent the default agent for versions 1.5 and below
|
||||
{
|
||||
...agentTypeProperty,
|
||||
options: agentTypeProperty?.options?.filter(
|
||||
(o) => 'value' in o && o.value !== 'toolsAgent',
|
||||
),
|
||||
displayOptions: { show: { '@version': [{ _cnd: { lte: 1.5 } }] } },
|
||||
default: 'conversationalAgent',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user