breadboard-ai / breadboard

A library for prototyping generative AI applications.
Apache License 2.0
211 stars 32 forks source link

Outputs on Run JavaScript node? #3628

Open surma opened 1 month ago

surma commented 1 month ago

When I create a new item on the input schema of the Run JavaScript node, it shows up as a separate input.

When I create a new item on the output schema of the Run JavaScript node, nothing happens.

Is that intentional? I find myself getting confused as to what the return value of my JS function should be. Should it be an object with one property per output schema item? What actually goes onto the wire also seems to depend on whether I select "Context" or one of the other options for its type.

dglazkov commented 1 month ago

Yeah, that's the sins of the past haunting us. Check "Raw" checkbox and the schema outputs will pop up. The "Run Module" can't come soon enough.

dglazkov commented 1 month ago

Similar #3527