Supported Types
ChatAssistantMessage
ChatDeveloperMessage
ChatSystemMessage
ChatToolMessage
ChatUserMessage
Union Discrimination
Use theType field to determine which variant is active, then access the corresponding field:
ChatMessages type definition
Type field to determine which variant is active, then access the corresponding field: