STRUCTURED-OUTPUTS-TOOL-USE5 MIN READ
Sort the Safeguards: Schema or Runtime?
Sort validation rules into schema-level constraints versus runtime business checks.
Devon's purchase-order assistant needs both schema constraints and runtime validation. Sort the safeguards. JSON Schema constraint Runtime validator Currency is one of the allowed enum values schema Amount is greater than zero No undeclared extra fields are accepted Supplier is active in the live vendor database runtime Approval token is fresh for this order Department budget still has room Validation placement Moved from one big validator to layered safeguards Ask whether the rule depends only on the JSON value or on live business state.
Read the full lesson
Sign up free — one personalized lesson every day, matched to your role and goals.
Already have an account? Sign in