Class AbstractYamlModelLoader

  • All Implemented Interfaces:
    com.embabel.common.ai.autoconfig.LlmAutoConfigMetadataLoader

    
    public abstract class AbstractYamlModelLoader<T extends LlmAutoConfigProvider<?>>
     implements LlmAutoConfigMetadataLoader<T>
                        

    Abstract base loader for LLM model definitions from YAML configuration.

    Provides common logic for loading, parsing, and validating model metadata from YAML files. Subclasses specify the provider type and validation rules.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      T loadAutoConfigMetadata() Loads model definitions from YAML configuration.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractYamlModelLoader

        AbstractYamlModelLoader(ResourceLoader resourceLoader, String configPath)
    • Method Detail

      • loadAutoConfigMetadata

         T loadAutoConfigMetadata()

        Loads model definitions from YAML configuration.

        Attempts to read from the configured path. Returns empty definitions if the file is missing or parsing fails. Validates all loaded models.

        Returns:

        provider instance containing all loaded and validated models