Feat: support operator in/not in for metadata filter. #11376 #11378 (#11506)

### What problem does this PR solve?

Feat: support operator in/not in for metadata filter.  #11376 #11378
### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-11-25 14:25:32 +08:00
committed by GitHub
parent f5faf0c94f
commit 8c751d5afc
2 changed files with 14 additions and 0 deletions

View File

@ -133,6 +133,8 @@ export enum ComparisonOperator {
EndWith = 'end with',
Empty = 'empty',
NotEmpty = 'not empty',
In = 'in',
NotIn = 'not in',
}
export const SwitchOperatorOptions = [
@ -168,6 +170,16 @@ export const SwitchOperatorOptions = [
label: 'notEmpty',
icon: <CircleSlash2 className="size-4" />,
},
{
value: ComparisonOperator.In,
label: 'in',
icon: <CircleSlash2 className="size-4" />,
},
{
value: ComparisonOperator.NotIn,
label: 'notIn',
icon: <CircleSlash2 className="size-4" />,
},
];
export const AgentStructuredOutputField = 'structured';

View File

@ -1399,6 +1399,8 @@ Example: https://fsn1.your-objectstorage.com`,
endWith: 'Ends with',
empty: 'Is empty',
notEmpty: 'Not empty',
in: 'In',
notIn: 'Not in',
},
switchLogicOperatorOptions: {
and: 'AND',