Log inStart free
LESSON 24.02 · 5 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Tools as slow, noisy actuators

Watch five tool calls take real time, fail at random and stop part way.


Pro lesson. Stage 1 is free to watch. Pro opens all 5 stages, 3 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 24.02 · TOOL BAY5 CALLS AS TEXT
01
Stage 1 of 5 · Calls as text
The policy writes each tool call as text. Calls 2, 3 and 4 use other formats than calls 1 and 5.
Explain it simply

Each line is one tool call, written by the model as plain text. Call 2 has extra spaces and a dot-slash in the path. Call 3 is JSON, and call 4 uses single quotes. A program must read all of them the same way.

Five tool calls as text. Call 2 has extra spaces, call 3 is JSON, and call 4 uses single quotes.

tool calls, tool timewriting timefailed triestimeoutcanonical actions, results
calls the policy writesworkspacecalc.pyutil.pytest_calc.pytests: not runreward: none yetread_file(path="src/calc.py")run_tests( path = "./tests/" ){"tool": "apply_patch", "patch": "fix.diff"}run_tests(path='tests')submit()calls the policy writesworkspacecalc.pyutil.pytest_calc.pytests: not runreward: none yetread_file(path="src/calc.py")run_tests( path = "./tests/" ){"tool": "apply_patch", "patch": "fix.diff"}run_tests(path='tests')submit()
Toy: 5 tool calls, a 3-file patch, 8 seeded runs
STAGE 1 / 5
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
ak∼π(⋅∣hk)\sy{a}{data}{a_k} \sim \pi(\cdot \mid h_k)
a1,…,a5 as texta_1, \dots, a_{5}\ \text{as text}

The policy writes call a_k from the history so far.

Common mix-ups

MYTHA timeout means the tool did nothing.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01With the exact parser, how many of the 5 calls are rejected?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 5
Unlock the full explainer
  • 4 more stages and 3 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.