🧩Result Subtype
Also known as error_max_turns, error_max_budget_usd, error_during_execution, Claude Agent SDK Result Subtype
The field that says if a run finished, or which limit stopped it.
Think of it like
It is like the light on a washer: done, out of time, or stuck.
Example
Mia's agent sometimes stops early. She logs the subtype and sees error_max_turns, so she raises max turns.
Why it matters
An ended run is not a done task, and the subtype is how you tell them apart.
Definition
Common mistake
Key takeaways
- 1success. Finished.
- 2error_max_*. A limit was hit.
- 3Check it first. Then read result.