mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
feat: add default and utils
This commit is contained in:
@ -0,0 +1,14 @@
|
||||
import type { NodeDefault } from '../../types'
|
||||
import type { QuestionClassifierNodeType } from './types'
|
||||
|
||||
const nodeDefault: NodeDefault<QuestionClassifierNodeType> = {
|
||||
defaultValue: {},
|
||||
getAvailablePrevNodes() {
|
||||
return []
|
||||
},
|
||||
getAvailableNextNodes() {
|
||||
return []
|
||||
},
|
||||
}
|
||||
|
||||
export default nodeDefault
|
||||
@ -0,0 +1,5 @@
|
||||
import type { QuestionClassifierNodeType } from './types'
|
||||
|
||||
export const checkNodeValid = (payload: QuestionClassifierNodeType) => {
|
||||
return true
|
||||
}
|
||||
Reference in New Issue
Block a user