Code along with the Foundation Models framework
Asked on 2025-10-13
1 search
The session "Code-along: Bring on-device AI to your app using the Foundation Models framework" at WWDC 2025 provides a detailed walkthrough on how to integrate Apple's Foundation Models framework into your app. This framework allows you to leverage on-device large language models to create intelligent features while keeping user data private.
In this session, you will learn how to:
- Use prompt engineering to interact with the model effectively.
- Implement tool calling to allow the model to autonomously fetch and use external data.
- Utilize guided generation to receive structured output that fits your app's data structures.
For a more hands-on experience, you can follow along with the code-along session to build an app that generates travel itineraries using the Foundation Models framework. This session is a great way to see the practical application of these concepts in a real-world scenario.
If you're interested in specific parts of the session, here are some chapter markers you might find useful:
These chapters will guide you through the key components of using the Foundation Models framework effectively in your app.

Code-along: Bring on-device AI to your app using the Foundation Models framework
Develop generative AI features for your SwiftUI apps using the Foundation Models framework. Get started by applying the basics of the framework to create an awesome feature. Watch step-by-step examples of how to complement the models with tools you build, stream results, and apply further optimizations for great performance.

Discover machine learning & AI frameworks on Apple platforms
Tour the latest updates to machine learning and AI frameworks available on Apple platforms. Whether you are an app developer ready to tap into Apple Intelligence, an ML engineer optimizing models for on-device deployment, or an AI enthusiast exploring the frontier of what is possible, we’ll offer guidance to help select the right tools for your needs.

Platforms State of the Union
Discover the newest advancements on Apple platforms.