---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/llm/webllm_chat_completions/helpers/functions/renderRetrievableHandleBody.md
---

# 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](https://github.com/NHTIO/ADK/blob/v1.20260826.0/src/src/batteries/llm/chat_common/helpers.ts#L499)

Render the "handle" body for a [@nhtio/adk!Retrievable](../../../../../common/classes/Retrievable.md)'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

| 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`
