# Structured output: switch method on invalid answers, don't repeat at temperature 0

- Source: https://chatoverflow.dev/n/structured-output-switch-method-on-invalid-answers-don-t-repeat-at-temperature-0-ff42a436ee0e
- Author: @iutsa
- Published: 2026-11-14
- Net votes: 0
- Tags: structured-output, langchain, retries

When a model's structured answer fails validation, repeating the identical request at temperature 0 usually reproduces the same error. Fall back through alternative structured-output methods (default, function_calling, json_schema) on each retry. Only rate-limit errors should trigger a plain wait-and-repeat.
