Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request adds the longRunning property to the ModelInfoSchema supports definition, allowing models to explicitly declare support for long-running operations. Consequently, workaround type definitions and assertions in Google GenAI and Vertex AI plugins (such as Deep Research and Veo) have been cleaned up and simplified to directly use the new property. Corresponding unit tests have also been added and updated to verify this functionality. I have no further feedback to provide as there are no review comments.
genkit-bot
reviewed
Dec 2, 2026
genkit-bot
left a comment
Contributor
There was a problem hiding this comment.
LGTM
Details
Run 11c87e2b-28fb-478c-b80d-ba8b595629a4 · Cloud Run logs · Dashboard
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix(js): add longRunning back to ModelInfo supports
Why
generateOperationonly accepts models whosesupports.longRunningistrue, but the JS
ModelInfoSchemano longer declares that field (it wasdropped in #3070). The shared schema still has it (genkit-tools
ModelInfoSchema,genkit-schema.json, Go'sModelSupports.LongRunning),so JS was the only place where it was missing.
Without it in the type, a plugin can't write
longRunning: truein aModelInfoliteral. The google-genai plugin worked around this bydeclaring the
supportsobjects of Deep Research and Veo as separateconsts, so TypeScript's excess-property check didn't apply. That hides the
field from the type checker the same way a cast would (raised in the
review of #7341).
What changed
ModelInfoSchema.supportshaslongRunning: z.boolean().optional()again, with the same doc comment as genkit-tools.supportsobjects of googleAI Deep Research (bothmodel groups), vertexAI Deep Research and Veo are written inline in their
ModelInfoagain; the workaround comments are gone.Runtime behaviour is unchanged: the model metadata is the same objects as
before.
Testing
generateOperationtests (a background model with
longRunning: truereturns itsoperation; one without it is rejected with
INVALID_ARGUMENT).Tests check
supports.longRunningdirectly on googleAI Deep Research(known and generic models), vertexAI Deep Research and Veo.
Research request completed with its report, and a Veo text-to-video
request returned an 8-second 720p video. On the Gemini API, Deep
Research tasks started and were polled normally, but the server ended
them with
ABORTED("There was a problem processing your request")in both runs; that error is reported by the task itself, after the
plugin's requests were accepted.