AgentOptimizationEstimateBand Class

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

Implements

public final class AgentOptimizationEstimateBand
implements JsonSerializable<AgentOptimizationEstimateBand>

A low/typical/ceiling range for an estimated quantity. Cost values apply average per-call usage assumptions to each call-count scenario. Expected values may be fractional, including estimated model-call counts.

Method Summary

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

Reads an instance of AgentOptimizationEstimateBand from the JsonReader.

double getCeiling()

Get the ceiling property: Upper bound calculated from the maximum number of model calls.

double getLow()

Get the low property: Lower estimate based on model calls required for every run.

double getTypical()

Get the typical property: Expected estimate based on model calls consumed by a typical run.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static AgentOptimizationEstimateBand fromJson(JsonReader jsonReader)

Reads an instance of AgentOptimizationEstimateBand from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getCeiling

public double getCeiling()

Get the ceiling property: Upper bound calculated from the maximum number of model calls.

Returns:

the ceiling value.

getLow

public double getLow()

Get the low property: Lower estimate based on model calls required for every run.

Returns:

the low value.

getTypical

public double getTypical()

Get the typical property: Expected estimate based on model calls consumed by a typical run.

Returns:

the typical value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to