KtorHordeGenerationRemoteDataSource
class KtorHordeGenerationRemoteDataSource(val api: HordeGenerationApi, val statusSource: HordeGenerationDataSource.StatusSource) : HordeGenerationDataSource.Remote(source)
Coordinates KtorHordeGenerationRemoteDataSource behavior in the SDAI data layer.
Author
Dmitriy Moroz
Throws
when the delegated operation cannot complete.
Types
Properties
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
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
Executes the validateApiKey step in the SDAI data layer.