Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for responseSchema in Google AI and Vertex AI plugins #1027

Open
cabljac opened this issue Oct 8, 2024 · 0 comments
Open

Support for responseSchema in Google AI and Vertex AI plugins #1027

cabljac opened this issue Oct 8, 2024 · 0 comments
Assignees
Labels
feature New feature or request

Comments

@cabljac
Copy link
Contributor

cabljac commented Oct 8, 2024

Is your feature request related to a problem? Please describe.

Currently the plugins support "strict json mode" by providing a responseMimeType in the request to the API

Google AI and Vertex AI Gemini APIs support providing a responseSchema:

https://ai.google.dev/gemini-api/docs/structured-output?lang=node#supply-schema-in-config

This enforces the schema of the response on the API side.

We should support this in Genkit.

@cabljac cabljac added the feature New feature or request label Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
Status: No status
Development

No branches or pull requests

2 participants