package top.yeij.cyrene.domain.usecase

import top.yeij.cyrene.domain.repository.ChatRepository

class SendMessageUseCase(
    private val chatRepository: ChatRepository,
) {
    suspend operator fun invoke(content: String, sessionId: String? = null) {
        if (content.isNotBlank()) {
            chatRepository.sendMessage(content, sessionId)
        }
    }
}
