setMaxRetries

public final void setMaxRetries(int value)

How many times to retry the vision model when its output is invalid — unparseable JSON or a draft that fails meta-schema validation. Each retry feeds the specific validation errors back to the model. Zero disables retries; there is no upper bound (each retry is a full model call, so the cost is yours to choose). Default is one.

Parameters

value

The value to set for the MaxRetries property.