Class ModelConfig
-
- All Implemented Interfaces:
public final class ModelConfig
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classModelConfig.BuilderA builder for ModelConfig.
public final classModelConfig.ProviderAI provider for the model (or provide a baseURL endpoint instead)
-
Method Summary
Modifier and Type Method Description final StringmodelName()Model name string with provider prefix (e.g. final Optional<String>apiKey()API key for the model provider final Optional<String>baseUrl()Base URL for the model provider final Optional<ModelConfig.Provider>provider()AI provider for the model (or provide a baseURL endpoint instead) final JsonField<String>_modelName()Returns the raw JSON value of modelName. final JsonField<String>_apiKey()Returns the raw JSON value of apiKey. final JsonField<String>_baseUrl()Returns the raw JSON value of baseUrl. final JsonField<ModelConfig.Provider>_provider()Returns the raw JSON value of provider. final Map<String, JsonValue>_additionalProperties()final ModelConfig.BuildertoBuilder()final ModelConfigvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ModelConfig.Builderbuilder()Returns a mutable builder for constructing an instance of ModelConfig. -
-
Method Detail
-
modelName
final String modelName()
Model name string with provider prefix (e.g., 'openai/gpt-5-nano')
-
provider
final Optional<ModelConfig.Provider> provider()
AI provider for the model (or provide a baseURL endpoint instead)
-
_modelName
final JsonField<String> _modelName()
Returns the raw JSON value of modelName.
Unlike modelName, this method doesn't throw if the JSON field has an unexpected type.
-
_apiKey
final JsonField<String> _apiKey()
Returns the raw JSON value of apiKey.
Unlike apiKey, this method doesn't throw if the JSON field has an unexpected type.
-
_baseUrl
final JsonField<String> _baseUrl()
Returns the raw JSON value of baseUrl.
Unlike baseUrl, this method doesn't throw if the JSON field has an unexpected type.
-
_provider
final JsonField<ModelConfig.Provider> _provider()
Returns the raw JSON value of provider.
Unlike provider, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ModelConfig.Builder toBuilder()
-
validate
final ModelConfig validate()
-
builder
final static ModelConfig.Builder builder()
Returns a mutable builder for constructing an instance of ModelConfig.
The following fields are required:
.modelName()
-
-
-
-