IntelligenceX
Class

UserInputResponse

Namespace IntelligenceX.OpenAI.AppServer.Models
Assembly IntelligenceX
Modifiers sealed

Represents a response to a user input prompt.

Inheritance

  • Object
  • UserInputResponse

Constructors

public UserInputResponse(IReadOnlyList<String> answers, IReadOnlyDictionary<String, IReadOnlyList<String>> answersById, JsonObject raw, JsonObject additional) #

Initializes a new user input response.

Parameters

answers System.Collections.Generic.IReadOnlyList{System.String}
answersById System.Collections.Generic.IReadOnlyDictionary{System.String,System.Collections.Generic.IReadOnlyList{System.String}}
raw IntelligenceX.Json.JsonObject
additional IntelligenceX.Json.JsonObject

Methods

public static UserInputResponse FromJson(JsonObject obj) #
Returns: UserInputResponse

Parses a user input response from JSON.

Parameters

obj IntelligenceX.Json.JsonObject
Source JSON object.

Returns

The parsed response.

Properties

public IReadOnlyList<String> Answers { get; } #

Gets the answers as a flat list.

public IReadOnlyDictionary<String, IReadOnlyList<String>> AnswersById { get; } #

Gets answers grouped by id when provided.

public JsonObject Raw { get; } #

Gets the raw JSON object.

public JsonObject Additional { get; } #

Gets unrecognized fields from the payload.