-
Notifications
You must be signed in to change notification settings - Fork 44.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for args to execute_python_file
#3972
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add tests for this
Sync with source
Deployment failed with the following error:
|
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #3972 +/- ##
===========================================
+ Coverage 50.73% 69.71% +18.98%
===========================================
Files 128 72 -56
Lines 5517 3563 -1954
Branches 759 570 -189
===========================================
- Hits 2799 2484 -315
+ Misses 2507 889 -1618
+ Partials 211 190 -21
☔ View full report in Codecov by Sentry. |
Deployment failed with the following error:
|
Deployment failed with the following error:
|
You changed AutoGPT's behaviour. The cassettes have been updated and will be merged to the submodule when this Pull Request gets merged. |
execute_python_file
I sincerely apologize for my delayed response. I was caught up in some commitments, and it completely slipped my mind. I've incorporated the necessary changes to make it compatible as both a list or a string. Should you encounter any problems, please don't hesitate to reach out to me. I'm here to assist! Thank you for your understanding. |
Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly. |
Background
Auto-GPT couldn't run Python scripts when args were specified. Now it can!
Changes
Added args field, also made it optional so that it doesn't always need args.
Documentation
Added to the command explanation. Added the args field in the Python command.
Documented in the code as you can see below:
Test Plan
I was able to execute files with and without arguments in a Docker container.
PR Quality Checklist