openai.internal._chat_all_text

(internal) Every part is text — the precondition for `collapse_text_content`. A `ChatExtraPart` never qualifies even when it wraps text: collapsing to a bare string would drop the directive it carries.

Reference version

Signature

function openai.internal._chat_all_text(parts: openai.internal.ChatContentPart[]) -> bool

(internal) Every part is text — the precondition for collapse_text_content. A ChatExtraPart never qualifies even when it wraps text: collapsing to a bare string would drop the directive it carries.

Source:<builtin>/openai/ns_internal/chat.bamlbytes 2534025627