Files
ragflow/web/src/interfaces/database/flow.ts
balibabu 39ac3b1e60 feat: add custom edge (#1061)
### What problem does this PR solve?
feat: add custom edge
feat: add flow card
feat: add store for canvas
#918 

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
2024-06-05 10:46:06 +08:00

20 lines
360 B
TypeScript

export type DSLComponents = Record<string, IOperator>;
export interface DSL {
components: DSLComponents;
history: any[];
path: string[];
answer: any[];
}
export interface IOperator {
obj: IOperatorNode;
downstream: string[];
upstream: string[];
}
export interface IOperatorNode {
component_name: string;
params: Record<string, unknown>;
}