ModelRouterAttemptError Class

  • java.lang.Object
    • com.azure.ai.agents.models.ModelRouterAttemptError

Implements

public final class ModelRouterAttemptError
implements JsonSerializable<ModelRouterAttemptError>

Error details returned by a model routing attempt.

Method Summary

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

Reads an instance of ModelRouterAttemptError from the JsonReader.

String getCode()

Get the code property: A service-defined error code.

String getMessage()

Get the message property: A human-readable description of the error.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static ModelRouterAttemptError fromJson(JsonReader jsonReader)

Reads an instance of ModelRouterAttemptError from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ModelRouterAttemptError 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.

getCode

public String getCode()

Get the code property: A service-defined error code.

Returns:

the code value.

getMessage

public String getMessage()

Get the message property: A human-readable description of the error.

Returns:

the message value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to