firebase-ios-sdk
firebase-ios-sdk copied to clipboard
[Firebase AI] Add `Generable` macro for schema generation
WIP - Currently only includes scaffolding types, not the macro itself.
Initial Implementation TODOs:
- [x] Add scaffolding for
Generableprotocols and types that align with Foundation Models. - [x] Add manually written output that the macro should produce and verify that it compiles.
- [ ] Serialize
GenerationSchemain JSON Schema format. - [ ] Implement a basic
Generablemacro that produces the equivalent of the manually written code. - [x] Implement
value(...)methods inGeneratedContentto expose generated values. - [ ] Implement storage and serializing of
GenerationGuidevalues inGenerationSchema. - [ ] Add a
Guide"macro" and use it in theGenerablemacro to handleGenerationGuideannotations. - [ ] Add an equivalent of
LanguageModelSession.Responsewith Gemini-specific additions (e.g.,thoughtSummary).
#no-changelog