import '../entities/stream_event.dart';
import '../repositories/chat_repository.dart';

class SendMessage {
  final ChatRepository _repository;

  SendMessage(this._repository);

  Stream<StreamEvent> execute({
    required String sessionId,
    required String message,
    List<Map<String, dynamic>>? attachments,
  }) {
    return _repository.sendMessage(
      sessionId: sessionId,
      message: message,
      attachments: attachments,
    );
  }
}
