mirror of
https://github.com/langgenius/dify.git
synced 2025-07-13 12:10:29 +00:00
24 lines
597 B
TypeScript
24 lines
597 B
TypeScript
![]() |
import type { NodeDefault } from '../../types'
|
||
|
import type { StartNodeType } from './types'
|
||
|
import { ALL_CHAT_AVAILABLE_BLOCKS, ALL_COMPLETION_AVAILABLE_BLOCKS } from '@/app/components/workflow/constants'
|
||
|
|
||
|
const nodeDefault: NodeDefault<StartNodeType> = {
|
||
|
defaultValue: {
|
||
|
variables: [],
|
||
|
},
|
||
|
getAvailablePrevNodes() {
|
||
|
return []
|
||
|
},
|
||
|
getAvailableNextNodes(isChatMode: boolean) {
|
||
|
const nodes = isChatMode ? ALL_CHAT_AVAILABLE_BLOCKS : ALL_COMPLETION_AVAILABLE_BLOCKS
|
||
|
return nodes
|
||
|
},
|
||
|
checkValid() {
|
||
|
return {
|
||
|
isValid: true,
|
||
|
}
|
||
|
},
|
||
|
}
|
||
|
|
||
|
export default nodeDefault
|