Skip to content
1 min read · 99 words

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

ParameterType
input{ artifact: unknown; byteLength: number; callId: string; encoding?: string; estimatedTokens?: number; lineCount: number; }
input.artifactunknown
input.byteLengthnumber
input.callIdstring
input.encoding?string
input.estimatedTokens?number
input.lineCountnumber

Returns

string