Table of Contents

Namespace LMKit.TextGeneration

Namespaces

LMKit.TextGeneration.Chat
LMKit.TextGeneration.Events
LMKit.TextGeneration.Sampling

Classes

MultiTurnConversation

A class specifically designed to handle multi-turn question-answering scenarios.

SingleTurnConversation

A class designed for handling single-turn question answering.
Unlike a multi-turn conversation service, it does not preserve context between questions and answers.

Summarizer

Provides functionality to generate a summary (title and/or content) from an input text using a language model.

Summarizer.SummarizerResult

Represents the result of a summarization operation, including both a title and summarized content.

TextGenerationResult

Holds the result of a text completion operation.

Interfaces

IConversation

Represents a conversation interface for interacting with a text generation model. Provides methods for submitting prompts, both synchronously and asynchronously, and allows for event handling before and after token sampling, as well as after text completion.

Enums

Language

Defines supported languages.

TextGenerationResult.StopReason

Enumerates the various reasons that can lead to the termination of a text completion task.