Saltar al contenido principal
Versión: 0.14.0

Interface: ConsoleRendererOptions

Defined in: tui/consoleRenderer.ts:8

Options of createConsoleRenderer().

Properties​

PropertyTypeDescriptionDefined in
agentLabel?stringPrinted (already styled) before the first text of each turn, e.g. "my-agent>".tui/consoleRenderer.ts:12
formatAction?(toolName, toolInput) => stringTurns a tool call into its console label; defaults to createFriendlyToolLabel().tui/consoleRenderer.ts:10
onWrite?(text) => voidCalled after every write with the same text, e.g. to mirror it into a log file.tui/consoleRenderer.ts:16
output?(text) => voidWhere the text goes; defaults to process.stdout.tui/consoleRenderer.ts:14