REFACTOR: All SystemPrompts & Rulesets moved to lib/system_prompt_templates

This commit is contained in:
Manas Hejmadi
2025-08-31 16:32:45 +05:30
parent b844e7c279
commit a8444852b8
20 changed files with 738 additions and 619 deletions

View File

@@ -0,0 +1,30 @@
import 'package:apidash/templates/templates.dart';
import 'package:apidash_core/apidash_core.dart';
class StacToFlutterBot extends AIAgent {
@override
String get agentName => 'STAC_TO_FLUTTER';
@override
String getSystemPrompt() {
return kPromptStacToFlutter;
}
@override
Future<bool> validator(String aiResponse) async {
//Add any specific validations here as needed
return true;
}
@override
Future outputFormatter(String validatedResponse) async {
validatedResponse = validatedResponse
.replaceAll('```dart', '')
.replaceAll('```dart\n', '')
.replaceAll('```', '');
return {
'CODE': validatedResponse,
};
}
}