Skip to main content
Version: 0.17.0

Type Alias: ResultFormatter

type ResultFormatter = (toolName, result) => string | null | undefined;

Defined in: tui/ink/toolGroup.ts:36

The line shown under a tool call for its result: a string replaces the kit's (plain text, drawn in the result's color, or the error color if it failed), null hides it, and undefined keeps the kit's (the result's first line).

Parameters​

ParameterType
toolNamestring
result{ isError: boolean; text: string; }
result.isErrorboolean
result.textstring

Returns​

string | null | undefined