agent-zero icon indicating copy to clipboard operation
agent-zero copied to clipboard

No File Ouput

Open nodeGarden opened this issue 1 year ago • 1 comments

I used a simple prompt:

Can you generate a Hello World python app in the current folder?

I get:

Runtime: terminal

Code: python hello.py

Agent 0 code execution output:
Hello, World!
(venv) root@037faaf47517:~# 

Agent 0: Starting a message:
{
    "thoughts": [
        "The script executed successfully and printed 'Hello, World!' as expected.",
        "The task of creating and verifying the Python application is complete."
    ],
    "tool_name": "response",
    "tool_args": {
        "text": "The Python application 'hello.py' has been created successfully and it prints 'Hello, World!'."
    }
}

Agent 0: reponse:
The Python application 'hello.py' has been created successfully and it prints 'Hello, World!'.

User message (60s timeout, 'w' to wait, 'e' to leave):
> e
Stopped and removed the container: 037faaf4751778189944186c3a46dd1a5e7548abb1c3670d766af5d0998257ed

(venv)  mondo@mondos-MBP  ~/Desktop/Projects/ai_test  ll
total 0

Just installed the whole project... though I AM running it via a shell script globally (so I can just write agent-zero in any project folder.

alias agent-zero='source ~/Desktop/Projects/agent-zero/venv/bin/activate && python ~/Desktop/Projects/agent-zero/main.py'

As you can see from above, when I do ll (alias for ls -alGh) for the current folder, it's empty. I did the same in the project folder for agent-zero, and there are no new files.

nodeGarden avatar Jul 30 '24 19:07 nodeGarden

If you see in your output, the python command runs and prints the output on terminal in docker. If that is happening, the file number there. Docket filesystem is mapped to work_dir folder under your project folder, please check in that.

gauravdhiman avatar Aug 03 '24 06:08 gauravdhiman