Thinking - Go SDK

Thinking type definition

The Go SDK and docs are currently in beta. Report issues on GitHub.

Supported Types

ThinkingEnabled

1thinking := components.CreateThinkingEnabled(components.ThinkingEnabled{/* values here */})

ThinkingDisabled

1thinking := components.CreateThinkingDisabled(components.ThinkingDisabled{/* values here */})

ThinkingAdaptive

1thinking := components.CreateThinkingAdaptive(components.ThinkingAdaptive{/* values here */})

Union Discrimination

Use the Type field to determine which variant is active, then access the corresponding field:

1switch thinking.Type {
2 case components.ThinkingTypeEnabled:
3 // thinking.ThinkingEnabled is populated
4 case components.ThinkingTypeDisabled:
5 // thinking.ThinkingDisabled is populated
6 case components.ThinkingTypeAdaptive:
7 // thinking.ThinkingAdaptive is populated
8}