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(
keep_reasoning: bool

(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 33414296