Table of Contents

Property Segments

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

Segments

Gets the list of segments that compose this message.

public IReadOnlyList<ChatHistory.Message.MessageSegment> Segments { get; }

Property Value

IReadOnlyList<ChatHistory.Message.MessageSegment>

Remarks

Each item represents a contiguous slice of Content annotated with a single TextSegmentType. Use this to render or process portions of the message independently (e.g., user-visible text, tool invocations, tool responses). Returns an empty list when the message has no content.