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.
  • Field Details

  • Constructor Details

    • JlamaChatModelConfigImpl

      protected JlamaChatModelConfigImpl(JlamaChatModelConfig.BuilderBase<?,?> builder)
      Create an instance providing a builder.
      Parameters:
      builder - extending builder base of this prototype
  • Method Details

    • enabled

      public boolean enabled()
      Description copied from interface: JlamaChatModelConfig
      If set to false (default), JlamaChatModel will not be available even if configured.
      Specified by:
      enabled in interface JlamaChatModelConfig
      Returns:
      whether JlamaChatModel is enabled, defaults to false
    • workingQuantizedType

      public Optional<com.github.tjake.jlama.safetensors.DType> workingQuantizedType()
      Description copied from interface: JlamaChatModelConfig
      Generated from JlamaChatModel.JlamaChatModelBuilder.workingQuantizedType(com.github.tjake.jlama.safetensors.DType)
      Specified by:
      workingQuantizedType in interface JlamaChatModelConfig
      Returns:
      DType property
    • modelCachePath

      public Optional<Path> modelCachePath()
      Description copied from interface: JlamaChatModelConfig
      Generated from JlamaChatModel.JlamaChatModelBuilder.modelCachePath(java.nio.file.Path)
      Specified by:
      modelCachePath in interface JlamaChatModelConfig
      Returns:
      Path property
    • workingDirectory

      public Optional<Path> workingDirectory()
      Description copied from interface: JlamaChatModelConfig
      Generated from JlamaChatModel.JlamaChatModelBuilder.workingDirectory(java.nio.file.Path)
      Specified by:
      workingDirectory in interface JlamaChatModelConfig
      Returns:
      Path property
    • authToken

      public Optional<String> authToken()
      Description copied from interface: JlamaChatModelConfig
      Generated from JlamaChatModel.JlamaChatModelBuilder.authToken(java.lang.String)
      Specified by:
      authToken in interface JlamaChatModelConfig
      Returns:
      String property
    • temperature

      public Optional<Float> temperature()
      Description copied from interface: JlamaChatModelConfig
      Generated from JlamaChatModel.JlamaChatModelBuilder.temperature(java.lang.Float)
      Specified by:
      temperature in interface JlamaChatModelConfig
      Returns:
      Float property
    • maxTokens

      public Optional<Integer> maxTokens()
      Description copied from interface: JlamaChatModelConfig
      Generated from JlamaChatModel.JlamaChatModelBuilder.maxTokens(java.lang.Integer)
      Specified by:
      maxTokens in interface JlamaChatModelConfig
      Returns:
      Integer property
    • threadCount

      public Optional<Integer> threadCount()
      Description copied from interface: JlamaChatModelConfig
      Generated from JlamaChatModel.JlamaChatModelBuilder.threadCount(java.lang.Integer)
      Specified by:
      threadCount in interface JlamaChatModelConfig
      Returns:
      Integer property
    • quantizeModelAtRuntime

      public Optional<Boolean> quantizeModelAtRuntime()
      Description copied from interface: JlamaChatModelConfig
      Generated from JlamaChatModel.JlamaChatModelBuilder.quantizeModelAtRuntime(java.lang.Boolean)
      Specified by:
      quantizeModelAtRuntime in interface JlamaChatModelConfig
      Returns:
      Boolean property
    • modelName

      public String modelName()
      Description copied from interface: JlamaChatModelConfig
      Configure the model name.
      Specified by:
      modelName in interface JlamaChatModelConfig
      Returns:
      model name
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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.