stopped. Separately, the step limit caps the model turns in each run or continue call. Rust has only the step limit.
Combine built-in limits
Available helpers
Helpers sit on
AgentSdk in C#, PHP (AgentSdk::), and Java, on PhaseoAgentSdk in Ruby, and are package functions in TypeScript, Python, and Go. The duration argument differs:
When conditions are checked
The languages don’t check conditions at the same point, and they don’t treat the step limit the same way:Read why a run stopped
A stopped run is a normal return, not an error. Check that the run’s status isstopped, read its stop reason, then read the usage and the last step. Decide in your application which reasons count as success, retryable, or worth showing the user.