Package com.microsoft.semantickernel
Class KernelConfig
- java.lang.Object
-
- com.microsoft.semantickernel.KernelConfig
-
public final class KernelConfig extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKernelConfig.Builder
-
Constructor Summary
Constructors Constructor Description KernelConfig(Map<String,Function<Kernel,TextCompletion>> textCompletionServices, Map<String,Function<Kernel,EmbeddingGeneration<String,Float>>> textEmbeddingGenerationServices, Map<String,Function<Kernel,ChatCompletion>> chatCompletionServices)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Function<Kernel,ChatCompletion>getChatCompletionServiceOrDefault(String serviceId)Function<Kernel,TextCompletion>getTextCompletionService(String serviceId)Get the text completion services with the given idFunction<Kernel,TextCompletion>getTextCompletionServiceOrDefault(String serviceId)Function<Kernel,EmbeddingGeneration<String,Float>>getTextEmbeddingGenerationServiceOrDefault(String serviceId)
-
-
-
Method Detail
-
getTextCompletionService
@Nullable public Function<Kernel,TextCompletion> getTextCompletionService(String serviceId)
Get the text completion services with the given id- Parameters:
serviceId- Service id- Returns:
- Map of text completion services
-
getTextCompletionServiceOrDefault
public Function<Kernel,TextCompletion> getTextCompletionServiceOrDefault(@Nullable String serviceId)
-
getChatCompletionServiceOrDefault
public Function<Kernel,ChatCompletion> getChatCompletionServiceOrDefault(@Nullable String serviceId)
-
-