Class OllamaChatModelConfig.BuilderBase.OllamaChatModelConfigImpl
java.lang.Object
io.helidon.integrations.langchain4j.providers.ollama.OllamaChatModelConfig.BuilderBase.OllamaChatModelConfigImpl
- All Implemented Interfaces:
Prototype.Api,OllamaChatModelConfig
- Enclosing class:
OllamaChatModelConfig.BuilderBase<BUILDER extends OllamaChatModelConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends OllamaChatModelConfig>
protected static class OllamaChatModelConfig.BuilderBase.OllamaChatModelConfigImpl
extends Object
implements OllamaChatModelConfig
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.integrations.langchain4j.providers.ollama.OllamaChatModelConfig
OllamaChatModelConfig.Builder, OllamaChatModelConfig.BuilderBase<BUILDER extends OllamaChatModelConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends OllamaChatModelConfig> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe root configuration key for this builder. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOllamaChatModelConfigImpl(OllamaChatModelConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbaseUrl()Generated fromOllamaBaseChatModel.Builder.baseUrl(java.lang.String)default dev.langchain4j.model.ollama.OllamaChatModel.OllamaChatModelBuilderSkipped: build - doesn't have exactly one parameter supportedCapabilities - property already exist ->B extends dev.langchain4j.model.ollama.OllamaBaseChatModel.Builder<C extends dev.langchain4j.model.ollama.OllamaBaseChatModel> supportedCapabilities(java.util.Set<dev.langchain4j.model.chat.Capability>)build - doesn't have exactly one parameterGenerated fromOllamaBaseChatModel.Builder.customHeaders(java.util.Map)Optional<dev.langchain4j.model.chat.request.ChatRequestParameters> Generated fromOllamaBaseChatModel.Builder.defaultRequestParameters(dev.langchain4j.model.chat.request.ChatRequestParameters)booleanenabled()If set tofalse(default), OllamaChatModel will not be available even if configured.booleaninthashCode()Optional<dev.langchain4j.http.client.HttpClientBuilder> Generated fromOllamaBaseChatModel.Builder.httpClientBuilder(dev.langchain4j.http.client.HttpClientBuilder)List<dev.langchain4j.model.chat.listener.ChatModelListener> Generated fromOllamaBaseChatModel.Builder.listeners(java.util.List)Optional<org.slf4j.Logger> logger()Generated fromOllamaBaseChatModel.Builder.logger(org.slf4j.Logger)Generated fromOllamaBaseChatModel.Builder.logRequests(java.lang.Boolean)Generated fromOllamaBaseChatModel.Builder.logResponses(java.lang.Boolean)Generated fromOllamaChatModel.OllamaChatModelBuilder.maxRetries(java.lang.Integer)minP()Generated fromOllamaBaseChatModel.Builder.minP(java.lang.Double)mirostat()Generated fromOllamaBaseChatModel.Builder.mirostat(java.lang.Integer)Generated fromOllamaBaseChatModel.Builder.mirostatEta(java.lang.Double)Generated fromOllamaBaseChatModel.Builder.mirostatTau(java.lang.Double)Generated fromOllamaBaseChatModel.Builder.modelName(java.lang.String)numCtx()Generated fromOllamaBaseChatModel.Builder.numCtx(java.lang.Integer)Generated fromOllamaBaseChatModel.Builder.numPredict(java.lang.Integer)Generated fromOllamaBaseChatModel.Builder.repeatLastN(java.lang.Integer)Generated fromOllamaBaseChatModel.Builder.repeatPenalty(java.lang.Double)Optional<dev.langchain4j.model.chat.request.ResponseFormat> Generated fromOllamaBaseChatModel.Builder.responseFormat(dev.langchain4j.model.chat.request.ResponseFormat)Generated fromOllamaBaseChatModel.Builder.returnThinking(java.lang.Boolean)seed()Generated fromOllamaBaseChatModel.Builder.seed(java.lang.Integer)stop()Generated fromOllamaBaseChatModel.Builder.stop(java.util.List)Set<dev.langchain4j.model.chat.Capability> Generated fromOllamaBaseChatModel.Builder.supportedCapabilities(java.util.Set)Generated fromOllamaBaseChatModel.Builder.temperature(java.lang.Double)think()Generated fromOllamaBaseChatModel.Builder.think(java.lang.Boolean)timeout()Generated fromOllamaBaseChatModel.Builder.timeout(java.time.Duration)topK()Generated fromOllamaBaseChatModel.Builder.topK(java.lang.Integer)topP()Generated fromOllamaBaseChatModel.Builder.topP(java.lang.Double)toString()
-
Field Details
-
CONFIG_ROOT
The root configuration key for this builder.- See Also:
-
-
Constructor Details
-
OllamaChatModelConfigImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
enabled
public boolean enabled()Description copied from interface:OllamaChatModelConfigIf set tofalse(default), OllamaChatModel will not be available even if configured.- Specified by:
enabledin interfaceOllamaChatModelConfig- Returns:
- whether OllamaChatModel is enabled, defaults to
false
-
mirostat
Description copied from interface:OllamaChatModelConfigGenerated fromOllamaBaseChatModel.Builder.mirostat(java.lang.Integer)- Specified by:
mirostatin interfaceOllamaChatModelConfig- Returns:
- Integer property
-
seed
Description copied from interface:OllamaChatModelConfigGenerated fromOllamaBaseChatModel.Builder.seed(java.lang.Integer)- Specified by:
seedin interfaceOllamaChatModelConfig- Returns:
- Integer property
-
logger
Description copied from interface:OllamaChatModelConfigGenerated fromOllamaBaseChatModel.Builder.logger(org.slf4j.Logger)- Specified by:
loggerin interfaceOllamaChatModelConfig- Returns:
- Logger property
-
responseFormat
Description copied from interface:OllamaChatModelConfigGenerated fromOllamaBaseChatModel.Builder.responseFormat(dev.langchain4j.model.chat.request.ResponseFormat)- Specified by:
responseFormatin interfaceOllamaChatModelConfig- Returns:
- ResponseFormat property
-
defaultRequestParameters
public Optional<dev.langchain4j.model.chat.request.ChatRequestParameters> defaultRequestParameters()Description copied from interface:OllamaChatModelConfigGenerated fromOllamaBaseChatModel.Builder.defaultRequestParameters(dev.langchain4j.model.chat.request.ChatRequestParameters)- Specified by:
defaultRequestParametersin interfaceOllamaChatModelConfig- Returns:
- ChatRequestParameters property
-
minP
Description copied from interface:OllamaChatModelConfigGenerated fromOllamaBaseChatModel.Builder.minP(java.lang.Double)- Specified by:
minPin interfaceOllamaChatModelConfig- Returns:
- Double property
-
timeout
Description copied from interface:OllamaChatModelConfigGenerated fromOllamaBaseChatModel.Builder.timeout(java.time.Duration)- Specified by:
timeoutin interfaceOllamaChatModelConfig- Returns:
- Duration property
-
httpClientBuilder
Description copied from interface:OllamaChatModelConfigGenerated fromOllamaBaseChatModel.Builder.httpClientBuilder(dev.langchain4j.http.client.HttpClientBuilder)- Specified by:
httpClientBuilderin interfaceOllamaChatModelConfig- Returns:
- HttpClientBuilder property
-
temperature
Description copied from interface:OllamaChatModelConfigGenerated fromOllamaBaseChatModel.Builder.temperature(java.lang.Double)- Specified by:
temperaturein interfaceOllamaChatModelConfig- Returns:
- Double property
-
numCtx
Description copied from interface:OllamaChatModelConfigGenerated fromOllamaBaseChatModel.Builder.numCtx(java.lang.Integer)- Specified by:
numCtxin interfaceOllamaChatModelConfig- Returns:
- Integer property
-
repeatPenalty
Description copied from interface:OllamaChatModelConfigGenerated fromOllamaBaseChatModel.Builder.repeatPenalty(java.lang.Double)- Specified by:
repeatPenaltyin interfaceOllamaChatModelConfig- Returns:
- Double property
-
numPredict
Description copied from interface:OllamaChatModelConfigGenerated fromOllamaBaseChatModel.Builder.numPredict(java.lang.Integer)- Specified by:
numPredictin interfaceOllamaChatModelConfig- Returns:
- Integer property
-
customHeaders
Description copied from interface:OllamaChatModelConfigGenerated fromOllamaBaseChatModel.Builder.customHeaders(java.util.Map)- Specified by:
customHeadersin interfaceOllamaChatModelConfig- Returns:
- Map property
-
topK
Description copied from interface:OllamaChatModelConfigGenerated fromOllamaBaseChatModel.Builder.topK(java.lang.Integer)- Specified by:
topKin interfaceOllamaChatModelConfig- Returns:
- Integer property
-
think
Description copied from interface:OllamaChatModelConfigGenerated fromOllamaBaseChatModel.Builder.think(java.lang.Boolean)- Specified by:
thinkin interfaceOllamaChatModelConfig- Returns:
- Boolean property
-
mirostatEta
Description copied from interface:OllamaChatModelConfigGenerated fromOllamaBaseChatModel.Builder.mirostatEta(java.lang.Double)- Specified by:
mirostatEtain interfaceOllamaChatModelConfig- Returns:
- Double property
-
listeners
Description copied from interface:OllamaChatModelConfigGenerated fromOllamaBaseChatModel.Builder.listeners(java.util.List)- Specified by:
listenersin interfaceOllamaChatModelConfig- Returns:
- List property
-
supportedCapabilities
Description copied from interface:OllamaChatModelConfigGenerated fromOllamaBaseChatModel.Builder.supportedCapabilities(java.util.Set)- Specified by:
supportedCapabilitiesin interfaceOllamaChatModelConfig- Returns:
- Set property
-
logResponses
Description copied from interface:OllamaChatModelConfigGenerated fromOllamaBaseChatModel.Builder.logResponses(java.lang.Boolean)- Specified by:
logResponsesin interfaceOllamaChatModelConfig- Returns:
- Boolean property
-
topP
Description copied from interface:OllamaChatModelConfigGenerated fromOllamaBaseChatModel.Builder.topP(java.lang.Double)- Specified by:
topPin interfaceOllamaChatModelConfig- Returns:
- Double property
-
logRequests
Description copied from interface:OllamaChatModelConfigGenerated fromOllamaBaseChatModel.Builder.logRequests(java.lang.Boolean)- Specified by:
logRequestsin interfaceOllamaChatModelConfig- Returns:
- Boolean property
-
returnThinking
Description copied from interface:OllamaChatModelConfigGenerated fromOllamaBaseChatModel.Builder.returnThinking(java.lang.Boolean)- Specified by:
returnThinkingin interfaceOllamaChatModelConfig- Returns:
- Boolean property
-
modelName
Description copied from interface:OllamaChatModelConfigGenerated fromOllamaBaseChatModel.Builder.modelName(java.lang.String)- Specified by:
modelNamein interfaceOllamaChatModelConfig- Returns:
- String property
-
maxRetries
Description copied from interface:OllamaChatModelConfigGenerated fromOllamaChatModel.OllamaChatModelBuilder.maxRetries(java.lang.Integer)- Specified by:
maxRetriesin interfaceOllamaChatModelConfig- Returns:
- Integer property
-
baseUrl
Description copied from interface:OllamaChatModelConfigGenerated fromOllamaBaseChatModel.Builder.baseUrl(java.lang.String)- Specified by:
baseUrlin interfaceOllamaChatModelConfig- Returns:
- String property
-
stop
Description copied from interface:OllamaChatModelConfigGenerated fromOllamaBaseChatModel.Builder.stop(java.util.List)- Specified by:
stopin interfaceOllamaChatModelConfig- Returns:
- List property
-
mirostatTau
Description copied from interface:OllamaChatModelConfigGenerated fromOllamaBaseChatModel.Builder.mirostatTau(java.lang.Double)- Specified by:
mirostatTauin interfaceOllamaChatModelConfig- Returns:
- Double property
-
repeatLastN
Description copied from interface:OllamaChatModelConfigGenerated fromOllamaBaseChatModel.Builder.repeatLastN(java.lang.Integer)- Specified by:
repeatLastNin interfaceOllamaChatModelConfig- Returns:
- Integer property
-
toString
-
equals
-
hashCode
public int hashCode() -
configuredBuilder
default dev.langchain4j.model.ollama.OllamaChatModel.OllamaChatModelBuilder configuredBuilder()Skipped:- build - doesn't have exactly one parameter
- supportedCapabilities - property already exist ->
B extends dev.langchain4j.model.ollama.OllamaBaseChatModel.Builder<C extends dev.langchain4j.model.ollama.OllamaBaseChatModel> supportedCapabilities(java.util.Set<dev.langchain4j.model.chat.Capability>) - build - doesn't have exactly one parameter
- Returns:
- Actual Lc4j model builder configured with this blueprint.
-