Use the Type field to determine which variant is active, then access the corresponding field:
switch clearToolInputs.Type { case components.ClearToolInputsTypeBoolean: // clearToolInputs.Boolean is populated case components.ClearToolInputsTypeArrayOfStr: // clearToolInputs.ArrayOfStr is populated case components.ClearToolInputsTypeAny: // clearToolInputs.Any is populated}
⌘I
Assistant
Responses are generated using AI and may contain mistakes.