Vibecoding 19: an answer with a shape
Three kinds of agent reply, how many arguments each needs, and the check a program runs before it acts on one. Lesson 19 of the Vibecoding from zero course.
A reply on its way in
- Read the kind
- Is the kind 0, 1 or 2?
- Count the arguments
- Enough: act. Too few: refuse
| Kind | Arguments needed | Verdict on a reply with none |
|---|---|---|
| 0 say | 0 | Accepted |
| 1 ask | 1 | Refused |
| 2 call a tool | 1 | Refused |
The program checks the shape first, so a half-formed answer never runs.