Table of Contents

Class KernelBuilderExtension

Namespace
LMKit.Integrations.SemanticKernel
Assembly
LM-Kit.NET.Integrations.SemanticKernel.dll

Provides extension methods for registering LMKit services—chat completion, text generation, and text embedding generation—with a Semantic Kernel Microsoft.SemanticKernel.IKernelBuilder.

public static class KernelBuilderExtension
Inheritance
KernelBuilderExtension
Inherited Members

Methods

AddLMKitChatCompletion(IKernelBuilder, LMKitChatCompletion)

Adds the specified LMKit chat completion instance to the kernel builder. The instance is registered as a singleton service implementing Microsoft.SemanticKernel.ChatCompletion.IChatCompletionService.

AddLMKitChatCompletion(IKernelBuilder, LM, LMKitPromptExecutionSettings)

Adds the LMKit chat completion service to the kernel builder using the specified LM model. This method creates an instance of LMKitChatCompletion with the provided model and registers it.

AddLMKitTextEmbeddingGeneration(IKernelBuilder, LMKitTextEmbeddingGeneration)

Adds the specified LMKit text embedding generation instance to the kernel builder. The instance is registered as a singleton service implementing Microsoft.SemanticKernel.Embeddings.ITextEmbeddingGenerationService.

AddLMKitTextEmbeddingGeneration(IKernelBuilder, LM)

Adds the LMKit text embedding generation service to the kernel builder using the specified LM model. This method creates an instance of LMKitTextEmbeddingGeneration with the provided model and registers it.

AddLMKitTextGeneration(IKernelBuilder, LMKitTextGeneration)

Adds the specified LMKit text generation instance to the kernel builder. The instance is registered as a singleton service implementing Microsoft.SemanticKernel.TextGeneration.ITextGenerationService.

AddLMKitTextGeneration(IKernelBuilder, LM, LMKitPromptExecutionSettings)

Adds the LMKit text generation service to the kernel builder using the specified LM model. This method creates an instance of LMKitTextGeneration with the provided model and registers it.