RunOutputOptions: {
    maxRetries?: number;
    retryInstructions?: string;
}

Structured-output behavior for AgentSession.run.

Pass outputOptions: null to run() to disable the retry behavior entirely (equivalent to { maxRetries: 0 }); omitting the option uses the defaults below.

Type declaration

  • Optional maxRetries?: number

    Re-prompts when a run ends without its output type. Defaults to 2.

  • Optional retryInstructions?: string

    Override the built-in retry prompt.