Interface AIServiceSelector
-
- All Known Implementing Classes:
BaseAIServiceSelector,OrderedAIServiceSelector
public interface AIServiceSelectorRepresents a selector which will return anAIServiceSelectioncontaining instances ofAIServiceandPromptExecutionSettingsfrom the specified provider based on the model settings.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends AIService>
AIServiceSelection<T>trySelectAIService(Class<T> serviceType, KernelFunction<?> function, KernelFunctionArguments arguments)Resolves anAIServiceand associated andPromptExecutionSettingsbased on the associatedKernelFunctionandKernelFunctionArguments.
-
-
-
Method Detail
-
trySelectAIService
@Nullable <T extends AIService> AIServiceSelection<T> trySelectAIService(Class<T> serviceType, @Nullable KernelFunction<?> function, @Nullable KernelFunctionArguments arguments)
Resolves anAIServiceand associated andPromptExecutionSettingsbased on the associatedKernelFunctionandKernelFunctionArguments.- Type Parameters:
T- The type of service to select.- Parameters:
serviceType- The type of service to select. This must be the same type with which the service was registered in theAIServiceSelectionfunction- The KernelFunction to use to select the service, ornull.arguments- The KernelFunctionArguments to use to select the service, ornull.- Returns:
- An
AIServiceSelectioncontaining the selected service and associated PromptExecutionSettings.
-
-