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

Copy Markdown 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).

Maximum length of a step's key or name.

Maximum number of steps recorded against one status segment.

Types

t()

@type t() :: %Lightning.AiAssistant.ChatMessage.Segment{
  content: String.t(),
  steps: [Lightning.AiAssistant.ChatMessage.Segment.Step.t()],
  summary: String.t() | nil,
  type: :text | :status
}

Functions

max_content_length()

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

max_step_field_length()

Maximum length of a step's key or name.

max_steps()

Maximum number of steps recorded against one status segment.