Skip to content

Commit

Permalink
fix(AI Agent Node): Exclude tools agent from unsupported node versions (
Browse files Browse the repository at this point in the history
#9728)

Signed-off-by: Oleg Ivaniv <[email protected]>
  • Loading branch information
OlegIvaniv authored Jun 13, 2024
1 parent ceb7f07 commit 28d1a5d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
Expand Down

0 comments on commit 28d1a5d

Please sign in to comment.