mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-01-23 11:36:38 +08:00
### What problem does this PR solve? Feat: View data flow test results #9869 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
83 lines
2.0 KiB
TypeScript
83 lines
2.0 KiB
TypeScript
import { PipelineResultSearchParams } from './constant';
|
|
|
|
interface ComponentParams {
|
|
debug_inputs: Record<string, any>;
|
|
delay_after_error: number;
|
|
description: string;
|
|
exception_default_value: any;
|
|
exception_goto: any;
|
|
exception_method: any;
|
|
inputs: Record<string, any>;
|
|
max_retries: number;
|
|
message_history_window_size: number;
|
|
outputs: {
|
|
_created_time: Record<string, any>;
|
|
_elapsed_time: Record<string, any>;
|
|
name: Record<string, any>;
|
|
output_format: { type: string; value: string };
|
|
json: { type: string; value: string };
|
|
};
|
|
persist_logs: boolean;
|
|
timeout: number;
|
|
}
|
|
|
|
interface ComponentObject {
|
|
component_name: string;
|
|
params: ComponentParams;
|
|
}
|
|
export interface IDslComponent {
|
|
downstream: Array<string>;
|
|
obj: ComponentObject;
|
|
upstream: Array<string>;
|
|
}
|
|
export interface IPipelineFileLogDetail {
|
|
avatar: string;
|
|
create_date: string;
|
|
create_time: number;
|
|
document_id: string;
|
|
document_name: string;
|
|
document_suffix: string;
|
|
document_type: string;
|
|
dsl: {
|
|
components: {
|
|
[key: string]: IDslComponent;
|
|
};
|
|
task_id: string;
|
|
path: Array<string>;
|
|
};
|
|
id: string;
|
|
kb_id: string;
|
|
operation_status: string;
|
|
parser_id: string;
|
|
pipeline_id: string;
|
|
pipeline_title: string;
|
|
process_begin_at: string;
|
|
process_duration: number;
|
|
progress: number;
|
|
progress_msg: string;
|
|
source_from: string;
|
|
status: string;
|
|
task_type: string;
|
|
tenant_id: string;
|
|
update_date: string;
|
|
update_time: number;
|
|
}
|
|
|
|
export interface IChunk {
|
|
positions: number[][];
|
|
image_id: string;
|
|
text: string;
|
|
}
|
|
|
|
export interface NavigateToDataflowResultProps {
|
|
id: string;
|
|
[PipelineResultSearchParams.KnowledgeId]?: string;
|
|
[PipelineResultSearchParams.DocumentId]: string;
|
|
[PipelineResultSearchParams.AgentId]?: string;
|
|
[PipelineResultSearchParams.AgentTitle]?: string;
|
|
[PipelineResultSearchParams.IsReadOnly]?: string;
|
|
[PipelineResultSearchParams.Type]: string;
|
|
[PipelineResultSearchParams.CreatedBy]: string;
|
|
[PipelineResultSearchParams.DocumentExtension]: string;
|
|
}
|