-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Description
I'm running into issues getting SuperAGI to actually execute a Python script.
Here is an example agent with 3 goals:
-
Write a python script to write "Hello World" to a .txt file. Save the .py file. Do not write any comments and make sure new lines and the format of the .py file are correct.
-
Execute the .py file and don't consider the task as finished until the .txt file exists
-
Read the contents of the .txt file and print to console
The agent has access to the CodingTool, Read File, and Write File, but it tells me the following:
Thoughts: Since I cannot directly execute the script, I will provide detailed instructions for the user.
Plan: - Provide instructions to execute the .py file
- Read the contents of the .txt file and print to console
Criticism: None
Tool: ThinkingTool
It correctly creates the hello_world.py file and when I manually execute it the result is correct, but not sure why SuperAGI is unable to execute the script itself. In some of my earlier experiments it was actually executing the python code and it was getting a "could not parse invalid json" on a more complex script (like what was reported in issue #187), but seemed to clearly run the code. Any tips around getting it to execute code directly?
I also think it would be useful to start an FAQ for things like this. If you could provide input here I'd be happy to kick-off an FAQ and add this in. Thank you for creating such an amazing tool 🔥