Is a very simple and thrown together (aka, this might have some weird bugs) C++ wrapper for the macOS Foundation Models API (available on macOS 26) which allows Swift code to use Apple Intelligence.
See a proper example in test.cpp
Caution
This is ONLY supported on macOS Tahoe (which is currently in beta).
Compiling is pretty simple. For reference, I used clang++ (with C++20) and swift.