KtorHordeGenerationRemoteDataSource

Coordinates KtorHordeGenerationRemoteDataSource behavior in the SDAI data layer.

Author

Dmitriy Moroz

Throws

when the delegated operation cannot complete.

Constructors

Link copied to clipboard

Types

Link copied to clipboard
private object Companion

Provides the companion object singleton used by the SDAI data layer.

Properties

Link copied to clipboard
private val api: HordeGenerationApi

Exposes the api value used by the SDAI data layer.

Link copied to clipboard

Exposes the statusSource value used by the SDAI data layer.

Functions

Link copied to clipboard
private suspend fun executeRequestChain(apiKey: String, request: HordeGenerationAsyncRequest): String

Executes the executeRequestChain step in the SDAI data layer.

Link copied to clipboard
open suspend override fun imageToImage(apiKey: String, payload: ImageToImagePayload): AiGenerationResult

Executes the imageToImage step in the SDAI data layer.

Link copied to clipboard
open suspend override fun interruptGeneration(apiKey: String)

Performs the SDAI side effect handled by interruptGeneration.

Link copied to clipboard
open suspend override fun textToImage(apiKey: String, payload: TextToImagePayload): AiGenerationResult

Executes the textToImage step in the SDAI data layer.

Link copied to clipboard
open suspend override fun validateApiKey(apiKey: String): Boolean

Executes the validateApiKey step in the SDAI data layer.