KtorSdaiAppApi

class KtorSdaiAppApi(val httpClient: HttpClient, val appBaseUrl: String, val reportBaseUrl: String) : SdaiAppApi(source)

Ktor implementation of SDAI app metadata, model catalog, and report calls.

Author

Dmitriy Moroz

Parameters

httpClient

Configured Ktor client used to send SDAI service requests.

appBaseUrl

Base URL for SDAI app metadata and model catalogs.

reportBaseUrl

Base URL for problem report submissions.

Constructors

Link copied to clipboard
constructor(httpClient: HttpClient, appBaseUrl: String, reportBaseUrl: String)
constructor(appBaseUrl: String, reportBaseUrl: String)

Creates a new SDAI component instance.

Types

Link copied to clipboard
private object Companion

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

Properties

Link copied to clipboard
private val appBaseUrl: String

Exposes the appBaseUrl value used by the SDAI network layer.

Link copied to clipboard
private val httpClient: HttpClient

Exposes the httpClient value used by the SDAI network layer.

Link copied to clipboard
private val reportBaseUrl: String

Exposes the reportBaseUrl value used by the SDAI network layer.

Functions

Link copied to clipboard
open suspend override fun fetchBonsaiModels(): List<DownloadableModelResponse>

Loads SDAI data through fetchBonsaiModels.

Link copied to clipboard
open suspend override fun fetchCoreMlModels(): List<DownloadableModelResponse>

Loads SDAI data through fetchCoreMlModels.

Link copied to clipboard

Loads SDAI data through fetchMediaPipeModels.

Link copied to clipboard
open suspend override fun fetchOnnxModels(): List<DownloadableModelResponse>

Loads SDAI data through fetchOnnxModels.

Link copied to clipboard
open suspend override fun fetchSdxlModels(): List<DownloadableModelResponse>

Loads SDAI data through fetchSdxlModels.

Link copied to clipboard
open suspend override fun fetchSupporters(): List<SupporterRaw>

Loads SDAI data through fetchSupporters.

Link copied to clipboard
open suspend override fun postReport(request: ReportRequest)

Executes the postReport step in the SDAI network layer.