foundation model

Asked on 06/11/2025

2 searches

The Foundation Models framework was introduced at WWDC 2025, providing developers with access to an on-device large language model through a Swift API. This framework is available on macOS, iOS, iPadOS, and VisionOS, and it allows for the enhancement of app features such as personalized search suggestions, content generation, and more, all while maintaining user privacy since it runs on-device.

Key features of the Foundation Models framework include:

  • On-Device Processing: Ensures privacy and allows the model to run offline.
  • Swift API: Simplifies integration with just a few lines of code.
  • Guided Generation: Allows for structured output using Swift types, making it easier to integrate with app views.
  • Tool Calling: Enables the model to autonomously execute code defined in your app, enhancing functionality.
  • Safety and Guardrails: Built-in guardrails help prevent harmful outputs, and developers can add their own safety rules.

For more detailed information, you can explore sessions like Meet the Foundation Models framework and Deep dive into the Foundation Models framework. These sessions cover the framework's capabilities, including guided generation, tool calling, and safety considerations.

foundation model | Ask WWDC