HKUDS/DeepTutor · error · ValueError
Book {book_id} not found
Error message
Book {book_id} not found What it means
Error "Book {book_id} not found" thrown in HKUDS/DeepTutor.
Source
Thrown at deeptutor/book/engine.py:448
return book, proposal
async def _run_ideation(self, ctx: IdeationContext, language: str) -> BookProposal:
agent = IdeationAgent(language=language)
return await agent.process(ideation_context=ctx)
# ── Stage 2: Spine ───────────────────────────────────────────────────
async def confirm_proposal(
self,
*,
book_id: str,
edited_proposal: BookProposal | None = None,
stream: StreamBus | None = None,
) -> tuple[Book, Spine]:
"""User confirms (and optionally edits) the proposal → run SpineAgent."""
book = self.storage.load_book(book_id)
if book is None:
raise ValueError(f"Book {book_id} not found")
if edited_proposal is not None:
book.proposal = edited_proposal
book.title = edited_proposal.title or book.title
book.description = edited_proposal.description or book.description
bus = stream or get_book_bus(book_id)
bstream = BookStream(bus)
proposal = book.proposal or BookProposal(title=book.title)
inputs = self.storage.load_inputs(book.id) or BookInputs(
user_intent=book.title or "",
knowledge_bases=list(book.knowledge_bases),
language=book.language,
)
async with bstream.stage(STAGE_SPINE):
# ── Sub-stage 1: Source exploration ──────────────────────View on GitHub (pinned to 3e82f13042)
When it happens
Trigger: Thrown at deeptutor/book/engine.py:448 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of HKUDS/DeepTutor@3e82f13042 (2026-08-27).
Data as JSON: /api/errors/3e37f498391a9d89.
Report an issue: GitHub.