Fourth revision: OpenRouter, live tool stages, Explain layout, share sections
All checks were successful
Verify and publish V2 container / build-and-push (push) Successful in 29s
All checks were successful
Verify and publish V2 container / build-and-push (push) Successful in 29s
- Interactive blocks are encouraged by default; Explain gets a reduced library and never writes practice questions. - Assistant tool steps breathe while running, show live stages from generation and the Python check, and read in the past tense when done. - The assistant asks before searching the web when class materials do not cover a question; clarifying questions list every class's exams and never ask about format (always NCLEX). - Explain opens beside the question from 900px wide, moving the question left while open and back on the next one. - Generate dialog drops the practice set/exam switch (presets cover it) and the Generate buttons lose their icon. - Python check notes are green when every check passed, applied fixes neutral. - Share pages group by exam, then Quizzes, Flashcards, Notes, Class Materials, hiding empty groups; the class page uses the same order. "Documents" is now "Class Materials". - OpenRouter provider replaces the Ollama type; migration 6 turns Ollama connections into OpenAI-compatible ones at /v1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
c595e0ff2c
commit
25bc03ea75
45 changed files with 663 additions and 329 deletions
|
|
@ -155,9 +155,23 @@ export const GENUI_ROOT = 'Stack';
|
|||
|
||||
export const GENUI_PREAMBLE = `## Interactive blocks in replies
|
||||
|
||||
Your replies are Markdown. When a visual or interactive element genuinely helps, embed it in the reply as a fenced code block tagged openui-lang: a chart of the student's scores, a comparison table, a process as steps, a calculator with sliders, a quick self-check question, a few flashcards, or follow-up suggestions. Text outside the fences stays ordinary Markdown, so write your explanation before and after the block.
|
||||
Your replies are Markdown, and they can also contain interactive blocks: fenced code blocks tagged openui-lang, written in the small language described below. The app renders each block as a live component inside the reply. Use them actively; they are what makes this assistant better than a plain chat. Text outside the fences stays ordinary Markdown, so write your explanation before and after the block.
|
||||
|
||||
Keep simple answers simple: no block when a sentence or a Markdown list does the job. Use at most two blocks in one reply. Each block is a small, separate program written in openui-lang as described below, and nothing else goes inside the fence.`;
|
||||
Reach for a block whenever the reply has one of these shapes:
|
||||
- Two or more things compared (drugs, conditions, normal vs abnormal values, signs of left vs right heart failure): a Table.
|
||||
- A sequence (a procedure, a pathophysiology chain, nursing priorities in order): Steps.
|
||||
- Numbers about the student (scores, attempts, weak topics): a chart or Stat cards.
|
||||
- Any calculation (doses, drip rates, fluid balance, BMI): a small calculator with Slider or NumberInput bound to $variables and a Stat showing the result.
|
||||
- A safety-critical point (a contraindication, a black box warning, a priority action): a Callout with tone danger or warning.
|
||||
- Teaching a concept the student can practise: end with a quick self-check Question and FollowUps.
|
||||
|
||||
Most teaching answers of more than a few sentences should include one block. Plain Markdown is right only for small talk, one-line answers and replies about the app itself. Use at most two blocks in one reply. Each block is a separate program and nothing else goes inside the fence.`;
|
||||
|
||||
/** Explain is a short explanation beside a question or card: information only, no practice. */
|
||||
export const GENUI_EXPLAIN_RULES = [
|
||||
'This is an explanation, not a practice session: never include a Question, Flashcards or anything else that quizzes the student.',
|
||||
'Use a block only when it makes the explanation clearer: a Table comparing the choices or conditions, Steps for a mechanism, a Callout for a safety point.',
|
||||
];
|
||||
|
||||
export const GENUI_RULES = [
|
||||
'Fence each block as ```openui-lang … ``` and start it with root = Stack([...]).',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue