Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

Pass Real Data to callGenerateReport in TaskQueueView

hunteraraujod48eb996697b
diff --git a/frontend/lib/views/task_queue/task_queue_view.dart b/frontend/lib/views/task_queue/task_queue_view.dart
index bbfbd6916e..d5c8122154 100644
--- a/frontend/lib/views/task_queue/task_queue_view.dart
+++ b/frontend/lib/views/task_queue/task_queue_view.dart
@@ -13,6 +13,10 @@ class TaskQueueView extends StatelessWidget {
final reversedHierarchy =
viewModel.selectedNodeHierarchy?.reversed.toList() ?? [];
+ // Convert reversedHierarchy to a list of test names
+ final List<String> testNames =
+ reversedHierarchy.map((node) => node.data.name).toList();
+
return Material(
color: Colors.white,
child: Stack(
@@ -49,8 +53,8 @@ class TaskQueueView extends StatelessWidget {
onPressed: () {
// Create a ReportRequestBody with hardcoded values
ReportRequestBody reportRequestBody = ReportRequestBody(
- category: "coding",
- tests: [],
+ category: "",
+ tests: testNames,
mock: true,
);