Use the Type field to determine which variant is active, then access the corresponding field:
switch edit.Type { case components.EditTypeClearToolUses20250919: // edit.EditClearToolUses20250919 is populated case components.EditTypeClearThinking20251015: // edit.EditClearThinking20251015 is populated case components.EditTypeCompact20260112: // edit.EditCompact20260112 is populated}
⌘I
Assistant
Responses are generated using AI and may contain mistakes.