Lightning.AiAssistant.ChatMessage.Segment (Lightning v2.18.0)

View Source

One entry in an assistant reply's display timeline: a chunk of answer text, or a completed-action status ("Added step send-to-gmail...") woven between texts in stream order. Display-only — the flat content field stays the canonical answer.

Summary

Functions

Maximum length of a single segment's content (matches content's cap).

Types

t()

@type t() :: %Lightning.AiAssistant.ChatMessage.Segment{
  content: String.t(),
  type: :text | :status
}

Functions

max_content_length()

Maximum length of a single segment's content (matches content's cap).