CustomProviderEntry class final
One saved custom provider.
Constructors
- CustomProviderEntry({required String name, required String apiType, required String baseUrl, required String modelId, String? keyName})
-
Creates an entry.
keyNameis the secure-store/env name holding the API key (null = keyless);modelIdis the last-used model. - CustomProviderEntry.fromYaml(Object? node)
-
Parses one yaml map from the
customProviders:list. Throws ConfigException on bad shapes (bad config must surface, never silently vanish).factory
Properties
- apiType → String
-
The adapter dialect:
openai,anthropic, orgoogle(catalog spec names, see providerCatalog).final - baseUrl → String
-
The endpoint base URL.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- keyName ↔ String?
-
The secure-store/env name holding the API key, or null when keyless.
getter/setter pair
- modelId ↔ String
-
The last-used model id (rewritten on
/modelswitches while active).getter/setter pair - name → String
-
Display/lookup name (derived from the endpoint host at creation).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- spec → ProviderSpec
-
The catalog spec backing this entry's adapter dialect.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
toYaml(
) → Map< String, String> - Serializes to the yaml section's map shape.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited