Apple Foundation Models
Integrates Apple's Foundation Models framework to build on-device AI and large language model capabilities into iOS, macOS, iPadOS, and visionOS applications.
This skill empowers developers to leverage Apple's native Foundation Models framework for building privacy-focused, on-device AI features. It provides comprehensive guidance on implementing the SystemLanguageModel API, managing LanguageModelSessions, and utilizing guided generation for structured Swift outputs. Whether you are implementing custom tool calling, crafting effective prompts, or ensuring safety with guardrails, this skill offers the implementation patterns and best practices needed to deliver performant, localized AI experiences across Apple's ecosystem.
主要功能
01Custom tool calling to extend model capabilities with dynamic logic
020 GitHub stars
03Guided generation for producing structured, type-safe Swift data
04Safety guardrail implementation and multilingual localization support
05On-device LLM implementation using the SystemLanguageModel API
06Prompt engineering patterns and instruction building for Apple's architectures
使用场景
01Generating structured Swift types from natural language prompts using the Generable protocol
02Building privacy-preserving mobile apps that process sensitive data locally using LLMs
03Extending on-device AI functionality with custom tools for real-time application data