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

Supported Types

fileSearchServerToolValue1 := components.CreateFileSearchServerToolValue1Str(string{/* values here */})

fileSearchServerToolValue1 := components.CreateFileSearchServerToolValue1Number(float64{/* values here */})

Union Discrimination

Use the Type field to determine which variant is active, then access the corresponding field:
switch fileSearchServerToolValue1.Type {
	case components.FileSearchServerToolValue1TypeStr:
		// fileSearchServerToolValue1.Str is populated
	case components.FileSearchServerToolValue1TypeNumber:
		// fileSearchServerToolValue1.Number is populated
}