Apple has introduced the Foundation Models framework, allowing developers to incorporate advanced AI features into their apps.
The framework provides on-device access to a large language model, ensuring privacy, offline functionality, and no additional app size.
Features include getting structured answers through Guided Generation, smoother streaming with Snapshots, enabling app 'skills' with Tool Calling, and maintaining conversation context with Stateful Sessions.
Developers can experiment with these features in Xcode Playgrounds and access the official WWDC25 session 'Meet Foundation Models' for more details.