Function: chatContentToText()
chatContentToText(
content,options?):string
Flatten a message content value to plain text. Accepts the string form and
structured content as either one ChatContentPart or an array, and
yields "" for anything else (null, a lone image part, a malformed payload).
Typed as unknown because most callers are reading a just-parsed JSON body,
and the point of this helper is that they do not have to pre-check it.
Parameters
Section titled “Parameters”content
Section titled “content”unknown
options?
Section titled “options?”separator?
Section titled “separator?”string = ...
types?
Section titled “types?”string[] = ...
Returns
Section titled “Returns”string