Pass outputOptions: null to run() to disable the retry behavior
entirely (equivalent to { maxRetries: 0 }); omitting the option uses the
defaults below.
Type declaration
OptionalmaxRetries?: number
Re-prompts when a run ends without its output type. Defaults to 2.
Structured-output behavior for
AgentSession.run.Pass
outputOptions: nulltorun()to disable the retry behavior entirely (equivalent to{ maxRetries: 0 }); omitting the option uses the defaults below.