Files
ragflow_python/web/src/interfaces/database/flow.ts

20 lines
360 B
TypeScript
Raw Normal View History

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>;
}