- Glossary
- is_error
Glossary term
is_error
A flag on a tool_result that tells the model the tool call failed.
Open lesson 34.3
Structured errors: isError, errorCategory, isRetryable · Chapter 34, and 4 more lessons below
In plain words
Return a clear, actionable error message so the model can retry, try another approach or explain the failure.
Taught in
- 34.3Structured errors: isError, errorCategory, isRetryableChapter 34, Designing good tools · main lesson
- 33.2The request, tool_use, tool_result cycleChapter 33, The tool use loop
- 33.5Forcing tools to run in orderChapter 33, The tool use loop
- 43.4Propagating errors instead of swallowing themChapter 43, Subagents
- 47.3Replanning when a step failsChapter 47, Plan-and-execute and ReWOO