mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-07 04:58:08 +08:00
The assistant can put [[answer:q1]] on its own line after a question. The reply renderer replaces it with a compact answer card; Attach puts the written answer on the learner's next message as an answer attachment, and the card folds to a chip that links to it. The user message shows the answer as a chip that links back to the question. The model receives the attached answers with the next turn and never pauses: there is no tool call and no ask_user resume. The backend keeps answer attachments out of document extraction and appends a grounded answers block to the user message. Verified: 3 backend tests, 1412 node tests, the answer-card Vitest, typecheck, and the 4-test composer Playwright audit.