Apple FoundationModels On-Device
Integrates Apple's on-device FoundationModels framework for private, offline LLM text generation, structured outputs, and tool calling in iOS apps.
Enables seamless integration of Apple's on-device FoundationModels framework for iOS applications, unlocking privacy-first, offline AI capabilities. It guides developers through verifying system model availability, orchestrating single and multi-turn conversational sessions, enforcing compile-time structured outputs via the @Generable and @Guide macros, executing custom tool calling, and rendering real-time snapshot streams in SwiftUI within hardware and token constraints.
Key Features
01Generate compile-time structured outputs using @Generable and @Guide macros
02Orchestrate single-turn and multi-turn LanguageModelSessions
035 GitHub stars
04Build custom on-device tool calling with typed arguments and error handling
05Verify system model availability and Apple Intelligence readiness
06Stream structured snapshot responses into real-time SwiftUI interfaces
Use Cases
01Empowering on-device language models to trigger local application actions via custom tools
02Extracting strictly typed structured data from natural language input into Swift models
03Adding privacy-preserving, offline text generation and summarization to iOS applications