[ChatMessage] instead of a prompt to hold a conversation.
How messages are split
The SDK does not send the array verbatim. It splits it:- System turns become
options.systemPrompt. - The trailing user turn becomes the prompt.
- Everything between travels as history.
SDKException.