Table of Contents

Enum TextSegmentType

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

Identifies the kind of segment produced by the chatbot pipeline.

public enum TextSegmentType

Fields

Undefined = 0

For internal purposes only. Do not use.

InternalReasoning = 1

Internal planning/reasoning content not intended to be shown or logged.

UserVisible = 2

Natural-language content intended for end users (safe to render as-is).

ToolInvocation = 3

Directive to invoke a tool/function (may require parsing and execution).

ToolResponse = 4

Data returned by a previously invoked tool/function (raw or structured); not intended for direct rendering without validation/sanitization.

Remarks

Used by AfterTextCompletionEventArgs to help consumers decide how to render, filter, or act on a segment.