Block 1 of 6~2 min
From parsing free text
Chain of thought gave the model room to compute, but no new facts and no actuators. Early LM agents wrote actions as free text (search[Dunmore]) and a regex parsed them. The format is only a convention: wrong casing, quotes, or a missing tool name each cost a step. If one action in 50 is malformed (), twenty actions fail at least once with probability .
Key idea. Declare every tool as a typed function — name, model-facing description, JSON Schema for arguments. The model emits structured calls; the runtime validates, executes, and returns results (including errors) as messages. Where validity must be guaranteed, constrain decoding.