Skip to content
1 min read · 112 words

Variable: defaultRenderArtifactHandleBody

ts
const defaultRenderArtifactHandleBody: (input: {
  artifact: unknown;
  byteLength: number;
  callId: string;
  encoding?: string;
  estimatedTokens?: number;
  lineCount: number;
}) => string = renderArtifactHandleBody;

Defined in: src/batteries/llm/chat_common/helpers.ts:513

Default handle-body renderer for tool-call artifacts; the renderArtifactHandleBody override falls back to this.

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