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.

Constructors

Link copied to clipboard
constructor(providerName: String = "", baseUrl: String = "", model: String = "", apiKey: String = "")

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun ProviderConfigurationState.isValid(apiKeyRequired: Boolean = true): Boolean
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard

Validates every field and returns the first problem found per field; an empty map means valid.