Apple's Foundation Models, Part 2: Typed Output with @Generable, and What the Type System Can't Promise
This story is from 2026-09-26. It is preserved in the archive; the latest stories are on the live feed.
The on-device model can return a Swift struct instead of a string. I ran a real school notice through it twenty times, as text and as a photo, to find out exactly what the guarantee covers and where it stops. TL;DR Mark a struct or enum with @Generable , pass it to respond(generating:) , and the fr…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-09-26 02:23 · DEV Community — AI
Apple's Foundation Models, Part 2: Typed Output with @Generable, and What the Type System Can't Promise