farizrahman4u / loopgpt

Modular Auto-GPT Framework
MIT License
1.44k stars 129 forks source link

have a working space for created files? #8

Open EinTyp3001 opened 1 year ago

EinTyp3001 commented 1 year ago

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.

FayazRahman commented 1 year ago

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?

EinTyp3001 commented 1 year ago

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!

FayazRahman commented 1 year ago

@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!

EinTyp3001 commented 1 year ago

thank you!

prom3theu5 commented 1 year ago

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)