breadboard icon indicating copy to clipboard operation
breadboard copied to clipboard

[Inspector API] `runJavascript` has additional `inputSchema` and `outputSchema` ports

Open paullewis opened this issue 7 months ago • 1 comments

Not sure if this is a bug or not, but I think it might be. As of https://github.com/breadboard-ai/breadboard/pull/2413 we now get three schemas coming through for a runJavascript node: schema, inputSchema, and outputSchema.

This generates some oddness on the front end:

Screenshot 2024-07-05 at 15 28 47

Which I'm currently working around with this:

https://github.com/breadboard-ai/breadboard/blob/main/packages/visual-editor/src/ui/elements/node-info/node-configuration.ts#L743 i.e., only allow a port-spec attached to "schema" otherwise ignore it.

@dglazkov, @aomarks – can one of you advise on what the correct behavior is here?

paullewis avatar Jul 05 '24 15:07 paullewis