mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 03:12:15 +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
|
// Make Conversational Agent the default agent for versions 1.5 and below
|
||||||
{
|
{
|
||||||
...agentTypeProperty,
|
...agentTypeProperty,
|
||||||
|
options: agentTypeProperty?.options?.filter(
|
||||||
|
(o) => 'value' in o && o.value !== 'toolsAgent',
|
||||||
|
),
|
||||||
displayOptions: { show: { '@version': [{ _cnd: { lte: 1.5 } }] } },
|
displayOptions: { show: { '@version': [{ _cnd: { lte: 1.5 } }] } },
|
||||||
default: 'conversationalAgent',
|
default: 'conversationalAgent',
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user