The four kinds of help

One equation, four kinds of help.

Read the full transcript Watch on YouTube

Why this matters.

Step 2 of the quick start. Your first tutor gains a choice on every message. Guided asks the next question, Feedback checks each line and finds the slip, Explain unpacks a worked step, and Diagnostic reads a finished quiz. Every receipt keeps its kind.

Four kinds of help. One API.

See the quick start

Every word of it.

Chapters11
On screen17
  • 0:00The four kinds of help
    The Learn API
    By ForeverLearning
  • 0:09Step 1 of 3: paste the prompt into your coding assistant, in your first tutor’s folder.
  • 0:09PROMPT in your first tutor’s folder, for any AI coding assistant
    Goal: one tutor, four kinds of help. On each message the learner
    chooses: Guided while working on a problem, Feedback to check
    finished work, Explain for a worked example they don't follow,
    or Diagnostic for a quiz they finished.

    ...

    Rules:
    - Keep the API key on the server, in the FOREVERLEARNING_API_KEY
    environment variable. Read the API host from
    ...
    - Render each reply's Markdown (headings, lists, bold, code) and
    its math.
    ...
  • 0:19CHANGES your app, after the prompt
    + build.mjs
    + verify-live.mjs
    ~ learn.ts
    ~ package.json
    ~ public/app.js
    ~ public/index.html
    ~ public/style.css
    ~ README.md
    ~ server.ts

    $ npm start
  • 0:20Step 2 of 3: two new files and seven edits. Nothing else changes.
  • 0:28Step 3 of 3: choose the help. Guided asks the next question.
  • 0:36Feedback checks each line and finds the slip.
  • 0:48Explain unpacks the book’s step, then asks a question.
  • 0:59Diagnostic opens a new session on the finished quiz.
  • 1:09Three on any turn. Diagnostic for a session.
  • 1:16Every receipt keeps its kind. Diagnostic starts again at turn 0.
  • 1:16RECEIPTS receipts.jsonl, these four turns
    { "posture": "guided", "turn_index": 0, "safety_level": "clear", … }
    { "posture": "feedback", "turn_index": 1, "safety_level": "clear", … }
    { "posture": "explain", "turn_index": 2, "safety_level": "clear", … }
    { "posture": "diagnostic", "turn_index": 0, "safety_level": "clear", … }
  • 1:24What you just did.
  • 1:25Four kinds of help: one choice on each message.
  • 1:30Guided, Feedback and Explain share a session. Diagnostic opens its own.
  • 1:36Next: photos of handwritten work.
  • 1:47The Learn API
    By ForeverLearning
    Every reply on screen is real.
    Try it yourself today.
    developers.foreverlearning.ai
The exchange9
  • StudentI'm working on 2(x - 4) = 10. Where do I start?
  • LearnYou have a specific equation to work with, and you’re asking for the first move. Start by noticing what is being done to the parentheses.

    In 2(x - 4) = 10, what operation is happening to (x - 4)? What could you do to both sides to undo that operation?
  • StudentHere is my work: 2(x - 4) = 10, 2x - 4 = 10, 2x = 14, x = 7. Is it right?
  • LearnYou applied distribution, isolated the variable term, and divided to reach a value. I’ll check each line in order and trace the first change that affects the rest.

    Your starting equation 2(x - 4) = 10 holds as written. Your next line, 2x - 4 = 10, does not hold: this is a distribution error because the 2 must multiply both terms inside the parentheses, giving 2x - 8 = 10. Then 2x = 14 carries that earlier value; adding 8 to both sides gives 2x = 18. Finally, x = 7 carries that value; dividing by 2 gives x = 9. Practice: when a number is outside parentheses, check that it reaches every term inside. As a separate check, substitute the resulting value into the original equation and compare both sides.
  • StudentMy book's solution says: 2(x - 4) = 10, so x - 4 = 5, so x = 9. Why can you divide both sides by 2 first?
  • LearnThe point you’re asking about is why dividing by the outside 2 can happen before handling the parentheses.

    An equation stays balanced when you perform the same reversible operation on both sides. Here, the entire left side is 2(x - 4), so dividing by 2 cancels the multiplication by 2:

    2(x - 4) ÷ 2 = 10 ÷ 2

    That leaves x - 4 = 5. The parentheses stay together because the 2 was multiplying the whole group. Analogy: if two identical bundles weigh 10 units, one bundle weighs 5 units. What operation would undo the - 4 next?
  • StudentI finished the practice quiz. Here are my answers: 1. Solve 3x + 5 = 20. 3x = 15, x = 5 2. Solve 2(x - 4) = 10. 2x - 4 = 10, 2x = 14, x = 7 3. Simplify 4x + 3x - 2. 7x - 2 4. Solve x/3 = 4. x = 12 5. Solve -3x + 4 = -5. 3x = 5 + 4, 3x = 9, x = 3
  • LearnI'm Learn. This assessment will examine the reasoning in your finished quiz without changing or teaching the solutions. For the first question, how did you get from 3x + 5 = 20 to 3x = 15?

    Explain your reasoning in your own words, starting with the first problem.
  • The appGuided: work on a problem. Feedback: check finished work. Explain: understand a supplied worked example. Diagnostic: paste your finished quiz first, then answer the tutor's questions. Guided, Feedback and Explain share a teaching session. Switching into or out of Diagnostic starts a new session and closes the previous one, billed separately. Allow about 19 seconds. Each successful turn costs 5 cents.

Four kinds of help: one choice on each message.

A learner-safe learning system. One API call away.

Start building