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.
Add Ground data model for skill tree
hunteraraujoe13f7ca757d3
diff --git a/frontend/lib/models/skill_tree/ground.dart b/frontend/lib/models/skill_tree/ground.dartnew file mode 100644index 0000000000..2cc61c0dfc--- /dev/null+++ b/frontend/lib/models/skill_tree/ground.dart@@ -0,0 +1,25 @@+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'],+ );+ }+}