pub fn content_text(content: &Value) -> StringExpand description
Extract plain text from a message content value.
Content is either a string or an OpenAI-style array of parts. Callers that need text (prompt assembly, substring search) must agree on one reading, so it lives in the contract instead of being reimplemented per crate.