ModelInfo Class

  • java.lang.Object
    • com.azure.ai.inference.models.ModelInfo

Implements

public final class ModelInfo
implements JsonSerializable<ModelInfo>

Represents some basic information about the AI model.

Method Summary

Modifier and Type Method and Description
static ModelInfo fromJson(JsonReader jsonReader)

Reads an instance of ModelInfo from the JsonReader.

String getModelName()

Get the modelName property: The name of the AI model.

String getModelProviderName()

Get the modelProviderName property: The model provider name.

ModelType getModelType()

Get the modelType property: The type of the AI model.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static ModelInfo fromJson(JsonReader jsonReader)

Reads an instance of ModelInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ModelInfo if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getModelName

public String getModelName()

Get the modelName property: The name of the AI model. For example: `Phi21`.

Returns:

the modelName value.

getModelProviderName

public String getModelProviderName()

Get the modelProviderName property: The model provider name. For example: `Microsoft Research`.

Returns:

the modelProviderName value.

getModelType

public ModelType getModelType()

Get the modelType property: The type of the AI model. A Unique identifier for the profile.

Returns:

the modelType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to