mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-08 20:34:48 +08:00
### 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)
20 lines
360 B
TypeScript
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>;
|
|
}
|