include_quality: true to get a heuristic confidence score (0–1) with every response. Combine with min_quality to automatically retry with a better model when the score is too low.
Get a quality score
Auto-retry on low quality
Setmin_quality to a threshold. If the response scores below it, the system automatically retries with a higher-quality model.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
include_quality | boolean | false | Include a quality score in the response. |
min_quality | number | — | If the score falls below this threshold (0–1), retry with a better model. |