toOpenAIMessage
Converts a core Message to an OpenAI response-style OpenAIMessage.
Return
An OpenAIMessage with the same role and converted content.
Converts a core Message to an OpenAI response-style OpenAIMessage.
An OpenAIMessage with the same role and converted content.