IntelligenceX

API Reference

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} requiredposition: 0
answersById System.Collections.Generic.IReadOnlyDictionary{System.String,System.Collections.Generic.IReadOnlyList{System.String}} requiredposition: 1
raw IntelligenceX.Json.JsonObject requiredposition: 2
additional IntelligenceX.Json.JsonObject requiredposition: 3

Methods

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

Parses a user input response from JSON.

Parameters

obj IntelligenceX.Json.JsonObject requiredposition: 0
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.