VersionIndicator Class

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

Implements

public class VersionIndicator
implements JsonSerializable<VersionIndicator>

Version indicator determining which agent version backs the session.

Constructor Summary

Constructor Description
VersionIndicator()

Creates an instance of VersionIndicator class.

Method Summary

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

Reads an instance of VersionIndicator from the JsonReader.

VersionIndicatorType getType()

Get the type property: The type of version indicator.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

VersionIndicator

public VersionIndicator()

Creates an instance of VersionIndicator class.

Method Details

fromJson

public static VersionIndicator fromJson(JsonReader jsonReader)

Reads an instance of VersionIndicator from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the VersionIndicator.

getType

public VersionIndicatorType getType()

Get the type property: The type of version indicator.

Returns:

the type value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to