AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

Improve the builder "add block" placement algorithm

Open ntindle opened this issue 10 months ago • 6 comments
trafficstars

We need a way to place blocks when you add them so that it doesn't move your screen when placing a block if there is no space and don't change the zoom level

ntindle avatar Jan 24 '25 15:01 ntindle

Hey @ntindle, can you explain this issue a bit more? I want to make sure I understand the expected behavior correctly:

Right now, when a block is added, the view zooms out and adjusts to fit the newly added block (along with some surrounding blocks). Would you prefer that the new block is placed somewhere on the builder without changing the current view, even if it’s off-screen?

pratimsadhu avatar Jan 30 '25 20:01 pratimsadhu

Yeah the algorithm right now is just kinda weird and breaks the flow of building agents. It zooms out and then places starting from the left so you may have a really tightly zoomed in graph that it takes you back to the very beginning for.

I think prioritizing placing to the right + at the same vertical as the last manipulated block would be nice. If we don’t have that data then to the right of the center of the previous viewport location

ntindle avatar Jan 30 '25 20:01 ntindle

Cool, let me see if I can make that work!

pratimsadhu avatar Jan 30 '25 20:01 pratimsadhu

Sweet. Feel free to get a bit creative. Loading up some of the bigger graphs from the marketplace should help you see the problem a bit if you try and place some “Agent outputs” in the middle of a random section while zoomed in

ntindle avatar Jan 30 '25 20:01 ntindle

For some reason my market place is empty. Do I need to configure the database or something else?

Image

pratimsadhu avatar Jan 30 '25 20:01 pratimsadhu

https://platform.agpt.co/marketplace should let you download agents. We plan to hook all this up for your local too but it will take time

ntindle avatar Jan 30 '25 20:01 ntindle