package com.optix.android.domain.usecase

import com.optix.android.ai.AiBridge
import com.optix.android.ai.AiStreamEvent
import com.optix.android.domain.model.AiMessage
import com.optix.android.domain.model.AiProviderConfig
import kotlinx.coroutines.flow.Flow
import javax.inject.Inject

class AiBridgeUseCase @Inject constructor(
    private val aiBridge: AiBridge,
) {
    operator fun invoke(
        messages: List<AiMessage>,
        config: AiProviderConfig,
    ): Flow<AiStreamEvent> = aiBridge.streamResponse(messages, config)
}
