Apple LLM supports structured outputs using JSON Schema. You can use libraries like Zod to generate a schema, which is then used to guide the model's output.
min
, max
, exclusiveMin
, exclusiveMax
date-time
, time
, date
, duration
, email
, hostname
, ipv4
, ipv6
, uuid