Table of Contents

Class DecisionQuestion

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

A decision question, discriminated by type (see DecisionQuestionTypes). Unknown types are read as UnknownDecisionQuestion.

[JsonConverter(typeof(DecisionQuestionConverter))]
public abstract class DecisionQuestion
Inheritance
DecisionQuestion
Derived
Inherited Members
Extension Methods

Constructors

DecisionQuestion(string)

Initializes a new question with the given discriminator.

protected DecisionQuestion(string type)

Parameters

type string

The type discriminator.

Properties

ExtensionData

Fields this SDK does not model yet.

[JsonExtensionData]
public Dictionary<string, JsonElement>? ExtensionData { get; set; }

Property Value

Dictionary<string, JsonElement>

Instructions

Required. Question-specific instructions: a string, a text content block or a list of text content blocks.

[JsonPropertyName("instructions")]
public InteractionInput? Instructions { get; set; }

Property Value

InteractionInput

Type

The question type (see DecisionQuestionTypes).

[JsonPropertyName("type")]
public string Type { get; }

Property Value

string