genkit icon indicating copy to clipboard operation
genkit copied to clipboard

[Dev UI] Dev UI makes assumptions on schema for editors, breaks sometimes for Go/Py

Open ssbushi opened this issue 9 months ago • 1 comments

Describe the bug The schema provided by the runtime looks different from what JS provides and in some places the Dev UI implicitly assumes the format to match JS. I think the generic action runner is safe from this because it uses the entire schema object for validation, but retriever-runner has separate inputs for query and options which causes trouble. Model runner works for some reason and that has even more special handling I presume....

Furthermore, missing or invalid schema makes the runner unusable. The faker throws an error and the invocation fails.

To Reproduce

  1. Define retriever in Python
  2. Try the retriever runner, it does not load a default value in the editor
  3. Even if you add the right input and click "Run" the invocation fails.

Expected behavior Smooth handling of schema from Py/Go. Handle broken schema gracefully.

Screenshots

Image

ssbushi avatar Mar 13 '25 18:03 ssbushi

Hey @ssbushi were there other fixes needed besides https://github.com/FirebasePrivate/genkit-ui/pull/1315? Or can we close this one out?

MichaelDoyle avatar May 19 '25 14:05 MichaelDoyle

Friendly ping @ssbushi

MichaelDoyle avatar Jul 12 '25 02:07 MichaelDoyle