Apple Foundation Models
Integrates Apple's Foundation Models framework to build privacy-focused, on-device AI capabilities for iOS and macOS applications.
The Apple Foundation Models skill empowers developers to leverage Apple's native on-device AI framework for building secure and efficient LLM features. It provides comprehensive guidance on implementing the SystemLanguageModel API, managing LanguageModelSessions, and utilizing guided generation to map prompts directly to Swift types. With support for tool calling, safety guardrails, and localization, this skill helps developers create high-performance AI experiences that run entirely on-device across iOS, macOS, and visionOS without compromising user privacy.
Key Features
01Native on-device LLM session management via SystemLanguageModel
02Guided generation for extracting structured Swift types from prompts
03Extensible tool calling for custom on-device logic
045 GitHub stars
05Support for localized and multilingual AI workflows
06Integrated safety guardrails and content handling
Use Cases
01Generating structured data from natural language using Generable Swift types
02Building offline-first AI assistants for iOS and macOS apps
03Implementing privacy-centric text processing and summarization on-device