Table of Contents

Class DecisionAnswer

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

The answer to a decision question, discriminated by type. Unknown types are read as UnknownDecisionAnswer.

[JsonConverter(typeof(DecisionAnswerConverter))]
public abstract class DecisionAnswer
Inheritance
DecisionAnswer
Derived
Inherited Members
Extension Methods

Constructors

DecisionAnswer(string)

Initializes a new answer with the given discriminator.

protected DecisionAnswer(string type)

Parameters

type string

The type discriminator.

Properties

ExtensionData

Fields returned by the API that this SDK does not model yet.

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

Property Value

Dictionary<string, JsonElement>

Type

The answer type (see DecisionQuestionTypes).

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

Property Value

string