role.
Supported Types
InternChatAssistantMessage
InternChatDeveloperMessage
InternChatSystemMessage
InternChatToolMessage
InternChatUserMessage
Union Discrimination
Use theType field to determine which variant is active, then access the corresponding field: