mirror of
https://github.com/langgenius/dify.git
synced 2026-04-26 13:45:57 +08:00
19 lines
529 B
TypeScript
19 lines
529 B
TypeScript
import type { NodeDefault } from '../../types'
|
|
import { type EndNodeType } from './types'
|
|
import { ALL_CHAT_AVAILABLE_BLOCKS, ALL_COMPLETION_AVAILABLE_BLOCKS } from '@/app/components/workflow/constants'
|
|
|
|
const nodeDefault: NodeDefault<EndNodeType> = {
|
|
defaultValue: {
|
|
outputs: [],
|
|
},
|
|
getAvailablePrevNodes(isChatMode: boolean) {
|
|
const nodes = isChatMode ? ALL_CHAT_AVAILABLE_BLOCKS : ALL_COMPLETION_AVAILABLE_BLOCKS
|
|
return nodes
|
|
},
|
|
getAvailableNextNodes() {
|
|
return []
|
|
},
|
|
}
|
|
|
|
export default nodeDefault
|