Configure model retries
Validate the final result
SetOutputSchema 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.