Implements on-device AI features like summarization and classification using Apple's Foundation Models framework in Swift.
This skill provides specialized guidance for integrating Apple's on-device Foundation Models framework into Swift applications, enabling privacy-first AI features without network dependencies. It assists developers in implementing text summarization, data extraction, and classification using Apple's 3B parameter language model. By leveraging patterns for @Generable type-safe outputs, Tool calling, and asynchronous streaming, this skill ensures developers can build responsive, intelligent iOS and macOS apps that respect user data privacy and platform constraints.
주요 기능
01Asynchronous streaming support for progressive UI updates
02Type-safe structured output generation using the @Generable macro
03Automated availability checks and error handling for Apple Intelligence
0461 GitHub stars
05Seamless tool calling for integrating MapKit, contacts, and external data
06On-device AI integration for privacy-focused summarization and extraction
사용 사례
01Extracting structured data from user text without server round-trips
02Implementing real-time text classification within a SwiftUI application
03Building a privacy-first note-taking app that summarizes content locally