Apple FoundationModels On-Device

0•

Integrates Apple's on-device language models into iOS applications for privacy-preserving text generation, structured output, and tool calling.

This skill provides specialized guidance for implementing Apple's FoundationModels framework in iOS 26+ environments. It enables developers to build high-performance, privacy-first AI features that run entirely on-device, supporting offline usage and secure data handling. By leveraging core patterns like @Generable for structured data, custom tool calling for domain-specific logic, and snapshot streaming for real-time UI updates, developers can seamlessly integrate Apple Intelligence into their mobile workflows while managing hardware constraints and model availability.

Key Features

010 GitHub stars
02Device-side model availability and eligibility checking patterns
03Structured data extraction using @Generable and @Guide constraints
04Custom tool calling implementation for domain-specific AI tasks
05Multi-turn conversation management with persistent session context
06Real-time snapshot streaming for fluid UI updates

Use Cases

01Building privacy-focused AI assistants that process sensitive user data locally
02Implementing offline-capable AI features for text summarization and content generation
03Extracting structured objects like calendar events or contacts from natural language