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
typestringThe
typediscriminator.
Properties
ExtensionData
Fields this SDK does not model yet.
[JsonExtensionData]
public Dictionary<string, JsonElement>? ExtensionData { get; set; }
Property Value
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
Type
The question type (see DecisionQuestionTypes).
[JsonPropertyName("type")]
public string Type { get; }