Thinking - Go SDK
The Go SDK and docs are currently in beta. Report issues on GitHub.
1thinking := components.CreateThinkingEnabled(components.ThinkingEnabled{/* values here */})
1thinking := components.CreateThinkingDisabled(components.ThinkingDisabled{/* values here */})
1thinking := components.CreateThinkingAdaptive(components.ThinkingAdaptive{/* values here */})
Use the Type field to determine which variant is active, then access the corresponding field:
Type
1switch thinking.Type {2 case components.ThinkingTypeEnabled:3 // thinking.ThinkingEnabled is populated4 case components.ThinkingTypeDisabled:5 // thinking.ThinkingDisabled is populated6 case components.ThinkingTypeAdaptive:7 // thinking.ThinkingAdaptive is populated8}