feat: add pipeline template details and import functionality, enhance dataset pipeline management

This commit is contained in:
twwu
2025-05-07 18:09:38 +08:00
parent 3f7f21ce70
commit 7ce9710229
9 changed files with 231 additions and 18 deletions

View File

@ -1,5 +1,5 @@
import type { LangFuseConfig, LangSmithConfig, OpikConfig, TracingProvider, WeaveConfig } from '@/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/type'
import type { App, AppSSO, AppTemplate, SiteConfig } from '@/types/app'
import type { App, AppMode, AppSSO, AppTemplate, SiteConfig } from '@/types/app'
import type { Dependency } from '@/app/components/plugins/types'
export enum DSLImportMode {

View File

@ -1,4 +1,6 @@
import type { DSLImportMode, DSLImportStatus } from './app'
import type { ChunkingMode, IconInfo } from './datasets'
import type { Dependency } from '@/app/components/plugins/types'
export type PipelineTemplateListParams = {
type: 'built-in' | 'customized'
@ -21,6 +23,8 @@ export type PipelineTemplateByIdResponse = {
name: string
icon_info: IconInfo
description: string
author: string // todo: TBD
structure: string // todo: TBD
export_data: string
}
@ -46,3 +50,22 @@ export type DeletePipelineResponse = {
export type ExportPipelineDSLResponse = {
data: string
}
export type ImportPipelineDSLRequest = {
mode: DSLImportMode
name: string
yaml_content: string
icon_info: IconInfo
description: string
}
export type ImportPipelineDSLResponse = {
id: string
status: DSLImportStatus
app_mode: 'pipeline'
dataset_id?: string
current_dsl_version?: string
imported_dsl_version?: string
error: string
leaked_dependencies: Dependency[]
}