Commit Graph

4531 Commits

Author SHA1 Message Date
hunteraraujo
a6541b60fc Add AuthService Class for Google and GitHub Authentication
This commit introduces the AuthService class, which encapsulates the logic for signing in with Google and GitHub using Firebase Authentication. The class provides methods for initiating the OAuth flows for both providers and for signing out the user.

- Implemented `signInWithGoogle()` to handle Google Sign-In.
- Implemented `signInWithGitHub()` to handle GitHub Sign-In via popup.
- Added `signOut()` method for logging out the user.
- Added `getCurrentUser()` method to fetch the currently authenticated user.
2023-09-15 14:20:18 -07:00
hunteraraujo
001b795ea0 Update index.html to support web 2023-09-15 14:17:44 -07:00
hunteraraujo
b7f04b0663 Add GoogleService-Info.plist for iOS 2023-09-15 14:15:30 -07:00
hunteraraujo
80c35e7623 Add google-services.json for android 2023-09-15 14:15:14 -07:00
hunteraraujo
70625f85a3 Add firebase libraries + google/github logo assets 2023-09-15 14:15:00 -07:00
SwiftyOS
7320f9d3f8 updated hash 2023-09-15 21:35:16 +02:00
Swifty
92db8eedd7 swifty entering the arena (#5227)
* swifty entering the arena
2023-09-15 21:29:04 +02:00
SwiftyOS
7bc7cd4671 added swifty agent 2023-09-15 21:27:02 +02:00
SwiftyOS
aff6dc24b1 agents to agent in docs 2023-09-15 21:17:41 +02:00
SwiftyOS
7d2e2344d1 correct pr branch 2023-09-15 21:07:03 +02:00
SwiftyOS
ccd2dcf1f7 changed submision branch to include agent name 2023-09-15 20:38:41 +02:00
SwiftyOS
8958f58eca updated checks 2023-09-15 20:31:00 +02:00
SwiftyOS
54f1098dcf fixed directory name 2023-09-15 20:21:18 +02:00
SwiftyOS
169f7210c1 fix arena path name 2023-09-15 20:13:21 +02:00
SwiftyOS
433526b732 change to check for only staged changes 2023-09-15 20:10:51 +02:00
SwiftyOS
71cb72b3a4 changed to check if there are staged changes 2023-09-15 20:09:18 +02:00
SwiftyOS
2edb59736c Added checks and templates to cli 2023-09-15 20:04:24 +02:00
SwiftyOS
582570639f Added checks to the arean enter commands 2023-09-15 20:02:04 +02:00
SwiftyOS
8f104918a8 update cli 2023-09-15 19:50:25 +02:00
SwiftyOS
cd589e9891 added git commands workflow to cli 2023-09-15 19:44:37 +02:00
merwanehamadi
885f120aa4 Add agbenchmark serve to run command (#5222)
* Add agbenchmark serve to run command

* Update autogpts-ci.yml
2023-09-15 09:31:00 -07:00
Reinier van der Leer
bbb526e6f8 AutoGPT/v2: Disable OpenAI log spam 2023-09-15 13:29:27 +02:00
Reinier van der Leer
77eebbdcaa Update README and unbreak autogpt.core:cli-web 2023-09-15 13:24:46 +02:00
Reinier van der Leer
9bd13c5897 AutoGPT: Enhance log readability of autogpt.core 2023-09-15 13:11:43 +02:00
Reinier van der Leer
5074d696cf AutoGPT: Make autogpt.core play nice with its parent module 2023-09-15 13:10:02 +02:00
merwanehamadi
b4401cd409 add benchmark endpoints mock (#5221)
Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>
2023-09-15 08:48:12 -07:00
SwiftyOS
a216197e34 changed the start message 2023-09-15 16:43:40 +02:00
SwiftyOS
43fba808a2 Updated docs 2023-09-15 15:44:11 +02:00
SwiftyOS
252d2fead1 removed create new agent script 2023-09-15 15:37:02 +02:00
SwiftyOS
43f6ff6d28 Added cli usage doc 2023-09-15 15:36:18 +02:00
SwiftyOS
74c46bae7a Added cli tool for setting up and running the project 2023-09-15 15:14:06 +02:00
merwanehamadi
19e4af4ce7 Add integrations to the forge (#5220)
Create README.md
2023-09-15 06:04:36 -07:00
SwiftyOS
1a78150b60 added igonoring of reports folder 2023-09-15 13:38:41 +02:00
SwiftyOS
d85b196952 Fixed import error 2023-09-15 13:37:09 +02:00
SwiftyOS
89862289e2 deleted unused files 2023-09-15 10:46:24 +02:00
SwiftyOS
5f95920d66 Added ascii art 2023-09-15 10:41:05 +02:00
SwiftyOS
dce7636798 Updated run script 2023-09-15 10:21:44 +02:00
Reinier van der Leer
42bc3af109 Add pyproject file to autogpt.core 2023-09-15 05:44:39 +02:00
Reinier van der Leer
b21d68a8ab Migrate AutoGPT agent to poetry (#5219)
Inspired by #1102

* Migrate AutoGPT agent to poetry

  Co-authored-by: rickythefox <richard@ginzburg.se>

* Rewrite automatic dependency check (check_requirements.py) for poetry

* Sort dependencies

* Add instructions for poetry to README
2023-09-15 05:18:44 +02:00
hunteraraujo
f3a112fca3 Integrate BenchmarkService into main.dart with Provider
This commit integrates the `BenchmarkService` into the main application setup through the `MultiProvider` in `main.dart`. The changes include:

1. Adding `BenchmarkService` to the list of service providers, allowing it to be accessible throughout the application via dependency injection.

2. Using `ProxyProvider` to ensure `BenchmarkService` gets the `RestApiUtility` instance as a dependency.

3. Modifying the `MyApp` class to fetch the `BenchmarkService` from the provider, making it ready for use in the application's lifecycle.

This addition allows `BenchmarkService` to be centrally managed and readily available for any part of the application that requires benchmark-related functionalities.
2023-09-14 20:12:58 -07:00
hunteraraujo
5ac4b38bda Extend RestApiUtility to Support Multiple Base URLs via ApiType Enum
This commit enhances the `RestApiUtility` class to support multiple base URLs by incorporating an `ApiType` enum parameter in its methods. The changes include:

1. `_agentBaseUrl`: The base URL for the agent-related API calls.
2. `_benchmarkBaseUrl`: A hard-coded base URL for benchmark-related API calls.
3. `_getEffectiveBaseUrl`: A new private method that determines the effective base URL based on the given `ApiType`.

All public methods (`get`, `post`, `getBinary`) have been updated to include an optional `ApiType` parameter, which defaults to `ApiType.agent`. Based on this parameter, `_getEffectiveBaseUrl` is called to decide the base URL for the HTTP request.

This change allows for flexible API calls without the need to instantiate multiple `RestApiUtility` objects for different services.
2023-09-14 20:09:30 -07:00
hunteraraujo
a97e0dbe62 Integrate BenchmarkService into SkillTreeViewModel with Incomplete Methods
This commit extends the `SkillTreeViewModel` to include `BenchmarkService` as a dependency. This integration allows for leveraging benchmark-related API calls within the skill tree logic.

Two new methods have been added to `SkillTreeViewModel`:

1. `callGenerateReport`: This method attempts to call the `generateReport` function from the `BenchmarkService`. Currently, it only prints the API response and is incomplete in terms of full functionality.

2. `callPollUpdates`: Similar to `callGenerateReport`, this method aims to call `pollUpdates` from `BenchmarkService` and prints the API response. This is also incomplete and will require further development.

Both methods are preliminary and will require additional features to become fully functional.
2023-09-14 20:07:18 -07:00
hunteraraujo
16efb96409 Implement BenchmarkService with generateReport and pollUpdates methods
This commit introduces the `BenchmarkService` class, which encapsulates API calls related to benchmarking operations. The class includes two methods:

1. `generateReport`: Takes a `ReportRequestBody` object as input and performs a POST request to the `/reports` URL, serializing the object to JSON format.
2. `pollUpdates`: Accepts a UNIX UTC timestamp as an argument and performs a GET request to the `/updates?last_update_time=<timestamp>` URL.

Both methods use the `RestApiUtility` for making HTTP requests and are designed to work with different base URLs, controlled by the `ApiType` enum.
2023-09-14 20:04:44 -07:00
hunteraraujo
595a892f71 Introduce ApiType enum for API selection
This commit adds a new enum, `ApiType`, to allow dynamic selection between different base URLs for API calls. The enum has two values: `agent` and `benchmark`, corresponding to different services.

The `ApiType` enum is designed to be passed as a parameter to the `RestApiUtility` methods, enabling the utility to decide which base URL to use for HTTP requests.
2023-09-14 20:02:36 -07:00
hunteraraujo
8e25cd2391 Add ReportRequestBody model with JSON serialization
This commit introduces a new Dart class, `ReportRequestBody`, which represents the request body for generating reports in the `BenchmarkService`. The class includes a `toJson` method for easy serialization to JSON format.

- `category`: Specifies the category of the report (e.g., "coding").
- `tests`: A list of tests to be included in the report.
2023-09-14 20:01:05 -07:00
merwanehamadi
a1284336ba Autogpts ci unified for the hackathon (#5218)
AutoGPTs CI parametrized
2023-09-14 09:11:45 -07:00
merwanehamadi
35e0184ca9 AutoGPTs CI (#5216)
Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>
2023-09-14 08:29:04 -07:00
SwiftyOS
0ee7209c2b Updating forge instructions and fixing version conflict 2023-09-14 17:00:48 +02:00
SwiftyOS
9e6ebf38c7 Updated readme 2023-09-14 16:43:19 +02:00
SwiftyOS
0782aad3bf Added create agent script 2023-09-14 16:36:21 +02:00