Skip to content

Exploring the new Foundation Models framework introduced at WWDC25

License

Notifications You must be signed in to change notification settings

lioneldude83/GenerableFoundationModels

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GenerableFoundationModels

Exploring the new Foundation Models framework introduced at WWDC25

Using the @Generable macro for Guided Generation to create a Superhero. The language model session is defined in the Observable class SuperheroGenerator, in which an instance is created in the Button("Ask Question") under a Task. The Task is assigned to a State variable, and this allows the streamed response to be cancelled, similar to how one interrupts the chatbot from a Stop button.

A sample PNG file showing the output, and the swift file with the code is included in this Repository.

About

Exploring the new Foundation Models framework introduced at WWDC25

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages