mirror of
https://github.com/langgenius/dify.git
synced 2026-04-05 10:12:43 +08:00
feat: introduce trigger functionality (#27644)
Signed-off-by: lyzno1 <yuanyouhuilyz@gmail.com> Co-authored-by: Stream <Stream_2@qq.com> Co-authored-by: lyzno1 <92089059+lyzno1@users.noreply.github.com> Co-authored-by: zhsama <torvalds@linux.do> Co-authored-by: Harry <xh001x@hotmail.com> Co-authored-by: lyzno1 <yuanyouhuilyz@gmail.com> Co-authored-by: yessenia <yessenia.contact@gmail.com> Co-authored-by: hjlarry <hjlarry@163.com> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: WTW0313 <twwu@dify.ai> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -60,8 +60,14 @@ export type VariableInput = {
|
||||
/**
|
||||
* App modes
|
||||
*/
|
||||
export const AppModes = ['advanced-chat', 'agent-chat', 'chat', 'completion', 'workflow'] as const
|
||||
export type AppMode = typeof AppModes[number]
|
||||
export enum AppModeEnum {
|
||||
COMPLETION = 'completion',
|
||||
WORKFLOW = 'workflow',
|
||||
CHAT = 'chat',
|
||||
ADVANCED_CHAT = 'advanced-chat',
|
||||
AGENT_CHAT = 'agent-chat',
|
||||
}
|
||||
export const AppModes = [AppModeEnum.COMPLETION, AppModeEnum.WORKFLOW, AppModeEnum.CHAT, AppModeEnum.ADVANCED_CHAT, AppModeEnum.AGENT_CHAT] as const
|
||||
|
||||
/**
|
||||
* Variable type
|
||||
@@ -339,7 +345,7 @@ export type App = {
|
||||
use_icon_as_answer_icon: boolean
|
||||
|
||||
/** Mode */
|
||||
mode: AppMode
|
||||
mode: AppModeEnum
|
||||
/** Enable web app */
|
||||
enable_site: boolean
|
||||
/** Enable web API */
|
||||
@@ -388,7 +394,7 @@ export type AppTemplate = {
|
||||
/** Description */
|
||||
description: string
|
||||
/** Mode */
|
||||
mode: AppMode
|
||||
mode: AppModeEnum
|
||||
/** Model */
|
||||
model_config: ModelConfig
|
||||
}
|
||||
|
||||
2
web/types/i18n.d.ts
vendored
2
web/types/i18n.d.ts
vendored
@@ -27,6 +27,7 @@ type LoginMessages = typeof import('../i18n/en-US/login').default
|
||||
type OauthMessages = typeof import('../i18n/en-US/oauth').default
|
||||
type PipelineMessages = typeof import('../i18n/en-US/pipeline').default
|
||||
type PluginTagsMessages = typeof import('../i18n/en-US/plugin-tags').default
|
||||
type PluginTriggerMessages = typeof import('../i18n/en-US/plugin-trigger').default
|
||||
type PluginMessages = typeof import('../i18n/en-US/plugin').default
|
||||
type RegisterMessages = typeof import('../i18n/en-US/register').default
|
||||
type RunLogMessages = typeof import('../i18n/en-US/run-log').default
|
||||
@@ -59,6 +60,7 @@ export type Messages = {
|
||||
oauth: OauthMessages;
|
||||
pipeline: PipelineMessages;
|
||||
pluginTags: PluginTagsMessages;
|
||||
pluginTrigger: PluginTriggerMessages;
|
||||
plugin: PluginMessages;
|
||||
register: RegisterMessages;
|
||||
runLog: RunLogMessages;
|
||||
|
||||
Reference in New Issue
Block a user