AgentOptimizationCostEstimate Class
- java.
lang. Object - com.
azure. ai. agents. models. AgentOptimizationCostEstimate
- com.
Implements
public final class AgentOptimizationCostEstimate
implements JsonSerializable<AgentOptimizationCostEstimate>
Estimated monetary cost. Present only when at least one contributing model has pricing data.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Agent |
fromJson(JsonReader jsonReader)
Reads an instance of Agent |
|
Agent |
getByStage()
Get the by |
| String |
getCurrency()
Get the currency property: ISO 4217 currency code for all monetary values in this estimate. |
|
Agent |
getTotal()
Get the total property: Total estimated cost across all priced stages. |
|
List<Agent |
getUnpricedStages()
Get the unpriced |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static AgentOptimizationCostEstimate fromJson(JsonReader jsonReader)
Reads an instance of AgentOptimizationCostEstimate from the JsonReader.
Parameters:
Returns:
Throws:
getByStage
public AgentOptimizationStageEstimate getByStage()
Get the byStage property: Estimated cost grouped by optimization stage.
Returns:
getCurrency
public String getCurrency()
Get the currency property: ISO 4217 currency code for all monetary values in this estimate.
Returns:
getTotal
public AgentOptimizationEstimateBand getTotal()
Get the total property: Total estimated cost across all priced stages.
Returns:
getUnpricedStages
public List<AgentOptimizationStage> getUnpricedStages()
Get the unpricedStages property: Stages excluded from the total because pricing was unavailable.
Returns: