Workflow
WWDC25: Discover guided generation
Apple Developer·2025-06-13 19:02

So, what is Generable and is that even a word. Well, yes, it is. Generable is an easy way to let the model generate structured data, using Swift types The macro generates a schema at compile time, which the model can use to produce the expected structure. The macro also generates an initializer, which is automatically called for you when making a request to a session.So then we can generate instances of our struct. Like before, we’ll call the respond method on our session. But this time pass the generating ...