breadboard-ai / breadboard

A library for prototyping generative AI applications.
Apache License 2.0
206 stars 30 forks source link

Polish the board server App view #2836

Open dglazkov opened 3 months ago

dglazkov commented 3 months ago

Most of the App view has already landed, but let's track the remaining issues:

dglazkov commented 3 months ago

re: grouping -- WDYT about inventing a new log entry type: a group of nodes. Then, our rendering is simple: just show the group. We can ask to expand the group, and it contains nodes that had no interesting edges.

paullewis commented 3 months ago

+1

I feel like we could start a new group whenever we get an edge with an input/output in it, or when we get an empty edge after one with an input/output in it. Like so:

[group]
  edge (input)
[/group]
[group]
  edge (empty)
  edge (empty)
  edge (empty)
[/group]
[group]
  edge (output)
[/group]
[group]
  edge (input)
[/group]
[group]
  edge (empty)
[/group]
[group]
  edge (output)
[/group]

Then from a UI perspective any group with just one entry in it doesn't have any expand/collapse functionality because it's not relevant, but what this gives us is a consistent "everything is part of a group" structure, rather than "some things are grouped, others are not".

wdyt?