sendMessage method
Future<String>
sendMessage({
- required String message,
- List<
ChatMessage> conversationHistory = const [], - Map<
String, dynamic> ? options,
override
Send a message and get a complete response
Implementation
@override
Future<String> sendMessage({
required String message,
List<ChatMessage> conversationHistory = const [],
Map<String, dynamic>? options,
}) async {
// Implement your custom API call here
await Future.delayed(const Duration(milliseconds: 500));
return "Custom AI response to: $message";
}