ProviderConfigurationState
data class ProviderConfigurationState(val providerName: String = "", val baseUrl: String = "", val model: String = "", val apiKey: String = "")
Connection settings for an authenticated service such as an AI provider.
toString redacts apiKey so the state can be logged or included in crash reports safely.
Properties
Functions
Link copied to clipboard
Link copied to clipboard
fun ProviderConfigurationState.validate(apiKeyRequired: Boolean = true): Map<ProviderConfigurationField, ProviderConfigurationError>
Validates every field and returns the first problem found per field; an empty map means valid.