Table of Contents

Namespace LMKit.TextGeneration.Filters

Classes

CompletionFilterContext

Provides contextual information to ICompletionFilter implementations.

DelegateCompletionFilter

A completion filter backed by a delegate, enabling inline lambda registration.

DelegatePromptFilter

A prompt filter backed by a delegate, enabling inline lambda registration.

DelegateToolInvocationFilter

A tool invocation filter backed by a delegate, enabling inline lambda registration.

FilterPipeline

An ordered collection of filters that intercept prompt, completion, and tool invocation stages.

FilterPipelineExtensions

Extension methods for FilterPipeline that enable concise inline filter registration.

PromptFilterContext

Provides contextual information to IPromptFilter implementations.

ToolInvocationFilterContext

Provides contextual information to IToolInvocationFilter implementations.

Interfaces

ICompletionFilter

A filter that intercepts the completion pipeline after inference produces a result.

IPromptFilter

A filter that intercepts the prompt pipeline before and after inference.

IToolInvocationFilter

A filter that intercepts tool invocations during the automatic tool-calling loop.