Table of Contents

Class ServiceCollectionExtensions

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

Provides extension methods for registering LMKit services with an IServiceCollection.

public static class ServiceCollectionExtensions
Inheritance
ServiceCollectionExtensions
Inherited Members

Methods

AddLMKitChatClient(IServiceCollection, LMKitChatClient)

Adds a pre-constructed LMKit Microsoft.Extensions.AI.IChatClient to the service collection.

AddLMKitChatClient(IServiceCollection, LM, ChatOptions?)

Adds an LMKit Microsoft.Extensions.AI.IChatClient implementation to the service collection using the specified model.

AddLMKitEmbeddingGenerator(IServiceCollection, LMKitEmbeddingGenerator)

Adds a pre-constructed LMKit Microsoft.Extensions.AI.IEmbeddingGenerator<TInput, TEmbedding> to the service collection.

AddLMKitEmbeddingGenerator(IServiceCollection, LM)

Adds an LMKit Microsoft.Extensions.AI.IEmbeddingGenerator<TInput, TEmbedding> to the service collection using the specified model.