Class BetaManagedAgentsBudgetLimit
-
- All Implemented Interfaces:
public final class BetaManagedAgentsBudgetLimitA hard spend ceiling. The session stops issuing new model requests once the tracked list cost reaches
max_list_cost.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsBudgetLimit.BuilderA builder for BetaManagedAgentsBudgetLimit.
-
Method Summary
Modifier and Type Method Description final BetaMonetaryAmountmaxListCost()Maximum list cost the session may accrue. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("limit")final JsonField<BetaMonetaryAmount>_maxListCost()Returns the raw JSON value of maxListCost. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsBudgetLimit.BuildertoBuilder()final BetaManagedAgentsBudgetLimitvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsBudgetLimit.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsBudgetLimit. final static BetaManagedAgentsBudgetLimitof(BetaMonetaryAmount maxListCost)Returns an immutable instance of BetaManagedAgentsBudgetLimit with the required maxListCost set to the given value. -
-
Method Detail
-
maxListCost
final BetaMonetaryAmount maxListCost()
Maximum list cost the session may accrue. List price is used regardless of any negotiated discount, so the cap fires at or before the actual charge.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("limit")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_maxListCost
final JsonField<BetaMonetaryAmount> _maxListCost()
Returns the raw JSON value of maxListCost.
Unlike maxListCost, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsBudgetLimit.Builder toBuilder()
-
validate
final BetaManagedAgentsBudgetLimit validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaManagedAgentsBudgetLimit.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsBudgetLimit.
The following fields are required:
.maxListCost()
-
of
final static BetaManagedAgentsBudgetLimit of(BetaMonetaryAmount maxListCost)
Returns an immutable instance of BetaManagedAgentsBudgetLimit with the required maxListCost set to the given value.
-
-
-
-