Module 07 Summary
What this module established
A tool's docstring and schema are the model's interface to it - write them for the model, and put the guarantees in validation. The description shapes which tool gets chosen; the validation decides what happens when it is chosen wrongly.
Carry forward
- Enforce the registry and put real tool names in every rejection. A high invention rate means the goal exceeds the tools.
- Bound steps, tokens, time and repeated calls. The repeat detector usually fires first and saves the most.
- Log arguments, not just tool names. Near-duplicate arguments across consecutive calls mean retrying, not progressing.
- Tools do not imply an agent. Use a chain unless the sequence depends on run-time results.
Before moving on
Move on when every refusal branch has a direct test, all four stopping conditions exist, and you have found one wasted call from argument logs.
