mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-02 20:58:12 +00:00
29 lines
871 B
TypeScript
29 lines
871 B
TypeScript
import type { FlowNodeInputItemType } from '@fastgpt/global/core/module/node/type.d';
|
|
import { SystemInputEnum } from '../app';
|
|
import {
|
|
FlowNodeInputTypeEnum,
|
|
FlowNodeValTypeEnum
|
|
} from '@fastgpt/global/core/module/node/constant';
|
|
|
|
export const Input_Template_TFSwitch: FlowNodeInputItemType = {
|
|
key: SystemInputEnum.switch,
|
|
type: FlowNodeInputTypeEnum.target,
|
|
label: '触发器',
|
|
valueType: FlowNodeValTypeEnum.any
|
|
};
|
|
|
|
export const Input_Template_History: FlowNodeInputItemType = {
|
|
key: SystemInputEnum.history,
|
|
type: FlowNodeInputTypeEnum.target,
|
|
label: '聊天记录',
|
|
valueType: FlowNodeValTypeEnum.chatHistory
|
|
};
|
|
|
|
export const Input_Template_UserChatInput: FlowNodeInputItemType = {
|
|
key: SystemInputEnum.userChatInput,
|
|
type: FlowNodeInputTypeEnum.target,
|
|
label: '用户问题',
|
|
required: true,
|
|
valueType: FlowNodeValTypeEnum.string
|
|
};
|