Skip to main content
The Go SDK and docs are currently in beta. Report issues on GitHub.

Supported Types

ThinkingEnabled

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

ThinkingDisabled

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

ThinkingAdaptive

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

Union Discrimination

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
}