Interface Service.ServicesFactory<T>

Type Parameters:
T - type of the provided services
All Known Implementing Classes:
CohereEmbeddingModelFactory, CohereScoringModelFactory, GeneratedService.ServicesFactoryInterceptionWrapper, OllamaChatModelFactory, OllamaEmbeddingModelFactory, OllamaLanguageModelFactory, OllamaStreamingChatModelFactory, OpenAiChatModelFactory, OpenAiEmbeddingModelFactory, OpenAiImageModelFactory, OpenAiLanguageModelFactory, OpenAiModerationModelFactory, OpenAiStreamingChatModelFactory
Enclosing class:
Service

public static interface Service.ServicesFactory<T>
Provides an ability to create more than one service instance from a single service definition. This is useful when the cardinality can only be determined at runtime.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final TypeName
    Type name of this interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    List of service instances.
  • Field Details

    • TYPE

      static final TypeName TYPE
      Type name of this interface.
  • Method Details

    • services

      List of service instances. Each instance may have a different set of qualifiers.

      The following is inherited from this factory:

      Returns:
      qualified suppliers of service instances