2025-02-24 17:19:06 +08:00
|
|
|
import { RAGFlowNodeType } from '@/interfaces/database/flow';
|
|
|
|
|
import { FormInstance } from 'antd';
|
|
|
|
|
|
|
|
|
|
export interface IOperatorForm {
|
|
|
|
|
onValuesChange?(changedValues: any, values: any): void;
|
|
|
|
|
form?: FormInstance;
|
|
|
|
|
node?: RAGFlowNodeType;
|
|
|
|
|
nodeId?: string;
|
|
|
|
|
}
|
|
|
|
|
|
2025-02-25 16:57:46 +08:00
|
|
|
export interface INextOperatorForm {
|
|
|
|
|
node?: RAGFlowNodeType;
|
|
|
|
|
nodeId?: string;
|
|
|
|
|
}
|
|
|
|
|
|
2025-02-24 17:19:06 +08:00
|
|
|
export interface IGenerateParameter {
|
|
|
|
|
id?: string;
|
|
|
|
|
key: string;
|
|
|
|
|
component_id?: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface IInvokeVariable extends IGenerateParameter {
|
|
|
|
|
value?: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type IPosition = { top: number; right: number; idx: number };
|
|
|
|
|
|
|
|
|
|
export interface BeginQuery {
|
|
|
|
|
key: string;
|
|
|
|
|
type: string;
|
|
|
|
|
value: string;
|
|
|
|
|
optional: boolean;
|
|
|
|
|
name: string;
|
|
|
|
|
options: (number | string | boolean)[];
|
|
|
|
|
}
|
2025-08-01 12:38:29 +08:00
|
|
|
|
|
|
|
|
export type IInputs = {
|
|
|
|
|
avatar: string;
|
|
|
|
|
title: string;
|
|
|
|
|
inputs: Record<string, BeginQuery>;
|
2025-08-08 17:45:37 +08:00
|
|
|
prologue: string;
|
2025-08-28 11:43:40 +08:00
|
|
|
mode: string;
|
2025-08-01 12:38:29 +08:00
|
|
|
};
|
2025-11-27 15:55:46 +08:00
|
|
|
|
|
|
|
|
export type IOutputs = Record<
|
|
|
|
|
string,
|
|
|
|
|
{
|
|
|
|
|
type?: string;
|
|
|
|
|
value?: string;
|
|
|
|
|
}
|
|
|
|
|
>;
|