-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Open
Labels
Needs AttentionThis issue needs maintainer attention.This issue needs maintainer attention.plugin: ailabel issues for firebase_ai pluginlabel issues for firebase_ai plugintype: enhancementNew feature or requestNew feature or request
Description
There are some advanced JSON features like $ref and $def which allow for hierarchical structures etc.
They unlock a lot of powerful use cases, but they're not possible with Firebase AI logic right now. I think the two things we need are:
1. Support responseJsonSchema
field in the API
Gemini can understand advanced schemas, but only when using the responseJsonSchema
parameter rather than responseSchema
(see GenerationConfig).
I believe Firebase AI Logic currently only supports responseSchema
- see
Map<String, Object?> toJson() => { |
2. Support $ref and $def in Schema
Currently, Firebase's schema object does not support representing $ref and $def, so I think we'd need some support here.
See
// you may not use this file except in compliance with the License. |
Metadata
Metadata
Assignees
Labels
Needs AttentionThis issue needs maintainer attention.This issue needs maintainer attention.plugin: ailabel issues for firebase_ai pluginlabel issues for firebase_ai plugintype: enhancementNew feature or requestNew feature or request