Apple’s Foundation Models framework gives iOS developers direct access to the on-device language model behind Apple Intelligence. But building a useful AI application involves much more than sending a prompt and displaying a response.
In this course, you will build a complete AI chat application using SwiftUI and the Foundation Models framework. You will begin by creating a basic language model session and then gradually develop the models, views, and services needed to support a complete chat experience. You will use @Generable to create strongly typed responses and build a chat engine responsible for communicating with the model. You will then display user and assistant messages using a custom SwiftUI interface.
Next, you will extend the model with tools. You will create a reusable HTTP client and build a Movie Tool that searches the OMDb API. The language model will be able to recognize movie-related requests, invoke the tool, and use the returned information to generate its response.






