Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

492 B
Raw Blame
import type { RAGPipelineVariable } from '@/models/pipeline'
import { PipelineInputVarType } from '@/models/pipeline'

export const createPipelineVariable = (
  overrides: Partial<RAGPipelineVariable> = {},
): RAGPipelineVariable => ({
  belong_to_node_id: 'source-node',
  type: PipelineInputVarType.textInput,
  variable: 'source',
  label: 'Source',
  required: true,
  default_value: '',
  max_length: 256,
  placeholder: 'Enter source',
  tooltips: '',
  options: [],
  ...overrides,
})