This commit is contained in:
archer
2023-07-17 17:39:36 +08:00
parent 53a4d9db05
commit dc1599ba3c
21 changed files with 762 additions and 54 deletions

View File

@@ -6,7 +6,7 @@ import { FlowModuleItemType } from '@/types/flow';
import Divider from './modules/Divider';
import Container from './modules/Container';
import RenderInput from './render/RenderInput';
import type { RecognizeIntentionAgentItemType } from '@/types/app';
import type { ClassifyQuestionAgentItemType } from '@/types/app';
import { Handle, Position } from 'reactflow';
import { customAlphabet } from 'nanoid';
const nanoid = customAlphabet('abcdefghijklmnopqrstuvwxyz1234567890', 4);
@@ -30,7 +30,7 @@ const NodeRINode = ({
value: agents = []
}: {
key: string;
value?: RecognizeIntentionAgentItemType[];
value?: ClassifyQuestionAgentItemType[];
}) => (
<Box>
{agents.map((item, i) => (

View File

@@ -70,7 +70,7 @@ const nodeTypes = {
[FlowModuleTypeEnum.kbSearchNode]: NodeKbSearch,
[FlowModuleTypeEnum.tfSwitchNode]: NodeTFSwitch,
[FlowModuleTypeEnum.answerNode]: NodeAnswer,
[FlowModuleTypeEnum.recognizeIntention]: NodeRINode
[FlowModuleTypeEnum.classifyQuestion]: NodeRINode
};
const edgeTypes = {
buttonedge: ButtonEdge