mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 04:39:31 +08:00
- Add new `deeptutor/book/` module with multi-agent pipeline (ideation, spine, page planner, source explorer, synthesizer) and rich block system (text, code, figure, quiz, flash cards, callout, deep dive, timeline, animation, concept graph, etc.) - Add `/api/routers/book.py` and `deeptutor_cli/book.py` entry points - Add web UI under `web/app/(workspace)/book/` with sidebar, chat panel, page reader, spine editor, progress timeline, and block renderers - Move `deeptutor/agents/co_writer` -> `deeptutor/co_writer` and `deeptutor/agents/guide` -> `deeptutor/guide` (then remove guide entirely now superseded by book) - Remove legacy guide UI, hooks, types, and API router - Update visualize agents/prompts, notebook service, prompt manager, session turn runtime, and shared services to support new flows - Refresh chat composer, sidebar, notebook selector, and locales Made-with: Cursor
27 lines
956 B
Python
27 lines
956 B
Python
"""
|
|
Agents Module - Unified agent system for OpenTutor.
|
|
|
|
This module provides a unified BaseAgent class and module-specific agents:
|
|
- solve: Question solving agents (MainSolver, SolveAgent, etc.)
|
|
- research: Deep research agents (DecomposeAgent, ResearchAgent, etc.)
|
|
- question: Question generation agents (ReAct architecture, separate base)
|
|
- chat: Lightweight conversational agent with session management
|
|
|
|
Note: ``co_writer`` and ``book`` are independent top-level modules under
|
|
``deeptutor/`` (e.g. ``deeptutor.co_writer``, ``deeptutor.book``). They
|
|
still inherit from :class:`BaseAgent` defined here but are not part of
|
|
the ``deeptutor.agents`` package.
|
|
|
|
Usage:
|
|
from deeptutor.agents.base_agent import BaseAgent
|
|
|
|
class MyAgent(BaseAgent):
|
|
async def process(self, *args, **kwargs):
|
|
...
|
|
"""
|
|
|
|
from .base_agent import BaseAgent
|
|
from .chat import ChatAgent, SessionManager
|
|
|
|
__all__ = ["BaseAgent", "ChatAgent", "SessionManager"]
|