Skip to content

Entry

Category: Conversation

Source: entry.dart

Enums

EntryKind

Kinds of entries that can appear in the rendered conversation transcript.

ValueDescription
user
assistant
thinking
toolCall
toolCallRef
toolResult
error
system
subagent
subagentGroup
bash

Classes

ConversationEntry

A single entry in the rendered conversation transcript.

Distinct from Message (the LLM-facing wire-shape): a ConversationEntry is what the user sees on screen, including system messages, expanded tool-call references, and subagent group folds.

Constructor

dart
factory ConversationEntry.user(String text, {String? expandedText})
dart
factory ConversationEntry.assistant(String text)
dart
factory ConversationEntry.thinking(String text)
dart
factory ConversationEntry.toolCall(String name, Map<String, dynamic> args)
dart
factory ConversationEntry.toolCallRef(ToolCallId callId)
dart
factory ConversationEntry.toolResult(String content)
dart
factory ConversationEntry.error(String message)
dart
factory ConversationEntry.subagentGroup(SubagentGroup group)
dart
factory ConversationEntry.system(String text)
dart
factory ConversationEntry.bash(String command, String output)

Properties

PropertyTypeDescription
kindEntryKind
textString
argsMap&lt;String, dynamic&gt;?
expandedTextString?
groupSubagentGroup?
idStringStable identifier assigned at construction. Used by transcript selection to anchor positions to a logical block rather than a transient rendered-line index — line indices shift whenever the pipeline rebuilds, but a block's identity (and the offset into its plain text) stays stable across streams and re-renders.
displayString
rawContentString?
taskString
indexint?
totalint?
entriesList&lt;SubagentEntry&gt;
expandedbool
donebool
currentToolString?
summaryString get

Methods

String render({required bool expanded})

SubagentEntry

One step inside a subagent group fold (tool call, partial output, etc.).

Constructor

dart
SubagentEntry(this.display, {this.rawContent})

Properties

PropertyTypeDescription
displayString
rawContentString?

Methods

String render({required bool expanded})

SubagentGroup

Foldable group of subagent activity rendered as a single transcript entry.

Constructor

dart
SubagentGroup({required this.task, this.index, this.total})

Properties

PropertyTypeDescription
taskString
indexint?
totalint?
entriesList&lt;SubagentEntry&gt;
expandedbool
donebool
currentToolString?
summaryString get

Released under the MIT License.