Commit Graph

4531 Commits

Author SHA1 Message Date
Auto-GPT-Bot
805c07d578 Add combined charts - 20230901154054 2023-09-01 15:40:54 +00:00
Auto-GPT-Bot
4848a72a2b smol-developer-20230901153851 2023-09-01 15:38:51 +00:00
merwanehamadi
44436fe1a3 Fix Chart generation (#346)
Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>
2023-09-01 08:31:17 -07:00
Auto-GPT-Bot
aec47db740 Add combined charts - 20230901083205 2023-09-01 08:32:06 +00:00
Auto-GPT-Bot
f1cfb14085 Auto-GPT-20230901082927 2023-09-01 08:29:27 +00:00
Auto-GPT-Bot
3dbb0a21f8 beebot-20230901082847 2023-09-01 08:28:48 +00:00
Auto-GPT-Bot
6206749875 Turbo-20230901082434 2023-09-01 08:24:34 +00:00
Auto-GPT-Bot
de2507cc5e mini-agi-20230901082431 2023-09-01 08:24:32 +00:00
Auto-GPT-Bot
6c043d19c1 PolyGPT-20230901082141 2023-09-01 08:21:42 +00:00
Auto-GPT-Bot
a9f16dd3b3 BabyAGI-20230901081709 2023-09-01 08:17:10 +00:00
Auto-GPT-Bot
687cdcaadf gpt-engineer-20230901081646 2023-09-01 08:16:46 +00:00
Auto-GPT-Bot
0472e0305c smol-developer-20230901081448 2023-09-01 08:14:48 +00:00
merwanehamadi
41909f0de7 Tic tac toe challenge (#345)
Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>
2023-08-31 20:45:31 -07:00
hunteraraujo
ecb9580a13 Integrate Services into main.dart and Update Providers
This commit refactors the main.dart file to include service initialization and dependency injection:

- RestApiUtility Initialization: Initialize the RestApiUtility with a mock API endpoint.
- Service Initialization: Initialize ChatService and TaskService with the created RestApiUtility.
- Dependency Injection: Pass the initialized services to MyApp constructor.
- Provider Update: Replace the ChangeNotifierProvider creation in MultiProvider to use the new ChatViewModel and TaskViewModel initialized with the respective services.

This setup allows for better separation of concerns and easier testing, as the services are now decoupled from the view models.
2023-08-31 15:55:44 -07:00
hunteraraujo
ff7667108f Implement User Interactions in TaskView
This commit adds functionality to handle user interactions in the TaskView class by implementing the onPressed, onTap, and onDelete methods:

- onPressed: Triggered when the "New Task" button is pressed. It clears the current task ID and chat history in the ChatViewModel.
- onTap: Triggered when a task list tile is tapped. It selects the task in TaskViewModel and updates the current task ID in ChatViewModel.
- onDelete: Triggered when the delete button on a task list tile is pressed. It deletes the task from TaskViewModel and clears the current task ID and chat history in ChatViewModel if the deleted task was the current task.

These implementations provide a seamless user experience for managing tasks and associated chats.
2023-08-31 15:50:10 -07:00
hunteraraujo
2df6c5e334 Implement onSendPressed Functionality in ChatView
This commit enhances the ChatView class by implementing the onSendPressed functionality, which is triggered when the user sends a message through the ChatInputField:

- When onSendPressed is triggered, it checks if a task ID is currently selected (currentTaskId in ChatViewModel).
- If a task ID is selected, the message is sent as a chat message for that task using sendChatMessage from ChatViewModel.
- If no task ID is selected, a new task is created using createTask from TaskViewModel, and then the message is sent for that new task.

This change provides a complete workflow for sending chat messages, either within an existing task or by creating a new task.
2023-08-31 15:45:55 -07:00
hunteraraujo
5d865a36d9 Refactor ChatInputField to Use Callback for Sending Messages
This commit brings a key update to the ChatInputField widget, making it more flexible and decoupled:

- The onSendPressed callback now takes a string parameter. This string represents the message that the user wishes to send.
- The onPressed of the send button (IconButton) is now implemented within the ChatInputField widget. It checks if the TextField has any text before calling onSendPressed.
- Added a TextEditingController to manage the TextField's content.
2023-08-31 15:42:33 -07:00
hunteraraujo
deb84cc804 Remove mock data 2023-08-31 15:15:40 -07:00
hunteraraujo
5ae17d009b Update TaskViewModel to Use TaskService and Task API Integration
This commit includes a significant overhaul of the TaskViewModel to use the newly created TaskService and integrate it with the task API. Specifically:

- Removed dependency on mock data for tasks.
- Added real API calls through the TaskService for task operations like creating and fetching tasks.
- Updated createTask to return the ID of the newly created task.
- Updated fetchTasks method to fetch tasks from the API and update the local list.
- Updated selectTask to handle selection based on string IDs.

These changes make the TaskViewModel ready for real-world usage and remove dependencies on mock data.
2023-08-31 15:15:24 -07:00
hunteraraujo
651e112e3d Update ChatViewModel to Use ChatService and Step Model
This commit refactors the ChatViewModel to use the newly created ChatService and Step model for chat-related functionalities. The changes include:

- Replaced mock data source with real API calls via ChatService.
- Introduced _currentTaskId to keep track of the current task ID.
- Added fetchChatsForTask method to fetch steps related to the current task and populate the chat list.
- Implemented sendChatMessage to execute a step and add both user and agent messages to the chat list.

By making these changes, the ChatViewModel is now fully integrated with the backend services and models, thus enabling a more realistic and dynamic chat experience.
2023-08-31 15:11:03 -07:00
hunteraraujo
ae5799fc6a Introduce TaskService Class for Task Operations
This commit adds a new TaskService class to handle all task-related operations, including task creation, listing, and artifacts management.

- Implemented methods for creating a new task (createTask).
- Added functionality to retrieve details for a specific task (getTaskDetails).
- Enabled listing all tasks with optional pagination (listAllTasks).
- Enabled listing all artifacts for a specific task with optional pagination (listTaskArtifacts).

By encapsulating these operations within the TaskService class, this commit provides a clean and centralized way to interact with the backend for task functionalities, making the application more maintainable and easier to extend.
2023-08-31 15:07:05 -07:00
hunteraraujo
078db3105c Introduce ChatService Class for Chat Operations
This commit adds a new ChatService class to handle all chat-related operations, including steps and artifacts.

- Implemented methods for executing a step within a task (executeStep).
- Added functionality to retrieve details for a specific step (getStepDetails).
- Enabled listing all steps for a specific task with optional pagination (listTaskSteps).
- Laid groundwork for artifact uploading (uploadArtifact) and downloading (downloadArtifact), though these are not implemented yet.

By encapsulating these operations within the ChatService class, this commit provides a clean and centralized way to interact with the backend for chat functionalities, making the application more maintainable and easier to extend.
2023-08-31 15:04:57 -07:00
hunteraraujo
ed03a32bc3 Create Step Class to Model Step Information
This commit introduces the Step class to the codebase, designed to model the steps related to tasks.

- Implemented Step class with both required and optional fields.
- Provided a fromMap factory method for easy deserialization from API responses.
- Ensured that optional fields are handled gracefully, providing default values where necessary.

The addition of the Step class lays the foundation for more complex interactions with tasks, including the ability to handle steps with varying levels of information. This makes the application more flexible and robust when interfacing with the backend.
2023-08-31 14:56:32 -07:00
hunteraraujo
0dcdaaf641 Add RestApiUtility Class for HTTP Requests
This commit introduces a new utility class, RestApiUtility, designed to encapsulate all the HTTP request operations.

- Created RestApiUtility class with a constructor that accepts a base URL.
- Added get method to perform GET requests and return data as a Map.
- Added getList method to perform GET requests and return data as a List.
- Added post method to perform POST requests with payload and return data as a Map.

The class uses the http package for making network calls and dart:convert for JSON serialization and deserialization. This centralized approach makes it easier to manage API calls and handle errors across the application.
2023-08-31 14:46:01 -07:00
hunteraraujo
ac692d50e6 Add http dependency 2023-08-31 14:44:03 -07:00
hunteraraujo
1c862be18a Update Task Model to Use String IDs
This commit updates the Task model to use string-based identifiers (id) instead of integers. The change aligns the model with the backend service, which uses string-based UUIDs for task identification.
2023-08-31 14:43:01 -07:00
hunteraraujo
43593d849d Update Chat Model to Use String IDs
This commit updates the Chat model to use string-based identifiers (id and taskId) instead of integers. This change aligns the model with the backend service, which uses string-based UUIDs for task and chat identification.
2023-08-31 14:41:20 -07:00
hunteraraujo
8950ab44be Implement and Test TaskRequestBody Model
This commit adds the TaskRequestBody class, which is designed to encapsulate the request body when creating a new task. The class includes a toJson method for easy serialization to JSON format.

Additionally, unit tests have been written to ensure that the TaskRequestBody object is created with the correct values and that it serializes to the expected JSON structure.

- Added TaskRequestBody class with input and optional additionalInput fields.
- Implemented toJson method for converting an instance of the class to JSON.
- Added unit tests to verify both object creation and JSON serialization.

These changes provide a standardized way to manage the request body when creating new tasks, improving the overall code quality and maintainability.
2023-08-31 14:39:03 -07:00
hunteraraujo
c4d08aefb9 Implement and Test StepRequestBody Model
This commit introduces the StepRequestBody class, designed to encapsulate the request body for sending a chat message in the form of a step. The class includes a toJson method for easy serialization to JSON format.

Additionally, unit tests have been added to ensure that the StepRequestBody object is created with the correct values and that it serializes to the expected JSON format.

- Added StepRequestBody class with input and optional additionalInput fields.
- Implemented toJson method for converting an instance of the class to JSON.
- Added unit tests to verify both object creation and JSON serialization.

These changes provide a robust way to manage the request body for step-based chat messages.
2023-08-31 14:36:35 -07:00
Auto-GPT-Bot
517bdb88d0 Add combined charts - 20230831154632 2023-08-31 15:46:32 +00:00
Auto-GPT-Bot
56e4e83bb4 beebot-20230831154426 2023-08-31 15:44:26 +00:00
Auto-GPT-Bot
36d7a8c978 Auto-GPT-20230831154312 2023-08-31 15:43:15 +00:00
Auto-GPT-Bot
68e4de434a PolyGPT-20230831154259 2023-08-31 15:42:59 +00:00
Auto-GPT-Bot
195842b81a Turbo-20230831154255 2023-08-31 15:42:56 +00:00
Auto-GPT-Bot
2e26d6293b mini-agi-20230831154218 2023-08-31 15:42:19 +00:00
Auto-GPT-Bot
2e93ac0eea BabyAGI-20230831153646 2023-08-31 15:36:47 +00:00
Auto-GPT-Bot
62395a429a gpt-engineer-20230831153523 2023-08-31 15:35:24 +00:00
Auto-GPT-Bot
eff9434930 smol-developer-20230831153441 2023-08-31 15:34:41 +00:00
Auto-GPT-Bot
bea7a3c626 Add combined charts - 20230831152900 2023-08-31 15:29:00 +00:00
Auto-GPT-Bot
3091f28f06 smol-developer-20230831152651 2023-08-31 15:26:51 +00:00
merwanehamadi
cfd86ada8a Put back Helicone MITM (#344) 2023-08-31 08:21:08 -07:00
Swifty
bc731e0125 📝 Added template based prompting (#25) 2023-08-31 17:13:00 +02:00
Auto-GPT-Bot
cb0c145eba Add combined charts - 20230831145913 2023-08-31 14:59:13 +00:00
Auto-GPT-Bot
ddd038f14d Turbo-20230831145646 2023-08-31 14:56:46 +00:00
Swifty
edb50d8445 Agent (#24) 2023-08-31 14:45:17 +02:00
SwiftyOS
1c93114a99 Added code to pass the write file test 2023-08-31 14:23:35 +02:00
Luke
595e04def1 Updating Turbo (#343)
Co-authored-by: Luke <2609441+lc0rp@user.noreply.github.com>
2023-08-31 07:09:41 -04:00
SwiftyOS
f0f290b0ae removed tracing and monitoring 2023-08-31 11:46:24 +02:00
Auto-GPT-Bot
7fd7ac5ce0 Turbo-20230831082553 2023-08-31 08:25:53 +00:00
Auto-GPT-Bot
71d66d7a1e beebot-20230831082546 2023-08-31 08:25:47 +00:00