2025-05-23 18:19:01 +08:00
|
|
|
import { VarType } from '@/app/components/workflow/types'
|
|
|
|
|
|
|
|
export const OUTPUT_VARIABLES_MAP = {
|
|
|
|
datasource_type: {
|
|
|
|
name: 'datasource_type',
|
|
|
|
type: VarType.string,
|
|
|
|
description: 'local_file, online_document, website_crawl',
|
|
|
|
},
|
|
|
|
file: {
|
|
|
|
name: 'file',
|
|
|
|
type: VarType.file,
|
|
|
|
description: 'file',
|
|
|
|
subItems: [
|
2025-05-26 15:57:34 +08:00
|
|
|
{
|
|
|
|
name: 'name',
|
|
|
|
type: VarType.string,
|
|
|
|
description: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'size',
|
|
|
|
type: VarType.number,
|
|
|
|
description: '',
|
|
|
|
},
|
2025-05-23 18:19:01 +08:00
|
|
|
{
|
|
|
|
name: 'type',
|
|
|
|
type: VarType.string,
|
|
|
|
description: '',
|
|
|
|
},
|
|
|
|
{
|
2025-05-26 15:57:34 +08:00
|
|
|
name: 'extension',
|
2025-05-23 18:19:01 +08:00
|
|
|
type: VarType.string,
|
|
|
|
description: '',
|
|
|
|
},
|
|
|
|
{
|
2025-05-26 15:57:34 +08:00
|
|
|
name: 'mime_type',
|
2025-05-23 18:19:01 +08:00
|
|
|
type: VarType.string,
|
|
|
|
description: '',
|
|
|
|
},
|
|
|
|
{
|
2025-05-26 15:57:34 +08:00
|
|
|
name: 'transfer_method',
|
|
|
|
type: VarType.string,
|
2025-05-23 18:19:01 +08:00
|
|
|
description: '',
|
|
|
|
},
|
|
|
|
{
|
2025-05-26 15:57:34 +08:00
|
|
|
name: 'url',
|
2025-05-23 18:19:01 +08:00
|
|
|
type: VarType.string,
|
|
|
|
description: '',
|
|
|
|
},
|
|
|
|
{
|
2025-05-26 15:57:34 +08:00
|
|
|
name: 'related_id',
|
2025-05-23 18:19:01 +08:00
|
|
|
type: VarType.string,
|
|
|
|
description: '',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}
|