IntelligenceX

API Reference

Class

ModelInfo

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

Represents a single model entry.

Inheritance

  • Object
  • ModelInfo

Constructors

public ModelInfo(String id, String model, String displayName, String description, IReadOnlyList<ReasoningEffortOption> supportedReasoningEfforts, String defaultReasoningEffort, Boolean isDefault, JsonObject raw, JsonObject additional, String ownedBy = null, String publisher = null, String architecture = null, String quantization = null, String compatibilityType = null, String runtimeState = null, String modelType = null, Nullable<Int64> maxContextLength = null, Nullable<Int64> loadedContextLength = null, IReadOnlyList<String> capabilities = null) #

Initializes a new model info entry.

Parameters

id System.String requiredposition: 0
model System.String requiredposition: 1
displayName System.String requiredposition: 2
description System.String requiredposition: 3
supportedReasoningEfforts System.Collections.Generic.IReadOnlyList{IntelligenceX.OpenAI.AppServer.Models.ReasoningEffortOption} requiredposition: 4
defaultReasoningEffort System.String requiredposition: 5
isDefault System.Boolean requiredposition: 6
raw IntelligenceX.Json.JsonObject requiredposition: 7
additional IntelligenceX.Json.JsonObject requiredposition: 8
ownedBy System.String = null optionalposition: 9
publisher System.String = null optionalposition: 10
architecture System.String = null optionalposition: 11
quantization System.String = null optionalposition: 12
compatibilityType System.String = null optionalposition: 13
runtimeState System.String = null optionalposition: 14
modelType System.String = null optionalposition: 15
maxContextLength System.Nullable{System.Int64} = null optionalposition: 16
loadedContextLength System.Nullable{System.Int64} = null optionalposition: 17
capabilities System.Collections.Generic.IReadOnlyList{System.String} = null optionalposition: 18

Methods

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

Parses a model entry from JSON.

Parameters

obj IntelligenceX.Json.JsonObject requiredposition: 0
Source JSON object.

Returns

The parsed model entry.

Properties

public String Model { get; } #

Gets the model name.

public String DisplayName { get; } #

Gets the display name.

public String Description { get; } #

Gets the model description.

public IReadOnlyList<ReasoningEffortOption> SupportedReasoningEfforts { get; } #

Gets the supported reasoning effort options.

public String DefaultReasoningEffort { get; } #

Gets the default reasoning effort value.

public Boolean IsDefault { get; } #

Gets a value indicating whether this is the default model.

public String OwnedBy { get; } #

Gets the provider owner identifier when exposed (for example owned_by).

public String Publisher { get; } #

Gets the model publisher when exposed by the runtime.

public String Architecture { get; } #

Gets the model architecture identifier when known.

public String Quantization { get; } #

Gets the quantization identifier when known.

public String CompatibilityType { get; } #

Gets the compatibility format (for example gguf) when known.

public String RuntimeState { get; } #

Gets the runtime load state (for example loaded/not-loaded) when known.

public String ModelType { get; } #

Gets the model type/category when known.

public Nullable<Int64> MaxContextLength { get; } #

Gets the maximum context length when exposed by the runtime.

public Nullable<Int64> LoadedContextLength { get; } #

Gets the currently loaded context length when exposed by the runtime.

public IReadOnlyList<String> Capabilities { get; } #

Gets capability tags exposed by the runtime.

public JsonObject Raw { get; } #

Gets the raw JSON object.

public JsonObject Additional { get; } #

Gets unrecognized fields from the payload.