Supported Types
DecisionsChoiceAnswer
DecisionsNoulAnswer
DecisionsScoreAnswer
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.
answers := components.CreateAnswersChoice(components.DecisionsChoiceAnswer{/* values here */})
answers := components.CreateAnswersNoul(components.DecisionsNoulAnswer{/* values here */})
answers := components.CreateAnswersScore(components.DecisionsScoreAnswer{/* values here */})
Type field to determine which variant is active, then access the corresponding field:
switch answers.Type {
case components.AnswersTypeChoice:
// answers.DecisionsChoiceAnswer is populated
case components.AnswersTypeNoul:
// answers.DecisionsNoulAnswer is populated
case components.AnswersTypeScore:
// answers.DecisionsScoreAnswer is populated
default:
// Unknown type - use answers.GetUnknownRaw() for raw JSON
}