InputsUnion1 - Go SDK
InputsUnion1 - Go SDK
InputsUnion1 type definition
The Go SDK and docs are currently in beta. Report issues on GitHub.
Supported Types
ReasoningItem
1 inputsUnion1 := components.CreateInputsUnion1ReasoningItem(components.ReasoningItem{/* values here */})
EasyInputMessage
1 inputsUnion1 := components.CreateInputsUnion1EasyInputMessage(components.EasyInputMessage{/* values here */})
InputMessageItem
1 inputsUnion1 := components.CreateInputsUnion1InputMessageItem(components.InputMessageItem{/* values here */})
FunctionCallItem
1 inputsUnion1 := components.CreateInputsUnion1FunctionCallItem(components.FunctionCallItem{/* values here */})
FunctionCallOutputItem
1 inputsUnion1 := components.CreateInputsUnion1FunctionCallOutputItem(components.FunctionCallOutputItem{/* values here */})
ApplyPatchCallItem
1 inputsUnion1 := components.CreateInputsUnion1ApplyPatchCallItem(components.ApplyPatchCallItem{/* values here */})
ApplyPatchCallOutputItem
1 inputsUnion1 := components.CreateInputsUnion1ApplyPatchCallOutputItem(components.ApplyPatchCallOutputItem{/* values here */})
InputsMessage
1 inputsUnion1 := components.CreateInputsUnion1InputsMessage(components.InputsMessage{/* values here */})
InputsReasoning
1 inputsUnion1 := components.CreateInputsUnion1InputsReasoning(components.InputsReasoning{/* values here */})
OutputFunctionCallItem
1 inputsUnion1 := components.CreateInputsUnion1OutputFunctionCallItem(components.OutputFunctionCallItem{/* values here */})
OutputCustomToolCallItem
1 inputsUnion1 := components.CreateInputsUnion1OutputCustomToolCallItem(components.OutputCustomToolCallItem{/* values here */})
OutputWebSearchCallItem
1 inputsUnion1 := components.CreateInputsUnion1OutputWebSearchCallItem(components.OutputWebSearchCallItem{/* values here */})
OutputFileSearchCallItem
1 inputsUnion1 := components.CreateInputsUnion1OutputFileSearchCallItem(components.OutputFileSearchCallItem{/* values here */})
OutputImageGenerationCallItem
1 inputsUnion1 := components.CreateInputsUnion1OutputImageGenerationCallItem(components.OutputImageGenerationCallItem{/* values here */})
OutputCodeInterpreterCallItem
1 inputsUnion1 := components.CreateInputsUnion1OutputCodeInterpreterCallItem(components.OutputCodeInterpreterCallItem{/* values here */})
OutputComputerCallItem
1 inputsUnion1 := components.CreateInputsUnion1OutputComputerCallItem(components.OutputComputerCallItem{/* values here */})
OutputDatetimeItem
1 inputsUnion1 := components.CreateInputsUnion1OutputDatetimeItem(components.OutputDatetimeItem{/* values here */})
OutputWebSearchServerToolItem
1 inputsUnion1 := components.CreateInputsUnion1OutputWebSearchServerToolItem(components.OutputWebSearchServerToolItem{/* values here */})
OutputCodeInterpreterServerToolItem
1 inputsUnion1 := components.CreateInputsUnion1OutputCodeInterpreterServerToolItem(components.OutputCodeInterpreterServerToolItem{/* values here */})
OutputFileSearchServerToolItem
1 inputsUnion1 := components.CreateInputsUnion1OutputFileSearchServerToolItem(components.OutputFileSearchServerToolItem{/* values here */})
OutputImageGenerationServerToolItem
1 inputsUnion1 := components.CreateInputsUnion1OutputImageGenerationServerToolItem(components.OutputImageGenerationServerToolItem{/* values here */})
OutputBrowserUseServerToolItem
1 inputsUnion1 := components.CreateInputsUnion1OutputBrowserUseServerToolItem(components.OutputBrowserUseServerToolItem{/* values here */})
OutputBashServerToolItem
1 inputsUnion1 := components.CreateInputsUnion1OutputBashServerToolItem(components.OutputBashServerToolItem{/* values here */})
OutputTextEditorServerToolItem
1 inputsUnion1 := components.CreateInputsUnion1OutputTextEditorServerToolItem(components.OutputTextEditorServerToolItem{/* values here */})
OutputApplyPatchServerToolItem
1 inputsUnion1 := components.CreateInputsUnion1OutputApplyPatchServerToolItem(components.OutputApplyPatchServerToolItem{/* values here */})
OutputWebFetchServerToolItem
1 inputsUnion1 := components.CreateInputsUnion1OutputWebFetchServerToolItem(components.OutputWebFetchServerToolItem{/* values here */})
OutputToolSearchServerToolItem
1 inputsUnion1 := components.CreateInputsUnion1OutputToolSearchServerToolItem(components.OutputToolSearchServerToolItem{/* values here */})
OutputMemoryServerToolItem
1 inputsUnion1 := components.CreateInputsUnion1OutputMemoryServerToolItem(components.OutputMemoryServerToolItem{/* values here */})
OutputMcpServerToolItem
1 inputsUnion1 := components.CreateInputsUnion1OutputMcpServerToolItem(components.OutputMcpServerToolItem{/* values here */})
OutputSearchModelsServerToolItem
1 inputsUnion1 := components.CreateInputsUnion1OutputSearchModelsServerToolItem(components.OutputSearchModelsServerToolItem{/* values here */})
OutputAdvisorServerToolItem
1 inputsUnion1 := components.CreateInputsUnion1OutputAdvisorServerToolItem(components.OutputAdvisorServerToolItem{/* values here */})
LocalShellCallItem
1 inputsUnion1 := components.CreateInputsUnion1LocalShellCallItem(components.LocalShellCallItem{/* values here */})
LocalShellCallOutputItem
1 inputsUnion1 := components.CreateInputsUnion1LocalShellCallOutputItem(components.LocalShellCallOutputItem{/* values here */})
ShellCallItem
1 inputsUnion1 := components.CreateInputsUnion1ShellCallItem(components.ShellCallItem{/* values here */})
ShellCallOutputItem
1 inputsUnion1 := components.CreateInputsUnion1ShellCallOutputItem(components.ShellCallOutputItem{/* values here */})
McpListToolsItem
1 inputsUnion1 := components.CreateInputsUnion1McpListToolsItem(components.McpListToolsItem{/* values here */})
McpApprovalRequestItem
1 inputsUnion1 := components.CreateInputsUnion1McpApprovalRequestItem(components.McpApprovalRequestItem{/* values here */})
McpApprovalResponseItem
1 inputsUnion1 := components.CreateInputsUnion1McpApprovalResponseItem(components.McpApprovalResponseItem{/* values here */})
McpCallItem
1 inputsUnion1 := components.CreateInputsUnion1McpCallItem(components.McpCallItem{/* values here */})
CustomToolCallItem
1 inputsUnion1 := components.CreateInputsUnion1CustomToolCallItem(components.CustomToolCallItem{/* values here */})
CustomToolCallOutputItem
1 inputsUnion1 := components.CreateInputsUnion1CustomToolCallOutputItem(components.CustomToolCallOutputItem{/* values here */})
CompactionItem
1 inputsUnion1 := components.CreateInputsUnion1CompactionItem(components.CompactionItem{/* values here */})
ItemReferenceItem
1 inputsUnion1 := components.CreateInputsUnion1ItemReferenceItem(components.ItemReferenceItem{/* values here */})
Union Discrimination
Use the Type field to determine which variant is active, then access the corresponding field:
1 switch inputsUnion1.Type { 2 case components.InputsUnion1TypeReasoningItem: 3 // inputsUnion1.ReasoningItem is populated 4 case components.InputsUnion1TypeEasyInputMessage: 5 // inputsUnion1.EasyInputMessage is populated 6 case components.InputsUnion1TypeInputMessageItem: 7 // inputsUnion1.InputMessageItem is populated 8 case components.InputsUnion1TypeFunctionCallItem: 9 // inputsUnion1.FunctionCallItem is populated 10 case components.InputsUnion1TypeFunctionCallOutputItem: 11 // inputsUnion1.FunctionCallOutputItem is populated 12 case components.InputsUnion1TypeApplyPatchCallItem: 13 // inputsUnion1.ApplyPatchCallItem is populated 14 case components.InputsUnion1TypeApplyPatchCallOutputItem: 15 // inputsUnion1.ApplyPatchCallOutputItem is populated 16 case components.InputsUnion1TypeInputsMessage: 17 // inputsUnion1.InputsMessage is populated 18 case components.InputsUnion1TypeInputsReasoning: 19 // inputsUnion1.InputsReasoning is populated 20 case components.InputsUnion1TypeOutputFunctionCallItem: 21 // inputsUnion1.OutputFunctionCallItem is populated 22 case components.InputsUnion1TypeOutputCustomToolCallItem: 23 // inputsUnion1.OutputCustomToolCallItem is populated 24 case components.InputsUnion1TypeOutputWebSearchCallItem: 25 // inputsUnion1.OutputWebSearchCallItem is populated 26 case components.InputsUnion1TypeOutputFileSearchCallItem: 27 // inputsUnion1.OutputFileSearchCallItem is populated 28 case components.InputsUnion1TypeOutputImageGenerationCallItem: 29 // inputsUnion1.OutputImageGenerationCallItem is populated 30 case components.InputsUnion1TypeOutputCodeInterpreterCallItem: 31 // inputsUnion1.OutputCodeInterpreterCallItem is populated 32 case components.InputsUnion1TypeOutputComputerCallItem: 33 // inputsUnion1.OutputComputerCallItem is populated 34 case components.InputsUnion1TypeOutputDatetimeItem: 35 // inputsUnion1.OutputDatetimeItem is populated 36 case components.InputsUnion1TypeOutputWebSearchServerToolItem: 37 // inputsUnion1.OutputWebSearchServerToolItem is populated 38 case components.InputsUnion1TypeOutputCodeInterpreterServerToolItem: 39 // inputsUnion1.OutputCodeInterpreterServerToolItem is populated 40 case components.InputsUnion1TypeOutputFileSearchServerToolItem: 41 // inputsUnion1.OutputFileSearchServerToolItem is populated 42 case components.InputsUnion1TypeOutputImageGenerationServerToolItem: 43 // inputsUnion1.OutputImageGenerationServerToolItem is populated 44 case components.InputsUnion1TypeOutputBrowserUseServerToolItem: 45 // inputsUnion1.OutputBrowserUseServerToolItem is populated 46 case components.InputsUnion1TypeOutputBashServerToolItem: 47 // inputsUnion1.OutputBashServerToolItem is populated 48 case components.InputsUnion1TypeOutputTextEditorServerToolItem: 49 // inputsUnion1.OutputTextEditorServerToolItem is populated 50 case components.InputsUnion1TypeOutputApplyPatchServerToolItem: 51 // inputsUnion1.OutputApplyPatchServerToolItem is populated 52 case components.InputsUnion1TypeOutputWebFetchServerToolItem: 53 // inputsUnion1.OutputWebFetchServerToolItem is populated 54 case components.InputsUnion1TypeOutputToolSearchServerToolItem: 55 // inputsUnion1.OutputToolSearchServerToolItem is populated 56 case components.InputsUnion1TypeOutputMemoryServerToolItem: 57 // inputsUnion1.OutputMemoryServerToolItem is populated 58 case components.InputsUnion1TypeOutputMcpServerToolItem: 59 // inputsUnion1.OutputMcpServerToolItem is populated 60 case components.InputsUnion1TypeOutputSearchModelsServerToolItem: 61 // inputsUnion1.OutputSearchModelsServerToolItem is populated 62 case components.InputsUnion1TypeOutputAdvisorServerToolItem: 63 // inputsUnion1.OutputAdvisorServerToolItem is populated 64 case components.InputsUnion1TypeLocalShellCallItem: 65 // inputsUnion1.LocalShellCallItem is populated 66 case components.InputsUnion1TypeLocalShellCallOutputItem: 67 // inputsUnion1.LocalShellCallOutputItem is populated 68 case components.InputsUnion1TypeShellCallItem: 69 // inputsUnion1.ShellCallItem is populated 70 case components.InputsUnion1TypeShellCallOutputItem: 71 // inputsUnion1.ShellCallOutputItem is populated 72 case components.InputsUnion1TypeMcpListToolsItem: 73 // inputsUnion1.McpListToolsItem is populated 74 case components.InputsUnion1TypeMcpApprovalRequestItem: 75 // inputsUnion1.McpApprovalRequestItem is populated 76 case components.InputsUnion1TypeMcpApprovalResponseItem: 77 // inputsUnion1.McpApprovalResponseItem is populated 78 case components.InputsUnion1TypeMcpCallItem: 79 // inputsUnion1.McpCallItem is populated 80 case components.InputsUnion1TypeCustomToolCallItem: 81 // inputsUnion1.CustomToolCallItem is populated 82 case components.InputsUnion1TypeCustomToolCallOutputItem: 83 // inputsUnion1.CustomToolCallOutputItem is populated 84 case components.InputsUnion1TypeCompactionItem: 85 // inputsUnion1.CompactionItem is populated 86 case components.InputsUnion1TypeItemReferenceItem: 87 // inputsUnion1.ItemReferenceItem is populated 88 }