mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 16:10:09 +08:00
fix: restore guided_learning frontend UI integration lost in upstream merge
This commit is contained in:
@@ -224,10 +224,18 @@ const CAPABILITIES: CapabilityDef[] = [
|
||||
label: "Visualize",
|
||||
description: "Generate SVG, Chart.js, or Mermaid visualizations",
|
||||
icon: BarChart3,
|
||||
allowedTools: [],
|
||||
defaultTools: [],
|
||||
},
|
||||
];
|
||||
allowedTools: [],
|
||||
defaultTools: [],
|
||||
},
|
||||
{
|
||||
value: "guided_learning",
|
||||
label: "Guided Learning",
|
||||
description: "Framework v1.8.2 — diagnostic, mastery-based study, spaced repetition",
|
||||
icon: Lightbulb,
|
||||
allowedTools: ["rag", "web_search", "code_execution"],
|
||||
defaultTools: ["rag"],
|
||||
},
|
||||
];
|
||||
|
||||
interface KnowledgeBase {
|
||||
name: string;
|
||||
|
||||
@@ -73,8 +73,9 @@ function getModeBadgeLabel(capability?: string | null): string {
|
||||
if (capability === "deep_question") return "Quiz Generation";
|
||||
if (capability === "deep_research") return "Deep Research";
|
||||
if (capability === "math_animator") return "Math Animator";
|
||||
if (capability === "visualize") return "Visualize";
|
||||
return capability;
|
||||
if (capability === "visualize") return "Visualize";
|
||||
if (capability === "guided_learning") return "Guided Learning";
|
||||
return capability;
|
||||
}
|
||||
|
||||
function imageSrcForAttachment(attachment: MessageAttachment): string | null {
|
||||
|
||||
Reference in New Issue
Block a user