breadboard
breadboard copied to clipboard
[FR] Prevent wiring of incompatible types
Per an earlier in-person discussion, we should limit your ability to connect – say – number
ports to string
ports. FWIW I think we should incorporate behavior
s and format
s here, too.
So, for example, object
to object
wouldn't work if it were object -> LLM Content -> Any
to object -> [no behavior]
. But things could be interesting if you did object -> LLM Content -> image-webcam
to object -> LLM Content -> Any
, because the latter is a superset of the former.
Same probably goes for array
, where the item type
, behavior
(s) and format
s should probably match.
If we do this at the API levels I can do a follow-up on the UI side to prevent folks from accidentally trying to wire things that are incompatible.