Download web/app/components/workflow/nodes/iteration-start/default.ts from Underground-Digital/Workflow-Engine: direct link, hf CLI and curl.
- Browser
- Download file 593 Bytes
-
https://huggingface.co/spaces/Underground-Digital/Workflow-Engine/resolve/main/web/app/components/workflow/nodes/iteration-start/default.ts
- Command line
-
hf download hf://spaces/Underground-Digital/Workflow-Engine/web/app/components/workflow/nodes/iteration-start/default.ts
-
curl -L -o default.ts https://huggingface.co/spaces/Underground-Digital/Workflow-Engine/resolve/main/web/app/components/workflow/nodes/iteration-start/default.ts
593 Bytes
| import type { NodeDefault } from '../../types' | |
| import type { IterationStartNodeType } from './types' | |
| import { ALL_CHAT_AVAILABLE_BLOCKS, ALL_COMPLETION_AVAILABLE_BLOCKS } from '@/app/components/workflow/constants' | |
| const nodeDefault: NodeDefault<IterationStartNodeType> = { | |
| 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 | |