AgentOptimizationEstimateResult Class

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

Implements

public final class AgentOptimizationEstimateResult
implements JsonSerializable<AgentOptimizationEstimateResult>

Result returned when estimating an agent-optimization job.

Method Summary

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

Reads an instance of AgentOptimizationEstimateResult from the JsonReader.

AgentOptimizationStageEstimate getCallCounts()

Get the callCounts property: Estimated model-call counts grouped by optimization stage.

AgentOptimizationCostEstimate getCost()

Get the cost property: Estimated monetary cost.

OffsetDateTime getPricesAsOf()

Get the pricesAsOf property: Timestamp of the pricing snapshot used for cost estimation, represented in Unix time.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static AgentOptimizationEstimateResult fromJson(JsonReader jsonReader)

Reads an instance of AgentOptimizationEstimateResult from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getCallCounts

public AgentOptimizationStageEstimate getCallCounts()

Get the callCounts property: Estimated model-call counts grouped by optimization stage. Typical values are calibrated expectations and may be fractional.

Returns:

the callCounts value.

getCost

public AgentOptimizationCostEstimate getCost()

Get the cost property: Estimated monetary cost. Omitted when no contributing model has pricing data.

Returns:

the cost value.

getPricesAsOf

public OffsetDateTime getPricesAsOf()

Get the pricesAsOf property: Timestamp of the pricing snapshot used for cost estimation, represented in Unix time. Omitted when no valid pricing snapshot is available.

Returns:

the pricesAsOf value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to