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

# Function: renderAnthropicThinkingBlocks()

```ts
function renderAnthropicThinkingBlocks(input: {
  model: string;
  prefixFingerprint: string;
  replayCompatibility: readonly string[];
  thought: Thought;
  warn?: (msg: string) => void;
}): ContentBlockParam[];
```

Defined in: [src/batteries/llm/anthropic\_messages/helpers.ts:420](https://github.com/NHTIO/ADK/blob/v1.20260726.0/src/src/batteries/llm/anthropic_messages/helpers.ts#L420)

Converts an eligible stored Anthropic thinking payload into byte-exact wire blocks.

## Parameters

| Parameter                   | Type                                                                                                                                                                                                        |
| --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `input`                     | { `model`: `string`; `prefixFingerprint`: `string`; `replayCompatibility`: readonly `string`\[]; `thought`: [`Thought`](../../../../../common/classes/Thought.md); `warn?`: (`msg`: `string`) => `void`; } |
| `input.model`               | `string`                                                                                                                                                                                                    |
| `input.prefixFingerprint`   | `string`                                                                                                                                                                                                    |
| `input.replayCompatibility` | readonly `string`\[]                                                                                                                                                                                         |
| `input.thought`             | [`Thought`](../../../../../common/classes/Thought.md)                                                                                                                                                       |
| `input.warn?`               | (`msg`: `string`) => `void`                                                                                                                                                                                 |

## Returns

`ContentBlockParam`\[]
