feat: pipeline run
parent
82f4b35d52
commit
e095de05c5
@ -0,0 +1,13 @@
|
|||||||
|
import { useMemo } from 'react'
|
||||||
|
import { useStore } from '@/app/components/workflow/store'
|
||||||
|
import { FlowType } from '@/types/common'
|
||||||
|
|
||||||
|
export const useConfigsMap = () => {
|
||||||
|
const pipelineId = useStore(s => s.pipelineId)
|
||||||
|
return useMemo(() => {
|
||||||
|
return {
|
||||||
|
flowId: pipelineId!,
|
||||||
|
flowType: FlowType.ragPipeline,
|
||||||
|
}
|
||||||
|
}, [pipelineId])
|
||||||
|
}
|
||||||
@ -0,0 +1,13 @@
|
|||||||
|
import { useInspectVarsCrudCommon } from '../../workflow/hooks/use-inspect-vars-crud-common'
|
||||||
|
import { useConfigsMap } from './use-configs-map'
|
||||||
|
|
||||||
|
export const useInspectVarsCrud = () => {
|
||||||
|
const configsMap = useConfigsMap()
|
||||||
|
const apis = useInspectVarsCrudCommon({
|
||||||
|
...configsMap,
|
||||||
|
})
|
||||||
|
|
||||||
|
return {
|
||||||
|
...apis,
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,4 +1,4 @@
|
|||||||
export enum FlowType {
|
export enum FlowType {
|
||||||
appFlow = 'appFlow',
|
appFlow = 'appFlow',
|
||||||
ragFlow = 'ragFlow',
|
ragPipeline = 'ragPipeline',
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue