mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-04-23 14:19:42 +08:00
22 lines
580 B
TypeScript
22 lines
580 B
TypeScript
import type { NodeDefault } from '../../types'
|
|
import type { LoopStartNodeType } from './types'
|
|
import { ALL_CHAT_AVAILABLE_BLOCKS, ALL_COMPLETION_AVAILABLE_BLOCKS } from '@/app/components/workflow/blocks'
|
|
|
|
const nodeDefault: NodeDefault<LoopStartNodeType> = {
|
|
defaultValue: {},
|
|
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
|