Foundation Models On Device provides comprehensive integration patterns for Apple's on-device language model using the FoundationModels framework in iOS. It covers checking model availability, managing single-turn and multi-turn sessions, and utilizing the @Generable macro for structured data output. Developers can also implement custom tool calling for domain-specific tasks and perform snapshot streaming for real-time user interface updates. Reach for this skill when building privacy-preserving, offline-capable artificial intelligence features into iOS applications.
Key Features
System language model availability checking
Guided structured output generation using the @Generable macro
Custom tool calling for domain-specific tasks
Snapshot streaming for real-time user interface updates
Privacy & Security
Data Collection
This tool follows industry-standard security practices and only collects data necessary for functionality.