DefaultConnectToOpenAiUseCaseImpl

internal class DefaultConnectToOpenAiUseCaseImpl(val getConfigurationUseCase: GetConfigurationUseCase, val setServerConfigurationUseCase: SetServerConfigurationUseCase, val testOpenAiApiKeyUseCase: TestOpenAiApiKeyUseCase) : ConnectToOpenAiUseCase(source)

Implements DefaultConnectToOpenAiUseCase behavior in the SDAI domain layer.

Author

Dmitriy Moroz

Constructors

Link copied to clipboard
constructor(getConfigurationUseCase: GetConfigurationUseCase, setServerConfigurationUseCase: SetServerConfigurationUseCase, testOpenAiApiKeyUseCase: TestOpenAiApiKeyUseCase)

Properties

Link copied to clipboard

Exposes the getConfigurationUseCase value used by the SDAI domain layer.

Link copied to clipboard

Exposes the setServerConfigurationUseCase value used by the SDAI domain layer.

Link copied to clipboard

Exposes the testOpenAiApiKeyUseCase value used by the SDAI domain layer.

Functions

Link copied to clipboard
open suspend operator override fun invoke(apiKey: String): Result<Unit>

Executes the invoke step in the SDAI domain layer.