Skip to content
1 min read · 81 words

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

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

Parameters

ParameterType
input{ model: string; prefixFingerprint: string; replayCompatibility: readonly string[]; thought: Thought; warn?: (msg: string) => void; }
input.modelstring
input.prefixFingerprintstring
input.replayCompatibilityreadonly string[]
input.thoughtThought
input.warn?(msg: string) => void

Returns

ContentBlockParam[]