AgentOptimizationCandidateEvaluation Class

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

Implements

public final class AgentOptimizationCandidateEvaluation
implements JsonSerializable<AgentOptimizationCandidateEvaluation>

Comparative evaluation summary for a candidate.

Method Summary

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

Reads an instance of AgentOptimizationCandidateEvaluation from the JsonReader.

Duration getAverageLatency()

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

Double getAverageScore()

Get the averageScore property: Average composite score across evaluated tasks.

Double getAverageTokens()

Get the averageTokens property: Average total tokens consumed per task.

OffsetDateTime getCompletedAt()

Get the completedAt property: Timestamp when full candidate evaluation completed, represented in Unix time.

String getEvaluationId()

Get the evaluationId property: Foundry evaluation identifier used to score this candidate.

String getEvaluationRunId()

Get the evaluationRunId property: Foundry evaluation run identifier used to score this candidate.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static AgentOptimizationCandidateEvaluation fromJson(JsonReader jsonReader)

Reads an instance of AgentOptimizationCandidateEvaluation from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getAverageLatency

public Duration getAverageLatency()

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

Returns:

the averageLatency value.

getAverageScore

public Double getAverageScore()

Get the averageScore property: Average composite score across evaluated tasks. Omitted until scoring produces an aggregate score.

Returns:

the averageScore value.

getAverageTokens

public Double getAverageTokens()

Get the averageTokens property: Average total tokens consumed per task. Omitted when token usage was not measured.

Returns:

the averageTokens value.

getCompletedAt

public OffsetDateTime getCompletedAt()

Get the completedAt property: Timestamp when full candidate evaluation completed, represented in Unix time. Omitted when unavailable.

Returns:

the completedAt value.

getEvaluationId

public String getEvaluationId()

Get the evaluationId property: Foundry evaluation identifier used to score this candidate. Omitted when unavailable.

Returns:

the evaluationId value.

getEvaluationRunId

public String getEvaluationRunId()

Get the evaluationRunId property: Foundry evaluation run identifier used to score this candidate. Omitted when unavailable.

Returns:

the evaluationRunId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to