FEAT: NEW WORKFLOW ENGINE (#3160)
Co-authored-by: Joel <iamjoel007@gmail.com> Co-authored-by: Yeuoly <admin@srmxy.cn> Co-authored-by: JzoNg <jzongcode@gmail.com> Co-authored-by: StyleZhang <jasonapring2015@outlook.com> Co-authored-by: jyong <jyong@dify.ai> Co-authored-by: nite-knite <nkCoding@gmail.com> Co-authored-by: jyong <718720800@qq.com>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
/* eslint-disable import/no-mutable-exports */
|
||||
import { InputVarType } from '@/app/components/workflow/types'
|
||||
import { AgentStrategy } from '@/types/app'
|
||||
|
||||
export let apiPrefix = ''
|
||||
@@ -115,6 +116,15 @@ export const VAR_ITEM_TEMPLATE = {
|
||||
required: true,
|
||||
}
|
||||
|
||||
export const VAR_ITEM_TEMPLATE_IN_WORKFLOW = {
|
||||
variable: '',
|
||||
label: '',
|
||||
type: InputVarType.textInput,
|
||||
max_length: DEFAULT_VALUE_MAX_LEN,
|
||||
required: true,
|
||||
options: [],
|
||||
}
|
||||
|
||||
export const appDefaultIconBackground = '#D5F5F6'
|
||||
|
||||
export const NEED_REFRESH_APP_LIST_KEY = 'needRefreshAppList'
|
||||
@@ -225,3 +235,5 @@ Question: {{query}}
|
||||
Thought: {{agent_scratchpad}}
|
||||
`,
|
||||
}
|
||||
|
||||
export const VAR_REGEX = /\{\{(#[a-zA-Z0-9_]{1,50}(\.[a-zA-Z_][a-zA-Z0-9_]{0,29}){1,10}#)\}\}/gi
|
||||
|
Reference in New Issue
Block a user