mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-01-14 09:38:00 -05:00
Restructuring the Repo to make it clear the difference between classic autogpt and the autogpt platform: * Move the "classic" projects `autogpt`, `forge`, `frontend`, and `benchmark` into a `classic` folder * Also rename `autogpt` to `original_autogpt` for absolute clarity * Rename `rnd/` to `autogpt_platform/` * `rnd/autogpt_builder` -> `autogpt_platform/frontend` * `rnd/autogpt_server` -> `autogpt_platform/backend` * Adjust any paths accordingly
13 lines
352 B
Dart
13 lines
352 B
Dart
class TaskRequestBody {
|
|
final String input;
|
|
final Map<String, dynamic>? additionalInput;
|
|
|
|
TaskRequestBody({required this.input, this.additionalInput});
|
|
|
|
Map<String, dynamic> toJson() {
|
|
Map<String, dynamic> result = {'input': input, 'additional_input': additionalInput};
|
|
result.removeWhere((_, v) => v == null);
|
|
return result;
|
|
}
|
|
}
|