Class CohereScoringModelConfig.BuilderBase<BUILDER extends CohereScoringModelConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends CohereScoringModelConfig>
java.lang.Object
io.helidon.integrations.langchain4j.providers.cohere.CohereScoringModelConfig.BuilderBase<BUILDER,PROTOTYPE>
- Type Parameters:
BUILDER
- type of the builder extending this abstract builderPROTOTYPE
- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER,
,PROTOTYPE> ConfigBuilderSupport.ConfiguredBuilder<BUILDER,
,PROTOTYPE> ConfigBuilderSupport.ConfiguredBuilder<BUILDER,
PROTOTYPE>
- Direct Known Subclasses:
CohereScoringModelConfig.Builder
- Enclosing interface:
CohereScoringModelConfig
public abstract static class CohereScoringModelConfig.BuilderBase<BUILDER extends CohereScoringModelConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends CohereScoringModelConfig>
extends Object
implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
Fluent API builder base for
CohereScoringModelConfig
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
Generated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapiKey()
Generated fromCohereScoringModel.CohereScoringModelBuilder.apiKey(java.lang.String)
Generated fromCohereScoringModel.CohereScoringModelBuilder.apiKey(java.lang.String)
baseUrl()
Generated fromCohereScoringModel.CohereScoringModelBuilder.baseUrl(java.lang.String)
Generated fromCohereScoringModel.CohereScoringModelBuilder.baseUrl(java.lang.String)
Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.config()
If this instance was configured, this would be the config instance used.Deprecated.Update builder from configuration (node of this type).boolean
enabled()
If set tofalse
(default), CohereScoringModel will not be available even if configured.enabled
(boolean enabled) If set tofalse
(default), CohereScoringModel will not be available even if configured.from
(CohereScoringModelConfig prototype) Update this builder from an existing prototype instance.from
(CohereScoringModelConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.Optional
<org.slf4j.Logger> logger()
Generated fromCohereScoringModel.CohereScoringModelBuilder.logger(org.slf4j.Logger)
logger
(org.slf4j.Logger logger) Generated fromCohereScoringModel.CohereScoringModelBuilder.logger(org.slf4j.Logger)
Generated fromCohereScoringModel.CohereScoringModelBuilder.logRequests(java.lang.Boolean)
logRequests
(boolean logRequests) Generated fromCohereScoringModel.CohereScoringModelBuilder.logRequests(java.lang.Boolean)
Generated fromCohereScoringModel.CohereScoringModelBuilder.logResponses(java.lang.Boolean)
logResponses
(boolean logResponses) Generated fromCohereScoringModel.CohereScoringModelBuilder.logResponses(java.lang.Boolean)
Generated fromCohereScoringModel.CohereScoringModelBuilder.maxRetries(java.lang.Integer)
maxRetries
(int maxRetries) Generated fromCohereScoringModel.CohereScoringModelBuilder.maxRetries(java.lang.Integer)
Generated fromCohereScoringModel.CohereScoringModelBuilder.modelName(java.lang.String)
Generated fromCohereScoringModel.CohereScoringModelBuilder.modelName(java.lang.String)
protected void
Handles providers and decorators.proxy()
Proxy to use.Proxy to use.serviceRegistry
(ServiceRegistry registry) Provide an explicit registry instance to use.timeout()
Generated fromCohereScoringModel.CohereScoringModelBuilder.timeout(java.time.Duration)
Generated fromCohereScoringModel.CohereScoringModelBuilder.timeout(java.time.Duration)
toString()
protected void
Validates required properties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance. This method disables automatic service discovery.- Parameters:
prototype
- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder
- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
config
Deprecated.Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
config
in interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends CohereScoringModelConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends CohereScoringModelConfig> - Parameters:
config
- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
config
Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
config
in interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends CohereScoringModelConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends CohereScoringModelConfig> - Parameters:
config
- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
serviceRegistry
Provide an explicit registry instance to use.If not configured, the
GlobalServiceRegistry
would be used to discover services.- Parameters:
registry
- service registry instance- Returns:
- updated builder instance
-
enabled
If set tofalse
(default), CohereScoringModel will not be available even if configured.- Parameters:
enabled
- whether CohereScoringModel is enabled, defaults tofalse
- Returns:
- updated builder instance
- See Also:
-
clearModelName
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
modelName
Generated fromCohereScoringModel.CohereScoringModelBuilder.modelName(java.lang.String)
- Parameters:
modelName
- String property- Returns:
- updated builder instance
- See Also:
-
clearBaseUrl
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
baseUrl
Generated fromCohereScoringModel.CohereScoringModelBuilder.baseUrl(java.lang.String)
- Parameters:
baseUrl
- String property- Returns:
- updated builder instance
- See Also:
-
clearMaxRetries
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
maxRetries
Generated fromCohereScoringModel.CohereScoringModelBuilder.maxRetries(java.lang.Integer)
- Parameters:
maxRetries
- Integer property- Returns:
- updated builder instance
- See Also:
-
clearApiKey
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
apiKey
Generated fromCohereScoringModel.CohereScoringModelBuilder.apiKey(java.lang.String)
- Parameters:
apiKey
- String property- Returns:
- updated builder instance
- See Also:
-
clearLogger
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
logger
Generated fromCohereScoringModel.CohereScoringModelBuilder.logger(org.slf4j.Logger)
- Parameters:
logger
- Logger property- Returns:
- updated builder instance
- See Also:
-
clearLogResponses
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
logResponses
Generated fromCohereScoringModel.CohereScoringModelBuilder.logResponses(java.lang.Boolean)
- Parameters:
logResponses
- Boolean property- Returns:
- updated builder instance
- See Also:
-
clearLogRequests
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
logRequests
Generated fromCohereScoringModel.CohereScoringModelBuilder.logRequests(java.lang.Boolean)
- Parameters:
logRequests
- Boolean property- Returns:
- updated builder instance
- See Also:
-
clearTimeout
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
timeout
Generated fromCohereScoringModel.CohereScoringModelBuilder.timeout(java.time.Duration)
- Parameters:
timeout
- Duration property- Returns:
- updated builder instance
- See Also:
-
clearProxy
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
proxy
Proxy to use.- Parameters:
proxy
- anOptional
containing HTTP proxy to use- Returns:
- updated builder instance
- See Also:
-
enabled
public boolean enabled()If set tofalse
(default), CohereScoringModel will not be available even if configured.- Returns:
- the enabled
-
modelName
Generated fromCohereScoringModel.CohereScoringModelBuilder.modelName(java.lang.String)
- Returns:
- the model name
-
baseUrl
Generated fromCohereScoringModel.CohereScoringModelBuilder.baseUrl(java.lang.String)
- Returns:
- the base url
-
maxRetries
Generated fromCohereScoringModel.CohereScoringModelBuilder.maxRetries(java.lang.Integer)
- Returns:
- the max retries
-
apiKey
Generated fromCohereScoringModel.CohereScoringModelBuilder.apiKey(java.lang.String)
- Returns:
- the api key
-
logger
Generated fromCohereScoringModel.CohereScoringModelBuilder.logger(org.slf4j.Logger)
- Returns:
- the logger
-
logResponses
Generated fromCohereScoringModel.CohereScoringModelBuilder.logResponses(java.lang.Boolean)
- Returns:
- the log responses
-
logRequests
Generated fromCohereScoringModel.CohereScoringModelBuilder.logRequests(java.lang.Boolean)
- Returns:
- the log requests
-
timeout
Generated fromCohereScoringModel.CohereScoringModelBuilder.timeout(java.time.Duration)
- Returns:
- the timeout
-
proxy
Proxy to use.- Returns:
- the proxy
-
config
If this instance was configured, this would be the config instance used.- Returns:
- config node used to configure this builder, or empty if not configured
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-
config(io.helidon.config.Config)