DefaultConnectToHuggingFaceUseCaseImpl

internal class DefaultConnectToHuggingFaceUseCaseImpl(val getConfigurationUseCase: GetConfigurationUseCase, val setServerConfigurationUseCase: SetServerConfigurationUseCase, val testHuggingFaceApiKeyUseCase: TestHuggingFaceApiKeyUseCase) : ConnectToHuggingFaceUseCase(source)

Implements DefaultConnectToHuggingFaceUseCase behavior in the SDAI domain layer.

Author

Dmitriy Moroz

Constructors

Link copied to clipboard
constructor(getConfigurationUseCase: GetConfigurationUseCase, setServerConfigurationUseCase: SetServerConfigurationUseCase, testHuggingFaceApiKeyUseCase: TestHuggingFaceApiKeyUseCase)

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 testHuggingFaceApiKeyUseCase value used by the SDAI domain layer.

Functions

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

Executes the invoke step in the SDAI domain layer.