breadboard icon indicating copy to clipboard operation
breadboard copied to clipboard

[FR] Prevent wiring of incompatible types

Open paullewis opened this issue 9 months ago • 18 comments

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 behaviors and formats 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 formats 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.

paullewis avatar May 09 '24 16:05 paullewis