Use output validation to keep the value returned by an agent inside the contract expected by your application. Model retries apply to failed model requests; tool retries should remain explicit inside the tool implementation when they are safe.
The run record preserves the number of model attempts for each step. A retry does not discard prior completed tool results.
Validate the final result
Set OutputSchema on AgentDefinition when downstream code requires a structured result. Validation runs before the result is marked complete, so invalid output fails at the agent boundary rather than later in your application.
Inspect the result
Use stop conditions for budgets and hard limits, and errors and troubleshooting for failure handling. Last modified on July 26, 2026