Integrates Apple's on-device FoundationModels framework to build privacy-first, offline-capable AI features for iOS applications.
The foundation-models-on-device skill provides developers with standardized patterns and implementation guides for Apple's native language model framework in iOS 26+. It simplifies the integration of Apple Intelligence by covering critical workflows including model availability checks, session management, and advanced features like structured data extraction via the @Generable macro. By following these patterns, developers can implement high-performance text generation, custom tool calling, and real-time snapshot streaming while adhering to hardware constraints like the 4,096-token context window and ensuring all data remains securely on the user's device.
主な機能
01Custom tool calling for domain-specific AI actions
02Model availability and hardware eligibility validation
03Real-time snapshot streaming for responsive SwiftUI integrations
04Context window management for the 4,096 token limit
05Structured output generation using @Generable and @Guide macros
060 GitHub stars
ユースケース
01Implementing custom AI tools to perform local app actions via natural language
02Developing privacy-preserving text summarizers that work entirely offline
03Extracting structured data from natural language for automated form filling