mirror of
https://github.com/n8n-io/n8n.git
synced 2024-09-19 22:37:31 -07: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:
parent
ceb7f074eb
commit
28d1a5d00d
|
@ -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',
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue