AgentOptimizationCandidatePromotionInfo Class

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

Implements

public final class AgentOptimizationCandidatePromotionInfo
implements JsonSerializable<AgentOptimizationCandidatePromotionInfo>

Promotion metadata recorded for a candidate.

Method Summary

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

Reads an instance of AgentOptimizationCandidatePromotionInfo from the JsonReader.

AgentReference getPromotedAgent()

Get the promotedAgent property: Agent reference associated with the completed promotion.

OffsetDateTime getPromotedAt()

Get the promotedAt property: Timestamp when promotion occurred, represented in Unix time.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static AgentOptimizationCandidatePromotionInfo fromJson(JsonReader jsonReader)

Reads an instance of AgentOptimizationCandidatePromotionInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getPromotedAgent

public AgentReference getPromotedAgent()

Get the promotedAgent property: Agent reference associated with the completed promotion.

Returns:

the promotedAgent value.

getPromotedAt

public OffsetDateTime getPromotedAt()

Get the promotedAt property: Timestamp when promotion occurred, represented in Unix time.

Returns:

the promotedAt value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to