mirror of
https://github.com/langgenius/dify.git
synced 2026-03-21 02:20:08 +08:00
28 lines
534 B
TypeScript
28 lines
534 B
TypeScript
import type { NodeDefault } from '../../types'
|
|
import { type IfElseNodeType, LogicalOperator } from './types'
|
|
|
|
const nodeDefault: NodeDefault<IfElseNodeType> = {
|
|
defaultValue: {
|
|
_targetBranches: [
|
|
{
|
|
id: 'if-true',
|
|
name: 'IS TRUE',
|
|
},
|
|
{
|
|
id: 'if-false',
|
|
name: 'IS FALSE',
|
|
},
|
|
],
|
|
logical_operator: LogicalOperator.and,
|
|
conditions: [],
|
|
},
|
|
getAvailablePrevNodes() {
|
|
return []
|
|
},
|
|
getAvailableNextNodes() {
|
|
return []
|
|
},
|
|
}
|
|
|
|
export default nodeDefault
|