loopgpt icon indicating copy to clipboard operation
loopgpt copied to clipboard

have a working space for created files?

Open EinTyp3001 opened this issue 1 year ago • 5 comments

Hi. nice job! I am testing your implementation (my kind of standard test for auto gpts is to let them create a web-portal about cats with depressions) and i foundt hat created files are written in the root loopgpt folder.

greetings.

EinTyp3001 avatar Apr 19 '23 21:04 EinTyp3001

Hey there @EinTyp3001! Having a dedicated workspace for the agent would be pretty neat. Can you tell me if your working directory was the loopgpt folder when this happened?

FayazRahman avatar Apr 20 '23 20:04 FayazRahman

Hi @FayazRahman. yes, I started the code from the loopgbt directory. I have done some more trials, it is always writing files in the "./", wherever the program was started from. A solution would be to add an optional "--workingfolder" option? Thx!

EinTyp3001 avatar Apr 24 '23 07:04 EinTyp3001

@EinTyp3001 I would suggest not starting the code from the loopgpt directory. You can run it from anywhere else. We do have plans for a workspace folder option so please stay tuned for that!

FayazRahman avatar Apr 24 '23 18:04 FayazRahman

thank you!

EinTyp3001 avatar Apr 24 '23 19:04 EinTyp3001

I had issues trying to do that with podman on an m1 mac Whenever I mounted a directory as workspace, the google_search task would return disk i/o errors

I had to work around it by mounting a path, but still operating within a directory within the container, then as a pre and post agent run step save and restore workspace to this directory

You can see it in the agent.py file in here: https://github.com/prom3theu5/loopgpt-playground

Disclaimer - I'm mainly a .net engineer - its been a long long time since i did any serious python lol (a very long time indeed)

prom3theu5 avatar Apr 30 '23 18:04 prom3theu5