From 4941366f39904c63abee6e8f9aeccd7b8981a169 Mon Sep 17 00:00:00 2001 From: GuanMu Date: Wed, 5 Nov 2025 11:16:23 +0000 Subject: [PATCH] feat: add support for integer variable type in condition operators - Extended the getConditionOperators function to include support for the integer variable type, allowing for additional comparison options in agent tool conditions. --- web/app/components/workflow/nodes/agent/utils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/web/app/components/workflow/nodes/agent/utils.ts b/web/app/components/workflow/nodes/agent/utils.ts index 53e656e54c..6945216853 100644 --- a/web/app/components/workflow/nodes/agent/utils.ts +++ b/web/app/components/workflow/nodes/agent/utils.ts @@ -12,6 +12,7 @@ const COMPARISON_OPERATOR_WITHOUT_VALUE = new Set([ export const getConditionOperators = (varType?: VarType): string[] => { switch (varType) { case VarType.number: + case VarType.integer: return ['=', '≠', '>', '<', '≥', '≤'] case VarType.boolean: return ['is', 'is not']