mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? feat: build react flow nodes and edges from mock data #918 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
19
web/src/interfaces/database/flow.ts
Normal file
19
web/src/interfaces/database/flow.ts
Normal file
@ -0,0 +1,19 @@
|
||||
export type DSLComponents = Record<string, Operator>;
|
||||
|
||||
export interface DSL {
|
||||
components: DSLComponents;
|
||||
history: any[];
|
||||
path: string[];
|
||||
answer: any[];
|
||||
}
|
||||
|
||||
export interface Operator {
|
||||
obj: OperatorNode;
|
||||
downstream: string[];
|
||||
upstream: string[];
|
||||
}
|
||||
|
||||
export interface OperatorNode {
|
||||
component_name: string;
|
||||
params: Record<string, unknown>;
|
||||
}
|
||||
Reference in New Issue
Block a user