Foundation Models
Docs: <https://developer.apple.com/documentation/foundationmodels>. APIs are new, so check current docs instead of answering from memory.
- Check model availability before use and provide a fallback UI.
- Prefer guided generation (
@Generable,@Guide, orGenerationSchema) over parsing free text. - Private Cloud Compute needs the
com.apple.developer.private-cloud-computeentitlement.