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.
This commit is contained in:
GuanMu 2025-11-05 11:16:23 +00:00
parent f263492c03
commit 4941366f39

View File

@ -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']