Phase 08Structure, tools and the agent you did not need398 of 434
Partial JSON, refusals and repair
Truncation at the token limit, a refusal where you expected an object, and a trailing comma at three in the morning.
Build35 minAI adversary
Build this in your own editor
This one runs on your machine rather than in the browser workbench. Work to the outcomes below, then come back and mark it complete.
You should now be able to
- Detect a truncated response before parsing it
- Handle a refusal as a valid outcome rather than an exception
- Decide between repairing, retrying and failing
Loading…