Table of Contents

Class TextGenerationResult

Namespace
LMKit.TextGeneration
Assembly
LM-Kit.NET.dll

Holds the result of a text completion operation.

public sealed class TextGenerationResult
Inheritance
TextGenerationResult
Inherited Members

Properties

Completion

Gets the generated text in a human-readable format.

ContextSize

Gets the context size in tokens.

ContextTokens

Gets the tokens of the key-value cache context.

GeneratedTokens

Gets the tokens produced during the sampling operations.

QualityScore

Gets a quality score for the generated text.
This score ranges between 0 and 1, where 1 indicates higher reliability of the text generation.
The formula utilizes a custom-designed metric that comprehensively analyzes various metrics generated throughout the completion phase.

TerminationReason

Gets the cause for the conclusion of the text completion process.

TokenGenerationRate

Gets the token generation rate in tokens per second.