fetchHistory method

  1. @override
Future<List<Message>> fetchHistory({
  1. required String conversationId,
  2. DateTime? before,
  3. int limit = 50,
})
override

Loads a page of history before before (cursor-based pagination).

Implementation

@override
Future<List<Message>> fetchHistory({
  required String conversationId,
  DateTime? before,
  int limit = 50,
}) async {
  // In a real implementation use HTTP REST for history pagination.
  throw UnimplementedError(
    'fetchHistory: use a REST adapter or override this method.',
  );
}