Skip to content

ChoiceQuestion

Namespace: TypeSafe.AI.Sdk

public sealed class ChoiceQuestion : Question

A question that selects between named alternatives.

Inheritance: object → Question

View source

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

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

Create a Choice question.

Parameters

Name Type Description
instructions object
criteria IReadOnlyDictionary<string, object>
includeInstructions bool

View source

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

Labels mapped to descriptions, or null for undescribed labels.

Value: IReadOnlyDictionary<string, object>

View source

public override string Type { get; }

Question type: noul, choice, score, or box.

Value: string

View source

MIT · Copyright (c) Dario Kondratiuk. · not affiliated with TypeSafe beyond being a client of the public API