Supported Types
Union Discrimination
Use theType field to determine which variant is active, then access the corresponding field:
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
predictionContent := components.CreatePredictionContentStr(string{/* values here */})
predictionContent := components.CreatePredictionContentArrayOfPredictionContentText([]components.PredictionContentText{/* values here */})
Type field to determine which variant is active, then access the corresponding field:
switch predictionContent.Type {
case components.PredictionContentTypeStr:
// predictionContent.Str is populated
case components.PredictionContentTypeArrayOfPredictionContentText:
// predictionContent.ArrayOfPredictionContentText is populated
}