breadboard-ai / breadboard

A library for prototyping generative AI applications.
Apache License 2.0
190 stars 26 forks source link

Need the ability to rename ad-hoc ports #1378

Closed dglazkov closed 4 months ago

dglazkov commented 7 months ago

Currently, we use the neat gross hack of using "*" edges as drop-zones for ad-hoc wires. This works as long as we don't need the wires to connect two ports with different names. I ran into this being a problem when re-building the Tour Guide Writer in the visual editor: the inputs to the runJavascript node where the guides and the locations are being assembled conflict, since both guides and locations are now named list. I had to resort to using a jsonata node simply to rename the port name:

image

Ideally, I would have been able to name and rename the ad-hoc ports as I was adding them to the runJavascript node.

dglazkov commented 4 months ago

Victory achieved 🚢