mirror of
https://github.com/foss42/apidash.git
synced 2025-12-08 05:59:15 +08:00
REFACTOR: All SystemPrompts & Rulesets moved to lib/system_prompt_templates
This commit is contained in:
30
lib/services/agentic_services/agents/stac_to_flutter.dart
Normal file
30
lib/services/agentic_services/agents/stac_to_flutter.dart
Normal 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,
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user