@oscloudlab/vgen-agent-assistant 0.0.15 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/index.css.br +0 -0
- package/dist/index.css.gz +0 -0
- package/dist/stats.html +1 -1
- package/dist/stats.html.br +0 -0
- package/dist/stats.html.gz +0 -0
- package/dist/types/src/api/index.d.ts +0 -1
- package/dist/types/src/components/VgenAgent/components/MessageContent.d.ts +0 -6
- package/dist/vgen-agent-assistant.es.js +0 -279
- package/dist/vgen-agent-assistant.es.js.br +0 -0
- package/dist/vgen-agent-assistant.es.js.gz +0 -0
- package/dist/vgen-agent-assistant.umd.js +2 -2
- package/dist/vgen-agent-assistant.umd.js.br +0 -0
- package/dist/vgen-agent-assistant.umd.js.gz +0 -0
- package/package.json +1 -1
package/dist/stats.html.br
CHANGED
|
Binary file
|
package/dist/stats.html.gz
CHANGED
|
Binary file
|
|
@@ -77,7 +77,6 @@ export declare const startAnalyze: (params: {
|
|
|
77
77
|
cid: string;
|
|
78
78
|
}[];
|
|
79
79
|
}[], traceId?: string, sessionId?: number | string) => any;
|
|
80
|
-
export declare const getAgentFormFields: () => any;
|
|
81
80
|
export declare const batchSaveQuestionNew: (params: {
|
|
82
81
|
"questionList": string;
|
|
83
82
|
}) => any;
|
|
@@ -10,13 +10,7 @@ interface MessageContentProps {
|
|
|
10
10
|
setAnalyzeUrlNow?: (url: string) => void;
|
|
11
11
|
setConfirmAnalyzeModalVisible?: (visible: boolean) => void;
|
|
12
12
|
setAnalyzeMsgShouldSave?: (shouldSave: boolean) => void;
|
|
13
|
-
studyPathFormSubmit?: (formVals: any) => void;
|
|
14
|
-
questionFormSubmit?: (formVals: any) => void;
|
|
15
|
-
knowledgeCardFormSubmit?: (formVals: any) => void;
|
|
16
13
|
taskFormSubmit?: (formVals: any) => void;
|
|
17
|
-
StudyMapFormFields?: any[];
|
|
18
|
-
QuestionFormFields?: any[];
|
|
19
|
-
KnowledgeCardFormFields?: any[];
|
|
20
14
|
TaskFormFields?: any[];
|
|
21
15
|
saveStudyPath?: (treeData: any[]) => void;
|
|
22
16
|
studyPathSaving?: boolean;
|
|
@@ -2286,9 +2286,6 @@ const startAnalyze = (params, traceId, sessionId) => {
|
|
|
2286
2286
|
}
|
|
2287
2287
|
});
|
|
2288
2288
|
};
|
|
2289
|
-
const getAgentFormFields = () => {
|
|
2290
|
-
return axiosInstance.get(`/scene/intend-params/form-only`);
|
|
2291
|
-
};
|
|
2292
2289
|
const getSessionListByBiz = (params) => {
|
|
2293
2290
|
return axiosInstance.post(`/api/v1.0/chatbot/session/list/byBusiness`, params);
|
|
2294
2291
|
};
|
|
@@ -15255,13 +15252,7 @@ const MessageContent = (props) => {
|
|
|
15255
15252
|
setAnalyzeUrlNow,
|
|
15256
15253
|
setConfirmAnalyzeModalVisible,
|
|
15257
15254
|
setAnalyzeMsgShouldSave,
|
|
15258
|
-
studyPathFormSubmit,
|
|
15259
|
-
questionFormSubmit,
|
|
15260
|
-
knowledgeCardFormSubmit,
|
|
15261
15255
|
taskFormSubmit,
|
|
15262
|
-
StudyMapFormFields,
|
|
15263
|
-
QuestionFormFields,
|
|
15264
|
-
KnowledgeCardFormFields,
|
|
15265
15256
|
TaskFormFields,
|
|
15266
15257
|
saveStudyPath,
|
|
15267
15258
|
studyPathSaving,
|
|
@@ -15521,216 +15512,6 @@ const MessageContent = (props) => {
|
|
|
15521
15512
|
selectCallback: handleSelectSearchResult
|
|
15522
15513
|
}
|
|
15523
15514
|
) }),
|
|
15524
|
-
msg.messageType === msgType.FROM_LEARN_PATH && (extraInfo == null ? void 0 : extraInfo.form) && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "my-4", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
15525
|
-
Collapse,
|
|
15526
|
-
{
|
|
15527
|
-
defaultActiveKey: extraInfo.needClarify === true ? [msg.id] : [],
|
|
15528
|
-
items: [
|
|
15529
|
-
{
|
|
15530
|
-
key: msg.id,
|
|
15531
|
-
label: "学习计划生成信息确认",
|
|
15532
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "bg-white p-5 rounded-xl border border-indigo-100 shadow-md space-y-4", children: [
|
|
15533
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "border-b border-gray-100 pb-3 mb-3", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("h3", { className: "text-sm font-bold text-gray-900 flex items-center", children: [
|
|
15534
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(User, { className: "h-4 w-4 mr-2 text-primary" }),
|
|
15535
|
-
"太棒了!我已经识别到你的学习意图,请确认以下信息是否准确:"
|
|
15536
|
-
] }) }),
|
|
15537
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
15538
|
-
Form,
|
|
15539
|
-
{
|
|
15540
|
-
layout: "inline",
|
|
15541
|
-
className: "space-y-4",
|
|
15542
|
-
labelCol: { span: 6 },
|
|
15543
|
-
wrapperCol: { span: 18 },
|
|
15544
|
-
onFinish: studyPathFormSubmit,
|
|
15545
|
-
autoComplete: "off",
|
|
15546
|
-
children: [
|
|
15547
|
-
StudyMapFormFields == null ? void 0 : StudyMapFormFields.map((item) => {
|
|
15548
|
-
var _a2, _b2;
|
|
15549
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
15550
|
-
Form.Item,
|
|
15551
|
-
{
|
|
15552
|
-
initialValue: ((_a2 = extraInfo == null ? void 0 : extraInfo.form) == null ? void 0 : _a2[item.name]) || void 0,
|
|
15553
|
-
label: item.display,
|
|
15554
|
-
name: item.name,
|
|
15555
|
-
rules: item.required ? [
|
|
15556
|
-
{
|
|
15557
|
-
required: true,
|
|
15558
|
-
message: `${item.type === "str" ? "请输入" : "请选择"}${item.display}`
|
|
15559
|
-
}
|
|
15560
|
-
] : [],
|
|
15561
|
-
style: {
|
|
15562
|
-
marginTop: item.type === "str" ? "" : "12px",
|
|
15563
|
-
width: "320px"
|
|
15564
|
-
},
|
|
15565
|
-
children: item.type === "str" ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
15566
|
-
Input,
|
|
15567
|
-
{
|
|
15568
|
-
placeholder: item.desc || item.display,
|
|
15569
|
-
style: { width: "140px" }
|
|
15570
|
-
}
|
|
15571
|
-
) : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
15572
|
-
Checkbox.Group,
|
|
15573
|
-
{
|
|
15574
|
-
options: item.name === "targetSkills" ? ((_b2 = extraInfo == null ? void 0 : extraInfo.form) == null ? void 0 : _b2["targetSkills"]) || [] : item.options || [],
|
|
15575
|
-
style: { width: "140px" }
|
|
15576
|
-
}
|
|
15577
|
-
)
|
|
15578
|
-
},
|
|
15579
|
-
item.name
|
|
15580
|
-
);
|
|
15581
|
-
}),
|
|
15582
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-full flex align-center justify-center", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex gap-3", children: [
|
|
15583
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Button, { type: "primary", htmlType: "submit", children: formSubmitTextMap[msg.messageType] }),
|
|
15584
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Button, { htmlType: "reset", children: "清空" })
|
|
15585
|
-
] }) })
|
|
15586
|
-
]
|
|
15587
|
-
}
|
|
15588
|
-
)
|
|
15589
|
-
] })
|
|
15590
|
-
}
|
|
15591
|
-
]
|
|
15592
|
-
}
|
|
15593
|
-
) }),
|
|
15594
|
-
msg.messageType === msgType.FROM_QUESTION && (extraInfo == null ? void 0 : extraInfo.form) && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "my-4", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
15595
|
-
Collapse,
|
|
15596
|
-
{
|
|
15597
|
-
defaultActiveKey: extraInfo.needClarify === true ? [msg.id] : [],
|
|
15598
|
-
items: [
|
|
15599
|
-
{
|
|
15600
|
-
key: msg.id,
|
|
15601
|
-
label: "题目生成信息确认",
|
|
15602
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "bg-white", children: [
|
|
15603
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "border-b border-gray-100 pb-3 mb-3", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("h3", { className: "text-sm font-bold text-gray-900 flex items-center", children: [
|
|
15604
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(User, { className: "h-4 w-4 mr-2 text-primary" }),
|
|
15605
|
-
"定制你的题目"
|
|
15606
|
-
] }) }),
|
|
15607
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
15608
|
-
Form,
|
|
15609
|
-
{
|
|
15610
|
-
layout: "inline",
|
|
15611
|
-
className: "space-y-4",
|
|
15612
|
-
labelCol: { span: 6 },
|
|
15613
|
-
wrapperCol: { span: 18 },
|
|
15614
|
-
onFinish: questionFormSubmit,
|
|
15615
|
-
autoComplete: "off",
|
|
15616
|
-
children: [
|
|
15617
|
-
QuestionFormFields == null ? void 0 : QuestionFormFields.map((item) => {
|
|
15618
|
-
var _a2, _b2;
|
|
15619
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
15620
|
-
Form.Item,
|
|
15621
|
-
{
|
|
15622
|
-
initialValue: ((_a2 = extraInfo == null ? void 0 : extraInfo.form) == null ? void 0 : _a2[item.name]) || void 0,
|
|
15623
|
-
label: item.display,
|
|
15624
|
-
name: item.name,
|
|
15625
|
-
rules: item.required ? [
|
|
15626
|
-
{
|
|
15627
|
-
required: true,
|
|
15628
|
-
message: `${item.type === "str" ? "请输入" : "请选择"}${item.display}`
|
|
15629
|
-
}
|
|
15630
|
-
] : [],
|
|
15631
|
-
style: {
|
|
15632
|
-
marginTop: item.type === "str" ? "16px" : "12px",
|
|
15633
|
-
width: "320px"
|
|
15634
|
-
},
|
|
15635
|
-
children: item.type === "str" ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
15636
|
-
Input,
|
|
15637
|
-
{
|
|
15638
|
-
placeholder: item.desc || item.display,
|
|
15639
|
-
style: { width: "140px" }
|
|
15640
|
-
}
|
|
15641
|
-
) : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
15642
|
-
Checkbox.Group,
|
|
15643
|
-
{
|
|
15644
|
-
options: item.name === "targetSkills" ? ((_b2 = extraInfo == null ? void 0 : extraInfo.form) == null ? void 0 : _b2["targetSkills"]) || [] : item.options || [],
|
|
15645
|
-
style: { width: "140px" }
|
|
15646
|
-
}
|
|
15647
|
-
)
|
|
15648
|
-
},
|
|
15649
|
-
item.name
|
|
15650
|
-
);
|
|
15651
|
-
}),
|
|
15652
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-full flex align-center justify-center", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex gap-3", children: [
|
|
15653
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Button, { type: "primary", htmlType: "submit", children: formSubmitTextMap[msg.messageType] }),
|
|
15654
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Button, { htmlType: "reset", children: "清空" })
|
|
15655
|
-
] }) })
|
|
15656
|
-
]
|
|
15657
|
-
}
|
|
15658
|
-
)
|
|
15659
|
-
] })
|
|
15660
|
-
}
|
|
15661
|
-
]
|
|
15662
|
-
}
|
|
15663
|
-
) }),
|
|
15664
|
-
msg.messageType === msgType.FROM_KNOWLEDGE_CARD && (extraInfo == null ? void 0 : extraInfo.form) && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "my-4", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
15665
|
-
Collapse,
|
|
15666
|
-
{
|
|
15667
|
-
defaultActiveKey: extraInfo.needClarify === true ? [msg.id] : [],
|
|
15668
|
-
items: [
|
|
15669
|
-
{
|
|
15670
|
-
key: msg.id,
|
|
15671
|
-
label: "知识点卡片生成信息确认",
|
|
15672
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "bg-white", children: [
|
|
15673
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "border-b border-gray-100 pb-3 mb-3", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("h3", { className: "text-sm font-bold text-gray-900 flex items-center", children: [
|
|
15674
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(User, { className: "h-4 w-4 mr-2 text-primary" }),
|
|
15675
|
-
"定制你的知识点卡片"
|
|
15676
|
-
] }) }),
|
|
15677
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
15678
|
-
Form,
|
|
15679
|
-
{
|
|
15680
|
-
layout: "inline",
|
|
15681
|
-
className: "space-y-4",
|
|
15682
|
-
labelCol: { span: 8 },
|
|
15683
|
-
wrapperCol: { span: 16 },
|
|
15684
|
-
onFinish: knowledgeCardFormSubmit,
|
|
15685
|
-
autoComplete: "off",
|
|
15686
|
-
children: [
|
|
15687
|
-
KnowledgeCardFormFields == null ? void 0 : KnowledgeCardFormFields.map((item) => {
|
|
15688
|
-
var _a2, _b2;
|
|
15689
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
15690
|
-
Form.Item,
|
|
15691
|
-
{
|
|
15692
|
-
initialValue: ((_a2 = extraInfo == null ? void 0 : extraInfo.form) == null ? void 0 : _a2[item.name]) || void 0,
|
|
15693
|
-
label: item.display,
|
|
15694
|
-
name: item.name,
|
|
15695
|
-
rules: item.required ? [
|
|
15696
|
-
{
|
|
15697
|
-
required: true,
|
|
15698
|
-
message: `${item.type === "str" ? "请输入" : "请选择"}${item.display}`
|
|
15699
|
-
}
|
|
15700
|
-
] : [],
|
|
15701
|
-
style: {
|
|
15702
|
-
marginTop: item.type === "str" ? "16px" : "12px",
|
|
15703
|
-
width: "320px"
|
|
15704
|
-
},
|
|
15705
|
-
children: item.type === "str" ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
15706
|
-
Input,
|
|
15707
|
-
{
|
|
15708
|
-
placeholder: item.desc || item.display,
|
|
15709
|
-
style: { width: "140px" }
|
|
15710
|
-
}
|
|
15711
|
-
) : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
15712
|
-
Checkbox.Group,
|
|
15713
|
-
{
|
|
15714
|
-
options: item.name === "targetSkills" ? ((_b2 = extraInfo == null ? void 0 : extraInfo.form) == null ? void 0 : _b2["targetSkills"]) || [] : item.options || [],
|
|
15715
|
-
style: { width: "140px" }
|
|
15716
|
-
}
|
|
15717
|
-
)
|
|
15718
|
-
},
|
|
15719
|
-
item.name
|
|
15720
|
-
);
|
|
15721
|
-
}),
|
|
15722
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-full flex align-center justify-center", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex gap-3", children: [
|
|
15723
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Button, { type: "primary", htmlType: "submit", children: formSubmitTextMap[msg.messageType] }),
|
|
15724
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Button, { htmlType: "reset", children: "清空" })
|
|
15725
|
-
] }) })
|
|
15726
|
-
]
|
|
15727
|
-
}
|
|
15728
|
-
)
|
|
15729
|
-
] })
|
|
15730
|
-
}
|
|
15731
|
-
]
|
|
15732
|
-
}
|
|
15733
|
-
) }),
|
|
15734
15515
|
msg.messageType === msgType.FROM_LEARN_TASK && (extraInfo == null ? void 0 : extraInfo.form) && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "my-4", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
15735
15516
|
Collapse,
|
|
15736
15517
|
{
|
|
@@ -17227,7 +17008,6 @@ const VgenAgent = forwardRef((props, ref) => {
|
|
|
17227
17008
|
const [recommendSceneData, setRecommendSceneData] = useState(null);
|
|
17228
17009
|
const [hasMoreBefore, setHasMoreBefore] = useState(false);
|
|
17229
17010
|
const [oldestMessageId, setOldestMessageId] = useState(null);
|
|
17230
|
-
const [agentFormFields, setAgentFormFields] = useState([]);
|
|
17231
17011
|
const [enableGlobalSearch, setEnableGlobalSearch] = useState(false);
|
|
17232
17012
|
const [isMoreActionsOpen, setIsMoreActionsOpen] = useState(false);
|
|
17233
17013
|
const [quotedText, setQuotedText] = useState("");
|
|
@@ -17315,11 +17095,6 @@ const VgenAgent = forwardRef((props, ref) => {
|
|
|
17315
17095
|
setIsLogin(res.isLogin || false);
|
|
17316
17096
|
setUserInfo(res);
|
|
17317
17097
|
};
|
|
17318
|
-
useEffect(() => {
|
|
17319
|
-
if (isLogin) {
|
|
17320
|
-
toGetAgentFormFields();
|
|
17321
|
-
}
|
|
17322
|
-
}, [isLogin]);
|
|
17323
17098
|
useEffect(() => {
|
|
17324
17099
|
setChatId(chatIdFromPorps || 0);
|
|
17325
17100
|
}, [chatIdFromPorps]);
|
|
@@ -17332,10 +17107,6 @@ const VgenAgent = forwardRef((props, ref) => {
|
|
|
17332
17107
|
initGet();
|
|
17333
17108
|
}
|
|
17334
17109
|
}, [isLogin, isAiPanelOpen, hasInitGet]);
|
|
17335
|
-
const toGetAgentFormFields = async () => {
|
|
17336
|
-
const res = await getAgentFormFields();
|
|
17337
|
-
setAgentFormFields(res.data);
|
|
17338
|
-
};
|
|
17339
17110
|
const initGet = () => {
|
|
17340
17111
|
switch (viewMode) {
|
|
17341
17112
|
case "video":
|
|
@@ -17833,18 +17604,6 @@ const VgenAgent = forwardRef((props, ref) => {
|
|
|
17833
17604
|
const analyzeVideo = (url) => {
|
|
17834
17605
|
setChatVideoUrl(url);
|
|
17835
17606
|
};
|
|
17836
|
-
const StudyMapFormFields = useMemo(() => {
|
|
17837
|
-
const item = agentFormFields.find((item2) => item2.intent === agentScene$1.SYSTEMATIZE_LEARNING);
|
|
17838
|
-
return (item == null ? void 0 : item.formMeta) || [];
|
|
17839
|
-
}, [agentFormFields]);
|
|
17840
|
-
const QuestionFormFields = useMemo(() => {
|
|
17841
|
-
const item = agentFormFields.find((item2) => item2.intent === agentScene$1.QUESTION_GENERATION);
|
|
17842
|
-
return (item == null ? void 0 : item.formMeta) || [];
|
|
17843
|
-
}, [agentFormFields]);
|
|
17844
|
-
const KnowledgeCardFormFields = useMemo(() => {
|
|
17845
|
-
const item = agentFormFields.find((item2) => item2.intent === agentScene$1.SKILL_TO_KNOWLEDGE);
|
|
17846
|
-
return (item == null ? void 0 : item.formMeta) || [];
|
|
17847
|
-
}, [agentFormFields]);
|
|
17848
17607
|
const videoAnalyzeCallback = (analyzeRes) => {
|
|
17849
17608
|
toUpdateMsgs();
|
|
17850
17609
|
};
|
|
@@ -17862,40 +17621,8 @@ const VgenAgent = forwardRef((props, ref) => {
|
|
|
17862
17621
|
}
|
|
17863
17622
|
});
|
|
17864
17623
|
};
|
|
17865
|
-
const studyPathFormSubmit = (formVals) => {
|
|
17866
|
-
var _a;
|
|
17867
|
-
let prompts = "帮我定制学习方案:\n";
|
|
17868
|
-
for (const key in formVals) {
|
|
17869
|
-
const label = ((_a = StudyMapFormFields.find((item) => item.name === key)) == null ? void 0 : _a.display) || key;
|
|
17870
|
-
if (formVals[key]) {
|
|
17871
|
-
prompts += `${label}:${formVals[key] || " "};
|
|
17872
|
-
`;
|
|
17873
|
-
}
|
|
17874
|
-
}
|
|
17875
|
-
handleSend({ input: prompts, scene: agentScene$1.SYSTEMATIZE_LEARNING });
|
|
17876
|
-
};
|
|
17877
17624
|
const saveStudyPath = (planDataNow, realChatId, traceId) => {
|
|
17878
17625
|
};
|
|
17879
|
-
const questionFormSubmit = (formVals) => {
|
|
17880
|
-
var _a;
|
|
17881
|
-
let prompts = "帮我定制题目:\n";
|
|
17882
|
-
for (const key in formVals) {
|
|
17883
|
-
const label = ((_a = QuestionFormFields.find((item) => item.name === key)) == null ? void 0 : _a.display) || key;
|
|
17884
|
-
prompts += `${label}:${formVals[key] || " "};
|
|
17885
|
-
`;
|
|
17886
|
-
}
|
|
17887
|
-
handleSend({ input: prompts, scene: agentScene$1.QUESTION_GENERATION });
|
|
17888
|
-
};
|
|
17889
|
-
const knowledgeCardFormSubmit = (formVals) => {
|
|
17890
|
-
var _a;
|
|
17891
|
-
let prompts = "帮我生成知识点详解:\n";
|
|
17892
|
-
for (const key in formVals) {
|
|
17893
|
-
const label = ((_a = KnowledgeCardFormFields.find((item) => item.name === key)) == null ? void 0 : _a.display) || key;
|
|
17894
|
-
prompts += `${label}:${formVals[key] || " "};
|
|
17895
|
-
`;
|
|
17896
|
-
}
|
|
17897
|
-
handleSend({ input: prompts, scene: agentScene$1.SKILL_TO_KNOWLEDGE });
|
|
17898
|
-
};
|
|
17899
17626
|
const toCheckKnowledgeCard = (extraInfo) => {
|
|
17900
17627
|
const url = `${isDev ? devEnvUrl.VITE_BASE_VGEN_URL : proEnvUrl.VITE_BASE_VGEN_URL}/knowledgeDetailPage?knowledgeId=${extraInfo.knowledgeId || extraInfo.id}`;
|
|
17901
17628
|
window.open(url, "_blank");
|
|
@@ -18281,12 +18008,6 @@ const VgenAgent = forwardRef((props, ref) => {
|
|
|
18281
18008
|
setAnalyzeUrlNow,
|
|
18282
18009
|
setConfirmAnalyzeModalVisible,
|
|
18283
18010
|
setAnalyzeMsgShouldSave,
|
|
18284
|
-
studyPathFormSubmit,
|
|
18285
|
-
questionFormSubmit,
|
|
18286
|
-
knowledgeCardFormSubmit,
|
|
18287
|
-
StudyMapFormFields,
|
|
18288
|
-
QuestionFormFields,
|
|
18289
|
-
KnowledgeCardFormFields,
|
|
18290
18011
|
saveStudyPath,
|
|
18291
18012
|
studyPathSaving,
|
|
18292
18013
|
toCheckQuestions,
|
|
Binary file
|
|
Binary file
|