DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.
Python ai-agentsai-tutorclawbotcli-tooldeepresearchinteractive-learninglearningmulti-agent-systemsrag
fix(config): seed the runtime visualize defaults
Bingxi Zhao (Frank)807a7983fe68
diff --git a/deeptutor/services/setup/init.py b/deeptutor/services/setup/init.pyindex 00344bbb9..661489094 100644--- a/deeptutor/services/setup/init.py+++ b/deeptutor/services/setup/init.py@@ -81,7 +81,7 @@ DEFAULT_AGENTS_SETTINGS: dict[str, Any] = {"research": {"temperature": 0.5, "max_tokens": 12000},"question": {"temperature": 0.7, "max_tokens": 4096},"co_writer": {"temperature": 0.7, "max_tokens": 4096},- "visualize": {"temperature": 0.4, "max_tokens": 16384},+ "visualize": {"temperature": 0.15, "max_tokens": 16000},# A book spine is one JSON payload holding a concept graph plus every# chapter, and a reasoning model pays for its hidden tokens out of the# same budget. 4096 (the old, unreachable global fallback) truncateddiff --git a/tests/services/config/test_visualize_params.py b/tests/services/config/test_visualize_params.pyindex f4316fcd6..c7c9c828d 100644--- a/tests/services/config/test_visualize_params.py+++ b/tests/services/config/test_visualize_params.py@@ -16,6 +16,7 @@ import yamlfrom deeptutor.services.config import capabilities_settings as modulefrom deeptutor.services.config.capabilities_settings import get_visualize_params+from deeptutor.services.setup.init import DEFAULT_AGENTS_SETTINGSdef _settings_root(tmp_path: Path, content: dict[str, Any]) -> Path:@@ -34,6 +35,14 @@ def test_visualize_defaults_match_the_previously_hardcoded_call(assert get_visualize_params() == {"temperature": 0.15, "max_tokens": 16000}+def test_fresh_setup_keeps_the_visualize_runtime_default() -> None:+ """Seeding agents.yaml must not change a fresh install's visualize budget."""+ assert (+ DEFAULT_AGENTS_SETTINGS["capabilities"]["visualize"]+ == module._SIMPLE_LLM_DEFAULTS["visualize"]+ )++def test_visualize_budget_is_overridable_from_agents_yaml(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None: