Structured Outputs and Business Validation
Generated free-form text can be useful for readable summaries, but proposed field updates require a predictable structure. For example, a suggestion may contain the target field, candidate value, evidence references, uncertainty category and extraction status. Some providers support schema-constrained generation. The official OpenAI Structured Outputs documentation describes JSON Schema-based output controls, subject to supported schemas and model capabilities. Even a structurally valid response is not necessarily factually correct. Application validation must separately check whether the source exists, the user can access it, the target field accepts the value, and the evidence supports the proposed meaning.
A currency amount should not become a confirmed quotation simply because it matches a numeric field format. An invalid or unsupported suggestion should be rejected with a recorded reason. The application should also handle explicit refusals, empty responses, incomplete output and unexpected provider responses without corrupting customer records.


