Class JlamaChatModelConfig.BuilderBase.JlamaChatModelConfigImpl
java.lang.Object
io.helidon.integrations.langchain4j.providers.jlama.JlamaChatModelConfig.BuilderBase.JlamaChatModelConfigImpl
- All Implemented Interfaces:
Prototype.Api,JlamaChatModelConfig
- Enclosing class:
JlamaChatModelConfig.BuilderBase<BUILDER extends JlamaChatModelConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends JlamaChatModelConfig>
protected static class JlamaChatModelConfig.BuilderBase.JlamaChatModelConfigImpl
extends Object
implements JlamaChatModelConfig
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.jlama.JlamaChatModelConfig
JlamaChatModelConfig.Builder, JlamaChatModelConfig.BuilderBase<BUILDER extends JlamaChatModelConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends JlamaChatModelConfig> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe root configuration key for this builder. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJlamaChatModelConfigImpl(JlamaChatModelConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionGenerated fromJlamaChatModel.JlamaChatModelBuilder.authToken(java.lang.String)default dev.langchain4j.model.jlama.JlamaChatModel.JlamaChatModelBuilderSkipped: build - doesn't have exactly one parameter toString - doesn't have exactly one parameterbooleanenabled()If set tofalse(default), JlamaChatModel will not be available even if configured.booleaninthashCode()Generated fromJlamaChatModel.JlamaChatModelBuilder.maxTokens(java.lang.Integer)Generated fromJlamaChatModel.JlamaChatModelBuilder.modelCachePath(java.nio.file.Path)Configure the model name.Generated fromJlamaChatModel.JlamaChatModelBuilder.quantizeModelAtRuntime(java.lang.Boolean)Generated fromJlamaChatModel.JlamaChatModelBuilder.temperature(java.lang.Float)Generated fromJlamaChatModel.JlamaChatModelBuilder.threadCount(java.lang.Integer)toString()Generated fromJlamaChatModel.JlamaChatModelBuilder.workingDirectory(java.nio.file.Path)Optional<com.github.tjake.jlama.safetensors.DType> Generated fromJlamaChatModel.JlamaChatModelBuilder.workingQuantizedType(com.github.tjake.jlama.safetensors.DType)
-
Field Details
-
CONFIG_ROOT
The root configuration key for this builder.- See Also:
-
-
Constructor Details
-
JlamaChatModelConfigImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
enabled
public boolean enabled()Description copied from interface:JlamaChatModelConfigIf set tofalse(default), JlamaChatModel will not be available even if configured.- Specified by:
enabledin interfaceJlamaChatModelConfig- Returns:
- whether JlamaChatModel is enabled, defaults to
false
-
workingQuantizedType
Description copied from interface:JlamaChatModelConfigGenerated fromJlamaChatModel.JlamaChatModelBuilder.workingQuantizedType(com.github.tjake.jlama.safetensors.DType)- Specified by:
workingQuantizedTypein interfaceJlamaChatModelConfig- Returns:
- DType property
-
modelCachePath
Description copied from interface:JlamaChatModelConfigGenerated fromJlamaChatModel.JlamaChatModelBuilder.modelCachePath(java.nio.file.Path)- Specified by:
modelCachePathin interfaceJlamaChatModelConfig- Returns:
- Path property
-
workingDirectory
Description copied from interface:JlamaChatModelConfigGenerated fromJlamaChatModel.JlamaChatModelBuilder.workingDirectory(java.nio.file.Path)- Specified by:
workingDirectoryin interfaceJlamaChatModelConfig- Returns:
- Path property
-
authToken
Description copied from interface:JlamaChatModelConfigGenerated fromJlamaChatModel.JlamaChatModelBuilder.authToken(java.lang.String)- Specified by:
authTokenin interfaceJlamaChatModelConfig- Returns:
- String property
-
temperature
Description copied from interface:JlamaChatModelConfigGenerated fromJlamaChatModel.JlamaChatModelBuilder.temperature(java.lang.Float)- Specified by:
temperaturein interfaceJlamaChatModelConfig- Returns:
- Float property
-
maxTokens
Description copied from interface:JlamaChatModelConfigGenerated fromJlamaChatModel.JlamaChatModelBuilder.maxTokens(java.lang.Integer)- Specified by:
maxTokensin interfaceJlamaChatModelConfig- Returns:
- Integer property
-
threadCount
Description copied from interface:JlamaChatModelConfigGenerated fromJlamaChatModel.JlamaChatModelBuilder.threadCount(java.lang.Integer)- Specified by:
threadCountin interfaceJlamaChatModelConfig- Returns:
- Integer property
-
quantizeModelAtRuntime
Description copied from interface:JlamaChatModelConfigGenerated fromJlamaChatModel.JlamaChatModelBuilder.quantizeModelAtRuntime(java.lang.Boolean)- Specified by:
quantizeModelAtRuntimein interfaceJlamaChatModelConfig- Returns:
- Boolean property
-
modelName
Description copied from interface:JlamaChatModelConfigConfigure the model name.- Specified by:
modelNamein interfaceJlamaChatModelConfig- Returns:
- model name
-
toString
-
equals
-
hashCode
public int hashCode() -
configuredBuilder
default dev.langchain4j.model.jlama.JlamaChatModel.JlamaChatModelBuilder configuredBuilder()Skipped:- build - doesn't have exactly one parameter
- toString - doesn't have exactly one parameter
Overridden:
JlamaLc4jProvider.modelName()JlamaLc4jProvider.modelName()
- Returns:
- Actual Lc4j model builder configured with this blueprint.
-