toOpenAIContent

Converts a core Request to an OpenAI content type.

Return

The corresponding OpenAIChatCompletionContent, or null for ToolResult and ToolCall (which have no OpenAI equivalent as content).