mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-10-21 13:00:12 +00:00

### What problem does this PR solve? Feat: Connect conditional operators to other operators #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
30 lines
559 B
TypeScript
30 lines
559 B
TypeScript
export interface ICategorizeItem {
|
|
name: string;
|
|
description?: string;
|
|
examples?: { value: string }[];
|
|
index: number;
|
|
}
|
|
|
|
export type ICategorizeItemResult = Record<
|
|
string,
|
|
Omit<ICategorizeItem, 'name' | 'examples'> & { examples: string[] }
|
|
>;
|
|
|
|
export interface ISwitchCondition {
|
|
items: ISwitchItem[];
|
|
logical_operator: string;
|
|
to: string[];
|
|
}
|
|
|
|
export interface ISwitchItem {
|
|
cpn_id: string;
|
|
operator: string;
|
|
value: string;
|
|
}
|
|
|
|
export interface ISwitchForm {
|
|
conditions: ISwitchCondition[];
|
|
end_cpn_ids: string[];
|
|
no: string;
|
|
}
|