mirror of
https://github.com/langgenius/dify.git
synced 2026-04-13 14:48:11 +08:00
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:
parent
f263492c03
commit
4941366f39
@ -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']
|
||||
|
||||
Loading…
Reference in New Issue
Block a user