e4dcfc49aa
Tests / Import Check (Python 3.13) (push) Has been cancelled
Tests / Import Check (Python 3.14) (push) Has been cancelled
Tests / Python Tests (Python 3.11) (push) Has been cancelled
Tests / Python Tests (Python 3.12) (push) Has been cancelled
Tests / Python Tests (Python 3.14) (push) Has been cancelled
Tests / Test Summary (push) Has been cancelled
Tests / Lint and Format (push) Has been cancelled
Tests / Web Node Tests (push) Has been cancelled
Tests / Import Check (Python 3.11) (push) Has been cancelled
Tests / Import Check (Python 3.12) (push) Has been cancelled
Tests / Python Tests (Python 3.13) (push) Has been cancelled
34 lines
1.1 KiB
Python
34 lines
1.1 KiB
Python
"""Question generation package.
|
|
|
|
The main entry point is :class:`~deeptutor.agents.question.pipeline.QuestionPipeline`.
|
|
Lightweight names (``FollowupAgent``, ``QuizTemplate``, ``QuizPair``, etc.)
|
|
are resolved lazily so callers that only need one symbol don't eagerly
|
|
import the full pipeline + its LLM dependencies.
|
|
"""
|
|
|
|
from importlib import import_module
|
|
from typing import Any
|
|
|
|
__all__ = [
|
|
"AgentCoordinator",
|
|
"FollowupAgent",
|
|
"QuestionPipeline",
|
|
"QuizTemplate",
|
|
"QuizPair",
|
|
"QuizPlan",
|
|
"QuizHistoryEntry",
|
|
]
|
|
|
|
|
|
def __getattr__(name: str) -> Any:
|
|
if name == "AgentCoordinator":
|
|
module = import_module("deeptutor.agents.question.coordinator")
|
|
return getattr(module, name)
|
|
if name == "FollowupAgent":
|
|
module = import_module("deeptutor.agents.question.agents.followup_agent")
|
|
return getattr(module, name)
|
|
if name in {"QuestionPipeline", "QuizTemplate", "QuizPair", "QuizPlan", "QuizHistoryEntry"}:
|
|
module = import_module("deeptutor.agents.question.pipeline")
|
|
return getattr(module, name)
|
|
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
|