Code along with the Foundation Models framework | Meet with Apple
Apple Developer
@appledeveloperAbout
Hello and welcome to the official Apple Developer YouTube channel.
Latest Posts
Video Description
Get hands-on experience using the Foundation Models framework to access Apple's on-device LLM. In this online session, you can code along with us as we build generative AI features into a sample app live in Xcode. We'll guide you through implementing core features like basic text generation, as well as advanced topics like guided generation for structured data output, streaming responses for dynamic UI updates, and tool calling to retrieve data or take an action. All are welcome to attend the session. To actively code along, you'll need a Mac with Apple silicon that supports Apple Intelligence running the latest release of macOS Tahoe 26 and Xcode 26. Check out these resources to get started: Download the project files: https://developer.apple.com/events/resources/code-along-205/downloads/code-along-205.zip Explore the code along guide: https://developer.apple.com/events/resources/code-along-205/ To explore additional sessions, appointments, and workshops, view the full schedule of Meet with Apple activities worldwide. https://apple.co/Meet-with-Apple 1:33 - Overview 10:34 - Foundation Models framework basics 32:47 - Generating structured outputs 49:23 - Prompting techniques 1:09:57 - Streaming responses 1:18:57 - Tool calling 1:38:22 - Performance and optimization
Essential Mac Setup
AI-recommended products based on this video

140W C to C Super Fast Charger,Compatible with MacBook Pro 16, 15, 14, 13 Inch, MacBook Air 13 Inch, iPad Pro 2021/2020/2019/2018, Lenovo and All Type C Devices 7.2ft

IFEART 70W USB C Charger for MacBook Air MacBook Pro 13 14 15 16 inch 2025 2024 2023 2022 2021 2020 2019 2018, M1 M2 M3 M4 Laptop USB C Power Adapter, 6.6ft USB C to C Cable, Original Quality

140W C to Magnetic 3 Charger, Compatible with MacBook Air 13, 15 Inch/Mac Book Pro 14, 16 Inch, M1/M2/M3/M4 from 2021/2022/2023/2024/2025 Models, 6.6FT【Original Quality】

Adamanta 32GB (2x16GB) Memory Upgrade Compatible for 2017 Apple iMac 27" Retina 5K Display DDR4 2400Mhz PC4-19200 SODIMM 2Rx8 CL17 1.2v Dual Rank RAM DRAM

Magnetic Car Mount Air Vent Cell Phone Holder, Universal Vehicle Dash Dashboard Ac Airvent Cellphone Magic Stand with Clip Hook, for iPhone 16 15 Samsung Lenovo Google etc

CUTE STONE Little Girls Play Purse, Toddler Purse with Handbag, Heels, Pretend Makeup Kit, Toy Phone, Light-Up Magic Wand, My First Purse Set with Princess Jewelry, Pretend Play Gift Toys for Kids

Magic Metaball Bouncing Ball, Children's Bouncing Ball, Magic Flying Saucer, Parent-Child Interaction, Transformation Flying Toy with 6 Light

Magic Metaball Bouncing Ball, Children's Bouncing Ball, Magic Flying Saucer, Parent-Child Interaction, Transformation Flying Toy with 6 Light

MAGIC JOHN 2 Pack for Samsung Galaxy S25 Ultra Privacy Tempered Glass Screen Protector, Bubble Free, Easy Installation, Auto Dust-Elimination

MAGIC JOHN 2 Pack for Samsung Galaxy S25+ Plus 6.7inch Privacy Tempered Glass Screen Protector, Bubble Free, Easy Installation, Auto Dust-Elimination

MAGIC JOHN 2 Pack for Samsung Galaxy S25 6.2inch Privacy Tempered Glass Screen Protector, Bubble Free, Easy Installation, Auto Dust-Elimination

2 Pieces Prank Squirt Pen, 2 In 1 Waters Ballpoint Pens, Magic Writable Water Spray Toy, Press To Spray Water Prank Toy, Squirt Pens School Supplies Funny Fighting Game

MOSISO Laptop Case 13 inch, 13 inch Laptop Sleeve Bag Compatible with MacBook Air 13 M4 M3 M2 M1 2025-2018 / Pro 13 M2 M1 2025-2016, Neoprene Computer Sleeve Bag with Small Case, Space Gray Global Recycled Standard

MOSISO Compatible with MacBook Air 13 inch Case 2021, 2020-2018 Release A2337 M1 A2179 A1932, Plastic Hard Shell&Keyboard Cover&Screen Film&Storage Bag for MacBook Air 13.3 inch Case, Crystal Clear

tomtoc 360° Protective Laptop Sleeve for 13-inch New MacBook Air M4/A3240 2025, M3/A3113, M2/A2681 M1/A2337 A2179 A1932, 13-inch MacBook Pro M2/A2686 M1/A2338, Water-Resistant Computer Case Bag Global Recycled Standard

MOSISO 13-14 inch Laptop Case, 13.3 inch Puffy Laptop Sleeve Compatible with MacBook Air 13 13.6 M4 M3 M2 M1/Pro 13/Pro 14,HP,Dell,ASUS, Lenovo, Polyester Horizontal Bag with Small Case, Rose Red Global Recycled Standard

Wireless Charging Case for AirPods Pro 1st / 2nd Gen with Type-C Charging Port, Compatible with AirPod Pro 2nd Generation Replacement Case, with Blue-Tooth Sync Button, No Earbuds

Cleaner Kit for Airpods Pro 1 2 3 Multi-Function Cleaning Pen with Soft Brush Flocking Sponge for Bluetooth Earphones Case Cleaning Tools White

Apple AirPods Pro 2 Wireless Earbuds, Bluetooth Headphones, Active Noise Cancellation, Transparency, Personalized Spatial Audio, High-Fidelity Sound, H2 Chip, USB-C Charging

Wireless Charger, 3 in 1 Charging Station, Fast Charging Station Foldable Charging Stand, Wireless Charging Station for Multiple Devices, Compatible with lPhone 17/16/15/14/13 Pro Max Airpods Watch

Anker 332 USB-C Hub (5-in-1) with 4K HDMI Display, 5Gbps - and 2 5Gbps USB-A Data Ports and for MacBook Pro, MacBook Air, Dell XPS, Lenovo Thinkpad, HP Laptops and More
![TP-Link USB C To Ethernet Adapter (UE300C) - J45 To USB C [Thunderbolt 3/4 Compatible] Type-C Gigabit Ethernet LAN Network Adapter, Compatible With Apple MacBook Pro 2017-2023, MacBook Air, And More](https://m.media-amazon.com/images/I/418xZkoG-RL._AC_UY654_FMwebp_QL65_.jpg)
TP-Link USB C To Ethernet Adapter (UE300C) - J45 To USB C [Thunderbolt 3/4 Compatible] Type-C Gigabit Ethernet LAN Network Adapter, Compatible With Apple MacBook Pro 2017-2023, MacBook Air, And More

Logitech G203 Wired Gaming Mouse, 8,000 DPI, Rainbow Optical Effect LIGHTSYNC RGB, 6 Programmable Buttons, On-Board Memory, Screen Mapping, PC/Mac Computer and Laptop Compatible - Black

Logitech G305 Lightspeed Wireless Gaming Mouse, Hero 12K Sensor, 12,000 DPI, Lightweight, 6 Programmable Buttons, 250h Battery Life, On-Board Memory, PC/Mac - Black
![[Apple MFi Certified] Lightning to HDMI Adapter for iPhone, 1080P Digital AV Adapter iPhone HDMI Adapter Video HDMI Sync Screen Connector Compatible with iPhone 14/13/12/X/8 NO Need Power Supply](https://m.media-amazon.com/images/I/41FjGWUIKnL._AC_UL960_FMwebp_QL65_.jpg)
[Apple MFi Certified] Lightning to HDMI Adapter for iPhone, 1080P Digital AV Adapter iPhone HDMI Adapter Video HDMI Sync Screen Connector Compatible with iPhone 14/13/12/X/8 NO Need Power Supply

Mcbazel Wii to HDMI Converter Output Video Audio Adapter for Wii (NTSC 480I, 480P, PAL 576I) -Support All Display Modes



















