sendMessage method

  1. @override
Future<String> sendMessage({
  1. required String message,
  2. List<ChatMessage> conversationHistory = const [],
  3. 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";
}