Class JlamaStreamingChatModelConfig.BuilderBase<BUILDER extends JlamaStreamingChatModelConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends JlamaStreamingChatModelConfig>

java.lang.Object
io.helidon.integrations.langchain4j.providers.jlama.JlamaStreamingChatModelConfig.BuilderBase<BUILDER,PROTOTYPE>
Type Parameters:
BUILDER - type of the builder extending this abstract builder
PROTOTYPE - type of the prototype interface that would be built by Prototype.Builder.buildPrototype()
All Implemented Interfaces:
Prototype.Builder<BUILDER,PROTOTYPE>, ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>, ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
Direct Known Subclasses:
JlamaStreamingChatModelConfig.Builder
Enclosing interface:
JlamaStreamingChatModelConfig

public abstract static class JlamaStreamingChatModelConfig.BuilderBase<BUILDER extends JlamaStreamingChatModelConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends JlamaStreamingChatModelConfig> extends Object implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
Fluent API builder base for JlamaStreamingChatModelConfig.
  • Constructor Details

    • BuilderBase

      protected BuilderBase()
      Protected to support extensibility.
  • Method Details

    • from

      public BUILDER from(JlamaStreamingChatModelConfig prototype)
      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 public BUILDER config(Config 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 interface ConfigBuilderSupport.ConfiguredBuilder<BUILDER extends JlamaStreamingChatModelConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends JlamaStreamingChatModelConfig>
      Parameters:
      config - configuration instance used to obtain values to update this builder
      Returns:
      updated builder instance
    • config

      public BUILDER config(Config 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 interface ConfigBuilderSupport.ConfiguredBuilder<BUILDER extends JlamaStreamingChatModelConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends JlamaStreamingChatModelConfig>
      Parameters:
      config - configuration instance used to obtain values to update this builder
      Returns:
      updated builder instance
    • enabled

      public BUILDER enabled(boolean enabled)
      If set to false (default), JlamaStreamingChatModel will not be available even if configured.
      Parameters:
      enabled - whether JlamaStreamingChatModel is enabled, defaults to false
      Returns:
      updated builder instance
      See Also:
    • clearWorkingQuantizedType

      public BUILDER clearWorkingQuantizedType()
      Clear existing value of this property.
      Returns:
      updated builder instance
      See Also:
    • workingQuantizedType

      public BUILDER workingQuantizedType(com.github.tjake.jlama.safetensors.DType workingQuantizedType)
      Generated from JlamaStreamingChatModel.JlamaStreamingChatModelBuilder.workingQuantizedType(com.github.tjake.jlama.safetensors.DType)
      Parameters:
      workingQuantizedType - DType property
      Returns:
      updated builder instance
      See Also:
    • clearModelCachePath

      public BUILDER clearModelCachePath()
      Clear existing value of this property.
      Returns:
      updated builder instance
      See Also:
    • modelCachePath

      public BUILDER modelCachePath(Path modelCachePath)
      Generated from JlamaStreamingChatModel.JlamaStreamingChatModelBuilder.modelCachePath(java.nio.file.Path)
      Parameters:
      modelCachePath - Path property
      Returns:
      updated builder instance
      See Also:
    • clearWorkingDirectory

      public BUILDER clearWorkingDirectory()
      Clear existing value of this property.
      Returns:
      updated builder instance
      See Also:
    • workingDirectory

      public BUILDER workingDirectory(Path workingDirectory)
      Generated from JlamaStreamingChatModel.JlamaStreamingChatModelBuilder.workingDirectory(java.nio.file.Path)
      Parameters:
      workingDirectory - Path property
      Returns:
      updated builder instance
      See Also:
    • clearAuthToken

      public BUILDER clearAuthToken()
      Clear existing value of this property.
      Returns:
      updated builder instance
      See Also:
    • authToken

      public BUILDER authToken(String authToken)
      Generated from JlamaStreamingChatModel.JlamaStreamingChatModelBuilder.authToken(java.lang.String)
      Parameters:
      authToken - String property
      Returns:
      updated builder instance
      See Also:
    • clearTemperature

      public BUILDER clearTemperature()
      Clear existing value of this property.
      Returns:
      updated builder instance
      See Also:
    • temperature

      public BUILDER temperature(float temperature)
      Generated from JlamaStreamingChatModel.JlamaStreamingChatModelBuilder.temperature(java.lang.Float)
      Parameters:
      temperature - Float property
      Returns:
      updated builder instance
      See Also:
    • clearMaxTokens

      public BUILDER clearMaxTokens()
      Clear existing value of this property.
      Returns:
      updated builder instance
      See Also:
    • maxTokens

      public BUILDER maxTokens(int maxTokens)
      Generated from JlamaStreamingChatModel.JlamaStreamingChatModelBuilder.maxTokens(java.lang.Integer)
      Parameters:
      maxTokens - Integer property
      Returns:
      updated builder instance
      See Also:
    • clearThreadCount

      public BUILDER clearThreadCount()
      Clear existing value of this property.
      Returns:
      updated builder instance
      See Also:
    • threadCount

      public BUILDER threadCount(int threadCount)
      Generated from JlamaStreamingChatModel.JlamaStreamingChatModelBuilder.threadCount(java.lang.Integer)
      Parameters:
      threadCount - Integer property
      Returns:
      updated builder instance
      See Also:
    • clearQuantizeModelAtRuntime

      public BUILDER clearQuantizeModelAtRuntime()
      Clear existing value of this property.
      Returns:
      updated builder instance
      See Also:
    • quantizeModelAtRuntime

      public BUILDER quantizeModelAtRuntime(boolean quantizeModelAtRuntime)
      Generated from JlamaStreamingChatModel.JlamaStreamingChatModelBuilder.quantizeModelAtRuntime(java.lang.Boolean)
      Parameters:
      quantizeModelAtRuntime - Boolean property
      Returns:
      updated builder instance
      See Also:
    • modelName

      public BUILDER modelName(String modelName)
      Configure the model name.
      Parameters:
      modelName - model name
      Returns:
      updated builder instance
      See Also:
    • enabled

      public boolean enabled()
      If set to false (default), JlamaStreamingChatModel will not be available even if configured.
      Returns:
      the enabled
    • workingQuantizedType

      public Optional<com.github.tjake.jlama.safetensors.DType> workingQuantizedType()
      Generated from JlamaStreamingChatModel.JlamaStreamingChatModelBuilder.workingQuantizedType(com.github.tjake.jlama.safetensors.DType)
      Returns:
      the working quantized type
    • modelCachePath

      public Optional<Path> modelCachePath()
      Generated from JlamaStreamingChatModel.JlamaStreamingChatModelBuilder.modelCachePath(java.nio.file.Path)
      Returns:
      the model cache path
    • workingDirectory

      public Optional<Path> workingDirectory()
      Generated from JlamaStreamingChatModel.JlamaStreamingChatModelBuilder.workingDirectory(java.nio.file.Path)
      Returns:
      the working directory
    • authToken

      public Optional<String> authToken()
      Generated from JlamaStreamingChatModel.JlamaStreamingChatModelBuilder.authToken(java.lang.String)
      Returns:
      the auth token
    • temperature

      public Optional<Float> temperature()
      Generated from JlamaStreamingChatModel.JlamaStreamingChatModelBuilder.temperature(java.lang.Float)
      Returns:
      the temperature
    • maxTokens

      public Optional<Integer> maxTokens()
      Generated from JlamaStreamingChatModel.JlamaStreamingChatModelBuilder.maxTokens(java.lang.Integer)
      Returns:
      the max tokens
    • threadCount

      public Optional<Integer> threadCount()
      Generated from JlamaStreamingChatModel.JlamaStreamingChatModelBuilder.threadCount(java.lang.Integer)
      Returns:
      the thread count
    • quantizeModelAtRuntime

      public Optional<Boolean> quantizeModelAtRuntime()
      Generated from JlamaStreamingChatModel.JlamaStreamingChatModelBuilder.quantizeModelAtRuntime(java.lang.Boolean)
      Returns:
      the quantize model at runtime
    • modelName

      public Optional<String> modelName()
      Configure the model name.
      Returns:
      the model name
    • config

      public Optional<Config> 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

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

      protected void preBuildPrototype()
      Handles providers and decorators.
    • validatePrototype

      protected void validatePrototype()
      Validates required properties.