Supported Types
DecisionsChoiceQuestion
DecisionsNoulQuestion
DecisionsScoreQuestion
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.
questions := components.CreateQuestionsChoice(components.DecisionsChoiceQuestion{/* values here */})
questions := components.CreateQuestionsNoul(components.DecisionsNoulQuestion{/* values here */})
questions := components.CreateQuestionsScore(components.DecisionsScoreQuestion{/* values here */})
Type field to determine which variant is active, then access the corresponding field:
switch questions.Type {
case components.QuestionsTypeChoice:
// questions.DecisionsChoiceQuestion is populated
case components.QuestionsTypeNoul:
// questions.DecisionsNoulQuestion is populated
case components.QuestionsTypeScore:
// questions.DecisionsScoreQuestion is populated
}