generate
private suspend fun <T : Any> generate(baseUrl: String, credentials: AuthorizationCredentials, payload: T, request: SwarmUiGenerationRequest): Pair<T, String>(source)
Executes the generate step in the SDAI data layer.
Return
Result produced by generate.
Author
Dmitriy Moroz
Parameters
baseUrl
base url value consumed by the API.
credentials
credentials value consumed by the API.
payload
generation payload used by the operation.
request
request value consumed by the API.
Throws
when the delegated operation cannot complete.