AgentOptimizationJobResult Class
- java.
lang. Object - com.
azure. ai. agents. models. AgentOptimizationJobResult
- com.
Implements
public final class AgentOptimizationJobResult
implements JsonSerializable<AgentOptimizationJobResult>
Partial or terminal result produced by an agent optimization job.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Agent |
fromJson(JsonReader jsonReader)
Reads an instance of Agent |
|
Agent |
getCandidateSummary()
Get the candidate |
|
List<Agent |
getLatencyMetrics()
Get the latency |
|
Agent |
getTerminationReason()
Get the termination |
|
List<Agent |
getTokenUsage()
Get the token |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static AgentOptimizationJobResult fromJson(JsonReader jsonReader)
Reads an instance of AgentOptimizationJobResult from the JsonReader.
Parameters:
Returns:
Throws:
getCandidateSummary
public AgentOptimizationResultCandidateSummary getCandidateSummary()
Get the candidateSummary property: Summary of candidates produced by the job. Omitted until candidate processing begins.
Returns:
getLatencyMetrics
public List<AgentOptimizationJobLatency> getLatencyMetrics()
Get the latencyMetrics property: Aggregate latency per stage and model. Always present; empty when no server-measured latency is available.
Returns:
getTerminationReason
public AgentOptimizationTerminationReason getTerminationReason()
Get the terminationReason property: Reason the candidate search terminated. Omitted for jobs that do not comparatively evaluate candidates and until the job reaches a terminal state.
Returns:
getTokenUsage
public List<AgentOptimizationJobTokenUsage> getTokenUsage()
Get the tokenUsage property: Aggregate token usage per stage and model. Always present; empty array when no calls were measured.
Returns: