Skip to content

antongaenko/fm-exps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fm-exps — Foundation Models Experiments

A pair of quick iOS/macOS concept experiments built after Apple's "Enhance your apps with Foundation Models and AI frameworks" session, using the on-device FoundationModels framework.

TL;DR

d1.mov
d2.mov

Concepts

AI Group Chat

Four AI personas — Alice, Bob, Charlie, and Diana — debate any topic you choose, each running in their own LanguageModelSession with distinct character instructions. Responses stream in real time via streamResponse(to:generating:).

  • Alice: idealistic visionary
  • Bob: gruff pragmatist
  • Charlie: relentless philosopher who only asks "Why?"
  • Diana: data-driven analyst

UI Builder

Describe a screen in plain text and the on-device model generates a live SwiftUI interface from your description using structured output (@Generable). It just shows the concept and supports only a few fields.

Requirements

  • Xcode 26+
  • iOS 26+ / macOS 26+
  • Device with Apple Intelligence (on-device model)

License

MIT — see LICENSE.txt


Built with Claude Code (claude-opus-4-6)

About

Two concept demos using Apple's on-device FoundationModels: multi-persona AI group chat and a SwiftUI form generator from plain-text descriptions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages