Table of Contents

Class ChoiceQuestion

Namespace
TypeSafe.AI.Sdk
Assembly
TypeSafe.AI.Sdk.dll

A question that selects between named alternatives.

public sealed class ChoiceQuestion : Question
Inheritance
ChoiceQuestion
Inherited Members

Constructors

ChoiceQuestion(object?, IReadOnlyDictionary<string, object?>, bool)

Create a Choice question.

public ChoiceQuestion(object? instructions, IReadOnlyDictionary<string, object?> criteria, bool includeInstructions = true)

Parameters

instructions object
criteria IReadOnlyDictionary<string, object>
includeInstructions bool

Properties

Criteria

Labels mapped to descriptions, or null for undescribed labels.

public IReadOnlyDictionary<string, object?> Criteria { get; }

Property Value

IReadOnlyDictionary<string, object>

Type

Question type: noul, choice, or score.

public override string Type { get; }

Property Value

string