ai.internal._wire_blocks
(internal) The blocks of one assistant turn that can still go on the wire. Reasoning survives only for the client that produced it; empty and whitespace-only text blocks are dropped (Anthropic rejects them outright, and no provider needs them).
Reference version
Signature
function ai.internal._wire_blocks(
content: ai.content.ModelBlock[],
keep_reasoning: bool
) -> ai.content.ModelBlock[]
(internal) The blocks of one assistant turn that can still go on the wire. Reasoning survives only for the client that produced it; empty and whitespace-only text blocks are dropped (Anthropic rejects them outright, and no provider needs them).
Source:<builtin>/ai/ns_internal/wire.bamlbytes 3341–4296