Function: renderArtifactHandleBody()
ts
function renderArtifactHandleBody(input: {
artifact: unknown;
byteLength: number;
callId: string;
encoding?: string;
estimatedTokens?: number;
lineCount: number;
}): string;Defined in: src/batteries/llm/chat_common/helpers.ts:480
Render the "handle" body for a tool call's spooled-artifact result marked inline: false. See buildHandleBody for the shared mechanics; this variant's leading sentence frames the artifact as a tool result.
Parameters
| Parameter | Type |
|---|---|
input | { artifact: unknown; byteLength: number; callId: string; encoding?: string; estimatedTokens?: number; lineCount: number; } |
input.artifact | unknown |
input.byteLength | number |
input.callId | string |
input.encoding? | string |
input.estimatedTokens? | number |
input.lineCount | number |
Returns
string