Use the Type field to determine which variant is active, then access the corresponding field:
switch thinking.Type { case components.ThinkingTypeEnabled: // thinking.ThinkingEnabled is populated case components.ThinkingTypeDisabled: // thinking.ThinkingDisabled is populated case components.ThinkingTypeAdaptive: // thinking.ThinkingAdaptive is populated}
⌘I
Assistant
Responses are generated using AI and may contain mistakes.