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.