FileSearchServerToolValue1 - Go SDK

FileSearchServerToolValue1 type definition

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

Supported Types

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

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

Union Discrimination

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

1switch fileSearchServerToolValue1.Type {
2 case components.FileSearchServerToolValue1TypeStr:
3 // fileSearchServerToolValue1.Str is populated
4 case components.FileSearchServerToolValue1TypeNumber:
5 // fileSearchServerToolValue1.Number is populated
6}