Interface: ConsoleRenderer
Defined in: tui/consoleRenderer.ts:21
Prints runQuery()'s events as plain console lines (see createConsoleRenderer()).
Extended by
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
atLineStart | readonly | boolean | Whether the cursor sits at the start of a line (after anything ending in "\n"). | tui/consoleRenderer.ts:32 |
Methods
endLine()
endLine(): void;
Defined in: tui/consoleRenderer.ts:28
Ends the current line, if the cursor isn't already at the start of one.
Returns
void
render()
render(event): void;
Defined in: tui/consoleRenderer.ts:23
Prints one normalized event from runQuery().
Parameters
| Parameter | Type |
|---|---|
event | AgentEvent |
Returns
void
startTurn()
startTurn(): void;
Defined in: tui/consoleRenderer.ts:30
Marks the start of a new turn, so the agent label is printed again before its text.
Returns
void
write()
write(text): void;
Defined in: tui/consoleRenderer.ts:24
Parameters
| Parameter | Type |
|---|---|
text | string |
Returns
void
writeLine()
writeLine(text): void;
Defined in: tui/consoleRenderer.ts:26
Writes text on a line of its own: after ending the current line if needed.
Parameters
| Parameter | Type |
|---|---|
text | string |
Returns
void