Entry
Category: Conversation
Source: entry.dart
Enums
EntryKind
Kinds of entries that can appear in the rendered conversation transcript.
| Value | Description |
|---|---|
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
| Property | Type | Description |
|---|---|---|
kind | EntryKind | |
text | String | |
args | Map<String, dynamic>? | |
expandedText | String? | |
group | SubagentGroup? | |
id | String | Stable 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. |
display | String | |
rawContent | String? | |
task | String | |
index | int? | |
total | int? | |
entries | List<SubagentEntry> | |
expanded | bool | |
done | bool | |
currentTool | String? | |
summary | String 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
| Property | Type | Description |
|---|---|---|
display | String | |
rawContent | String? |
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
| Property | Type | Description |
|---|---|---|
task | String | |
index | int? | |
total | int? | |
entries | List<SubagentEntry> | |
expanded | bool | |
done | bool | |
currentTool | String? | |
summary | String get |