AgentOptimizationJobLatency Class

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

Implements

public final class AgentOptimizationJobLatency
implements JsonSerializable<AgentOptimizationJobLatency>

Average latency for one optimization stage and model.

Method Summary

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

Reads an instance of AgentOptimizationJobLatency from the JsonReader.

Duration getAverageLatency()

Get the averageLatency property: Average per-call latency, rounded to milliseconds.

long getCallCount()

Get the callCount property: Total number of calls contributing to this entry.

String getModel()

Get the model property: Model name or deployment name measured by this entry.

AgentOptimizationStage getStage()

Get the stage property: Optimization stage measured by this entry.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static AgentOptimizationJobLatency fromJson(JsonReader jsonReader)

Reads an instance of AgentOptimizationJobLatency from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getAverageLatency

public Duration getAverageLatency()

Get the averageLatency property: Average per-call latency, rounded to milliseconds.

Returns:

the averageLatency value.

getCallCount

public long getCallCount()

Get the callCount property: Total number of calls contributing to this entry.

Returns:

the callCount value.

getModel

public String getModel()

Get the model property: Model name or deployment name measured by this entry.

Returns:

the model value.

getStage

public AgentOptimizationStage getStage()

Get the stage property: Optimization stage measured by this entry.

Returns:

the stage value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to