DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.
Python ai-agentsai-tutorclawbotcli-tooldeepresearchinteractive-learninglearningmulti-agent-systemsrag
feat: release ver0.3.0
Bingxi Zhaob0e5a3fea220
diff --git a/.github/dependabot.yml b/.github/dependabot.ymlindex b8c90c593..cf1be9afe 100644--- a/.github/dependabot.yml+++ b/.github/dependabot.yml@@ -84,4 +84,3 @@ updates:- "docker"commit-message:prefix: "chore(deps)"-diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.ymlindex 12ae3818f..4e0a968e7 100644--- a/.github/workflows/docker-publish.yml+++ b/.github/workflows/docker-publish.yml@@ -105,4 +105,3 @@ jobs:echo " -e EMBEDDING_BINDING_API_KEY=your-api-key \\\\" >> $GITHUB_STEP_SUMMARYecho " ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest" >> $GITHUB_STEP_SUMMARYecho "\`\`\`" >> $GITHUB_STEP_SUMMARY-diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.ymlindex e5861e82d..6e18fdd19 100644--- a/.github/workflows/tests.yml+++ b/.github/workflows/tests.yml@@ -89,4 +89,3 @@ jobs:python -c "from src.tools.rag_tool import RAGTool; print('✅ Tools imports OK')"env:PYTHONPATH: ${{ github.workspace }}-diff --git a/README.md b/README.mdindex 43258bc4b..dd0717015 100644--- a/README.md+++ b/README.md@@ -35,7 +35,7 @@</div>----> **[2026.1.3]** Released DeepTutor [v0.2.1](https://github.com/HKUDS/DeepTutor/releases/tag/v0.2.1) - Any feedbacks are welcomed! ❤️+> **[2026.1.3]** Released DeepTutor [v0.3.0](https://github.com/HKUDS/DeepTutor/releases/tag/v0.3.0) - Any feedbacks are welcomed! ❤️> **[2026.1.1]** Join our [Discord Community](https://discord.gg/zpP9cssj) and [GitHub Discussions](https://github.com/HKUDS/DeepTutor/discussions) - shape the future of DeepTutor! 💬diff --git a/src/api/routers/agent_config.py b/src/api/routers/agent_config.pyindex 7eb099452..cc60ba271 100644--- a/src/api/routers/agent_config.py+++ b/src/api/routers/agent_config.py@@ -67,4 +67,3 @@ async def get_single_agent_config(agent_type: str):if agent_type in AGENT_REGISTRY:return AGENT_REGISTRY[agent_type]return {"error": f"Agent type '{agent_type}' not found"}-diff --git a/src/core/prompt_manager.py b/src/core/prompt_manager.pyindex ba5c2e50c..e50b526ac 100644--- a/src/core/prompt_manager.py+++ b/src/core/prompt_manager.py@@ -9,7 +9,7 @@ from typing import Anyimport yaml-from .core import parse_language, PROJECT_ROOT+from .core import PROJECT_ROOT, parse_languageclass PromptManager:@@ -84,9 +84,7 @@ class PromptManager:fallback_chain = self.LANGUAGE_FALLBACKS.get(lang_code, ["en"])for lang in fallback_chain:- prompt_file = self._resolve_prompt_path(- prompts_dir, lang, agent_name, subdirectory- )+ prompt_file = self._resolve_prompt_path(prompts_dir, lang, agent_name, subdirectory)if prompt_file and prompt_file.exists():try:with open(prompt_file, encoding="utf-8") as f:@@ -206,4 +204,3 @@ def get_prompt_manager() -> PromptManager:__all__ = ["PromptManager", "get_prompt_manager"]-diff --git a/tests/core/__init__.py b/tests/core/__init__.pyindex 9fd4e3e98..8605732b4 100644--- a/tests/core/__init__.py+++ b/tests/core/__init__.py@@ -1,2 +1 @@# Core module tests-diff --git a/tests/core/test_prompt_manager.py b/tests/core/test_prompt_manager.pyindex 420e3ac0f..6c613ec4b 100644--- a/tests/core/test_prompt_manager.py+++ b/tests/core/test_prompt_manager.py@@ -80,41 +80,41 @@ class TestPromptManager:def test_caching(self):"""Test that prompts are cached after first load."""pm = get_prompt_manager()-+# First loadprompts1 = pm.load_prompts("research", "research_agent", "en")-+# Second load should return cached versionprompts2 = pm.load_prompts("research", "research_agent", "en")-+assert prompts1 is prompts2def test_clear_cache_all(self):"""Test clearing all cache."""pm = get_prompt_manager()-+# Load some promptspm.load_prompts("research", "research_agent", "en")pm.load_prompts("guide", "chat_agent", "en")-+assert len(pm._cache) >= 2-+pm.clear_cache()assert len(pm._cache) == 0def test_clear_cache_module_specific(self):"""Test clearing cache for specific module."""pm = get_prompt_manager()-+# Load prompts for multiple modulespm.load_prompts("research", "research_agent", "en")pm.load_prompts("guide", "chat_agent", "en")-+initial_count = len(pm._cache)-+# Clear only research cachepm.clear_cache("research")-+# Guide prompts should still be cachedassert any("guide" in k for k in pm._cache)assert not any("research" in k for k in pm._cache)@@ -122,7 +122,7 @@ class TestPromptManager:def test_get_prompt_helper(self):"""Test the get_prompt helper method."""pm = get_prompt_manager()-+test_prompts = {"system": {"role": "You are a helpful assistant",@@ -130,15 +130,15 @@ class TestPromptManager:},"simple_key": "Simple value",}-+# Test nested accessrole = pm.get_prompt(test_prompts, "system", "role")assert role == "You are a helpful assistant"-+# Test simple access (no field)simple = pm.get_prompt(test_prompts, "simple_key")assert simple == "Simple value"-+# Test fallbackmissing = pm.get_prompt(test_prompts, "nonexistent", "field", "fallback_value")assert missing == "fallback_value"@@ -146,7 +146,7 @@ class TestPromptManager:def test_language_fallback(self):"""Test language fallback chain."""pm = get_prompt_manager()-+# Even with a potentially missing language, should fallbackprompts = pm.load_prompts("research", "research_agent", "zh")assert isinstance(prompts, dict)@@ -154,13 +154,13 @@ class TestPromptManager:def test_reload_prompts(self):"""Test force reload bypasses cache."""pm = get_prompt_manager()-+# Load and cacheprompts1 = pm.load_prompts("research", "research_agent", "en")-+# Force reloadprompts2 = pm.reload_prompts("research", "research_agent", "en")-+# They should be equal but not the same objectassert prompts1 == prompts2# After reload, cache should have fresh entry@@ -197,4 +197,3 @@ class TestPromptManagerLanguages:if __name__ == "__main__":pytest.main([__file__, "-v"])-