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

Supported Types

OutputFunctionCallItemStatusCompleted

outputFunctionCallItemStatusUnion := components.CreateOutputFunctionCallItemStatusUnionOutputFunctionCallItemStatusCompleted(components.OutputFunctionCallItemStatusCompleted{/* values here */})

OutputFunctionCallItemStatusIncomplete

outputFunctionCallItemStatusUnion := components.CreateOutputFunctionCallItemStatusUnionOutputFunctionCallItemStatusIncomplete(components.OutputFunctionCallItemStatusIncomplete{/* values here */})

OutputFunctionCallItemStatusInProgress

outputFunctionCallItemStatusUnion := components.CreateOutputFunctionCallItemStatusUnionOutputFunctionCallItemStatusInProgress(components.OutputFunctionCallItemStatusInProgress{/* values here */})

Union Discrimination

Use the Type field to determine which variant is active, then access the corresponding field:
switch outputFunctionCallItemStatusUnion.Type {
	case components.OutputFunctionCallItemStatusUnionTypeOutputFunctionCallItemStatusCompleted:
		// outputFunctionCallItemStatusUnion.OutputFunctionCallItemStatusCompleted is populated
	case components.OutputFunctionCallItemStatusUnionTypeOutputFunctionCallItemStatusIncomplete:
		// outputFunctionCallItemStatusUnion.OutputFunctionCallItemStatusIncomplete is populated
	case components.OutputFunctionCallItemStatusUnionTypeOutputFunctionCallItemStatusInProgress:
		// outputFunctionCallItemStatusUnion.OutputFunctionCallItemStatusInProgress is populated
}