Skip to content
1 min read · 103 words

Function: renderRetrievableHandleBody()

ts
function renderRetrievableHandleBody(input: {
  artifact: unknown;
  byteLength: number;
  callId: string;
  encoding?: string;
  estimatedTokens?: number;
  lineCount: number;
}): string;

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

Render the "handle" body for a @nhtio/adk!Retrievable's spooled-artifact content marked inline: false. See buildHandleBody for the shared mechanics; this variant's leading sentence frames the artifact as a retrieved record rather than 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