Files
AutoGPT/classic/frontend/lib/models/skill_tree/ground.dart
Swifty ef7cfbb860 refactor: AutoGPT Platform Stealth Launch Repo Re-Org (#8113)
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
2024-09-20 16:50:43 +02:00

26 lines
694 B
Dart

class Ground {
final String answer;
final List<String> shouldContain;
final List<String> shouldNotContain;
final List<String> files;
final Map<String, dynamic> eval;
Ground({
required this.answer,
required this.shouldContain,
required this.shouldNotContain,
required this.files,
required this.eval,
});
factory Ground.fromJson(Map<String, dynamic> json) {
return Ground(
answer: json['answer'] ?? "",
shouldContain: List<String>.from(json['should_contain'] ?? []),
shouldNotContain: List<String>.from(json['should_not_contain'] ?? []),
files: List<String>.from(json['files'] ?? []),
eval: json['eval'] ?? {},
);
}
}