ProvidersConfig

org.llm4s.config.ProvidersConfigModel.ProvidersConfig
See theProvidersConfig companion object
final case class ProvidersConfig

Validated top-level providers configuration, including all named provider entries.

Value parameters

namedProviders

map of provider name to validated NamedProviderConfig

selectedProvider

the name of the default provider, if configured

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Returns the name of the default provider or a ConfigurationError if none is selected.

Returns the name of the default provider or a ConfigurationError if none is selected.

Attributes

Returns

Right(ProviderName) when a default is configured, or Left with an error

Sets the named provider sections.

Sets the named provider sections.

Attributes

Sets the default provider's name.

Sets the default provider's name.

Attributes

def withSelectedProvider(selectedProvider: Option[ProviderName]): ProvidersConfig

Sets the default provider's name, or clears it with None.

Sets the default provider's name, or clears it with None.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product