Class AIServiceSelection<T extends AIService>

  • Type Parameters:
    T - The type of AI service.

    public class AIServiceSelection<T extends AIService>
    extends Object
    The result of an AI service selection.
    • Constructor Detail

      • AIServiceSelection

        public AIServiceSelection​(T service,
                                  @Nullable
                                  PromptExecutionSettings settings)
        Creates a new AI service selection.
        Parameters:
        service - The selected AI service.
        settings - The settings associated with the selected service. This may be null even if a service is selected..
    • Method Detail

      • getService

        public T getService()
        Gets the selected AI service.
        Returns:
        The selected AI service.
      • getSettings

        @Nullable
        public PromptExecutionSettings getSettings()
        Gets the settings associated with the selected service.
        Returns:
        The settings associated with the selected service. This may be null even if a service is selected.