-
Notifications
You must be signed in to change notification settings - Fork 44.5k
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
Re-arch hello world #3969
Re-arch hello world #3969
Conversation
* Update planner´s base.py * improving based on comments * added_selffeedback * improving_docstring_and_interface * improved_data_classes_and_feedback_fn * docstring
* initial logging interface * imports * metadata
* Initial base.py for message broker * type_enum * fixing_imports * classes_added
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
This PR exceeds the recommended size of 200 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size |
This PR exceeds the recommended size of 200 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size |
* re-arch: Initial BudgetManager impl * separate base abc from concrete example * init needs to accept kwargs
* First version of implementation for command base class * Update PR comments --------- Co-authored-by: Daryl Rodrigo <[email protected]>
…avitas/Auto-GPT into re-arch/hello-world
This PR exceeds the recommended size of 200 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size |
This PR exceeds the recommended size of 200 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size |
This PR exceeds the recommended size of 200 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size |
This PR exceeds the recommended size of 500 lines. Please make sure you are NOT addressing multiple issues with one PR. |
This PR exceeds the recommended size of 500 lines. Please make sure you are NOT addressing multiple issues with one PR. |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #3969 +/- ##
===========================================
- Coverage 70.73% 49.90% -20.84%
===========================================
Files 69 116 +47
Lines 3397 4813 +1416
Branches 556 649 +93
===========================================
- Hits 2403 2402 -1
- Misses 809 2226 +1417
Partials 185 185
☔ View full report in Codecov by Sentry. |
This PR exceeds the recommended size of 500 lines. Please make sure you are NOT addressing multiple issues with one PR. |
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.
…/Auto-GPT into re-arch/hello-world
This PR exceeds the recommended size of 500 lines. Please make sure you are NOT addressing multiple issues with one PR. |
This PR exceeds the recommended size of 500 lines. Please make sure you are NOT addressing multiple issues with one PR. |
This PR exceeds the recommended size of 500 lines. Please make sure you are NOT addressing multiple issues with one PR. |
…/Auto-GPT into re-arch/hello-world
This PR exceeds the recommended size of 500 lines. Please make sure you are NOT addressing multiple issues with one PR. |
This PR exceeds the recommended size of 500 lines. Please make sure you are NOT addressing multiple issues with one PR. |
Rough sketching out of a hello world using our refactored autogpt library. See the tracking issue here: Significant-Gravitas#4770. # Run instructions There are two client applications for Auto-GPT included. ## CLI Application :star2: **This is the reference application I'm working with for now** :star2: The first app is a straight CLI application. I have not done anything yet to port all the friendly display stuff from the `logger.typewriter_log` logic. - [Entry Point](https://github.com/Significant-Gravitas/Auto-GPT/blob/re-arch/hello-world/autogpt/core/runner/cli_app/cli.py) - [Client Application](https://github.com/Significant-Gravitas/Auto-GPT/blob/re-arch/hello-world/autogpt/core/runner/cli_app/main.py) To run, you first need a settings file. Run ``` python REPOSITORY_ROOT/autogpt/core/runner/cli_app/cli.py make-settings ``` where `REPOSITORY_ROOT` is the root of the Auto-GPT repository on your machine. This will write a file called `default_agent_settings.yaml` with all the user-modifiable configuration keys to `~/auto-gpt/default_agent_settings.yml` and make the `auto-gpt` directory in your user directory if it doesn't exist). At a bare minimum, you'll need to set `openai.credentials.api_key` to your OpenAI API Key to run the model. You can then run Auto-GPT with ``` python REPOSITORY_ROOT/autogpt/core/runner/cli_app/cli.py make-settings ``` to launch the interaction loop. ## CLI Web App The second app is still a CLI, but it sets up a local webserver that the client application talks to rather than invoking calls to the Agent library code directly. This application is essentially a sketch at this point as the folks who were driving it have had less time (and likely not enough clarity) to proceed. - [Entry Point](https://github.com/Significant-Gravitas/Auto-GPT/blob/re-arch/hello-world/autogpt/core/runner/cli_web_app/cli.py) - [Client Application](https://github.com/Significant-Gravitas/Auto-GPT/blob/re-arch/hello-world/autogpt/core/runner/cli_web_app/client/client.py) - [Server API](https://github.com/Significant-Gravitas/Auto-GPT/blob/re-arch/hello-world/autogpt/core/runner/cli_web_app/server/api.py) To run, you still need to generate a default configuration. You can do ``` python REPOSITORY_ROOT/autogpt/core/runner/cli_web_app/cli.py make-settings ``` It invokes the same command as the bare CLI app, so follow the instructions above about setting your API key. To run, do ``` python REPOSITORY_ROOT/autogpt/core/runner/cli_web_app/cli.py client ``` This will launch a webserver and then start the client cli application to communicate with it. :warning: I am not actively developing this application. It is a very good place to get involved if you have web application design experience and are looking to get involved in the re-arch. --------- Co-authored-by: David Wurtz <[email protected]> Co-authored-by: Media <[email protected]> Co-authored-by: Richard Beales <[email protected]> Co-authored-by: Daryl Rodrigo <[email protected]> Co-authored-by: Daryl Rodrigo <[email protected]> Co-authored-by: Swifty <[email protected]> Co-authored-by: Nicholas Tindle <[email protected]> Co-authored-by: Merwane Hamadi <[email protected]>
Rough sketching out of a hello world using our refactored autogpt library. See the tracking issue here: #4770.
Run instructions
There are two client applications for Auto-GPT included.
CLI Application
🌟 This is the reference application I'm working with for now 🌟
The first app is a straight CLI application. I have not done anything yet to port all the friendly display stuff from the
logger.typewriter_log
logic.To run, you first need a settings file. Run
where
REPOSITORY_ROOT
is the root of the Auto-GPT repository on your machine. This will write a file calleddefault_agent_settings.yaml
with all the user-modifiable configuration keys to~/auto-gpt/default_agent_settings.yml
and make theauto-gpt
directory in your user directory if it doesn't exist). At a bare minimum, you'll need to setopenai.credentials.api_key
to your OpenAI API Key to run the model.You can then run Auto-GPT with
to launch the interaction loop.
CLI Web App
The second app is still a CLI, but it sets up a local webserver that the client application talks to rather than invoking calls to the Agent library code directly. This application is essentially a sketch at this point as the folks who were driving it have had less time (and likely not enough clarity) to proceed.
To run, you still need to generate a default configuration. You can do
It invokes the same command as the bare CLI app, so follow the instructions above about setting your API key.
To run, do
This will launch a webserver and then start the client cli application to communicate with it.