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.

Refactor ReportRequestBody for a single test

hunteraraujoda9fd926c8b5
diff --git a/frontend/lib/models/benchmark_service/report_request_body.dart b/frontend/lib/models/benchmark_service/report_request_body.dart
index 9278ad8a68..d2858dcb26 100644
--- a/frontend/lib/models/benchmark_service/report_request_body.dart
+++ b/frontend/lib/models/benchmark_service/report_request_body.dart
@@ -1,15 +1,14 @@
class ReportRequestBody {
- final String category;
- final List<String> tests;
+ final String test;
+ final String testRunId;
final bool mock;
- ReportRequestBody(
- {required this.category, required this.tests, required this.mock});
+ ReportRequestBody(this.mock, {required this.test, required this.testRunId});
Map<String, dynamic> toJson() {
return {
- 'category': category,
- 'tests': tests,
+ 'test': test,
+ 'test_run_id': testRunId,
'mock': mock,
};
}