breadboard-ai / breadboard

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

Bug: graphs can only be nested once #663

Open dglazkov opened 9 months ago

dglazkov commented 9 months ago

Currently, the serialization format supports subgraphs in the form of graphs property. This only works at the depth of one: there is no way to address subgraphs that are nested more deeply, since an absolute id (the hashtag of the URL) is used.

dglazkov commented 8 months ago

One approach here might be re-bundling: when about to add another layer of subgraphs, flatten all other ones (perhaps with some prefix), so that there's only one layer still.

Feels like a hack