A simple chat app using the FoundationModels framework introduced in WWDC 2025.
This app contains the following.
- Start a new session / load one from conversation history
- Get a response (with or without streaming)
- Specify system prompt (instructions)
- Observable tool
- Inspect call graph and generate views based on the
transcript
property of theLanguageModelSession
For more details, please refer to my blog: SwiftUI: Demystify Foundation Model in SUPER Detail! With a Chat App!