Use the Type field to determine which variant is active, then access the corresponding field:
switch chatSystemMessageContent.Type { case components.ChatSystemMessageContentTypeStr: // chatSystemMessageContent.Str is populated case components.ChatSystemMessageContentTypeArrayOfChatContentText: // chatSystemMessageContent.ArrayOfChatContentText is populated}
⌘I
Assistant
Responses are generated using AI and may contain mistakes.