IntelligenceX
Class

ConfigLayer

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

Represents a single configuration layer.

Inheritance

  • Object
  • ConfigLayer

Constructors

public ConfigLayer(ConfigLayerSourceInfo source, String version, JsonValue config, String disabledReason, JsonObject raw, JsonObject additional) #

Initializes a new configuration layer.

Parameters

source IntelligenceX.OpenAI.AppServer.Models.ConfigLayerSourceInfo
version System.String
config IntelligenceX.Json.JsonValue
disabledReason System.String
raw IntelligenceX.Json.JsonObject
additional IntelligenceX.Json.JsonObject

Methods

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

Parses a configuration layer from JSON.

Parameters

obj IntelligenceX.Json.JsonObject
Source JSON object.

Returns

The parsed layer.

Properties

public ConfigLayerSourceInfo Source { get; } #

Gets the source information.

public String Version { get; } #

Gets the configuration version.

public JsonValue Config { get; } #

Gets the configuration payload.

public String DisabledReason { get; } #

Gets the disabled reason when the layer is not active.

public JsonObject Raw { get; } #

Gets the raw JSON object.

public JsonObject Additional { get; } #

Gets unrecognized fields from the payload.