Class BetaResponse.PromptCacheOptions
-
- All Implemented Interfaces:
public final class BetaResponse.PromptCacheOptionsThe prompt-caching options that were applied to the response. Supported for
gpt-5.6and later models.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponse.PromptCacheOptions.BuilderA builder for PromptCacheOptions.
public final classBetaResponse.PromptCacheOptions.ModeWhether implicit prompt-cache breakpoints were enabled.
public final classBetaResponse.PromptCacheOptions.TtlThe minimum lifetime applied to each cache breakpoint.
-
Method Summary
Modifier and Type Method Description final BetaResponse.PromptCacheOptions.Modemode()Whether implicit prompt-cache breakpoints were enabled. final BetaResponse.PromptCacheOptions.Ttlttl()The minimum lifetime applied to each cache breakpoint. final JsonField<BetaResponse.PromptCacheOptions.Mode>_mode()Returns the raw JSON value of mode. final JsonField<BetaResponse.PromptCacheOptions.Ttl>_ttl()Returns the raw JSON value of ttl. final Map<String, JsonValue>_additionalProperties()final BetaResponse.PromptCacheOptions.BuildertoBuilder()final BetaResponse.PromptCacheOptionsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaResponse.PromptCacheOptions.Builderbuilder()Returns a mutable builder for constructing an instance of PromptCacheOptions. -
-
Method Detail
-
mode
final BetaResponse.PromptCacheOptions.Mode mode()
Whether implicit prompt-cache breakpoints were enabled.
-
ttl
final BetaResponse.PromptCacheOptions.Ttl ttl()
The minimum lifetime applied to each cache breakpoint.
-
_mode
final JsonField<BetaResponse.PromptCacheOptions.Mode> _mode()
Returns the raw JSON value of mode.
Unlike mode, this method doesn't throw if the JSON field has an unexpected type.
-
_ttl
final JsonField<BetaResponse.PromptCacheOptions.Ttl> _ttl()
Returns the raw JSON value of ttl.
Unlike ttl, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaResponse.PromptCacheOptions.Builder toBuilder()
-
validate
final BetaResponse.PromptCacheOptions 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 BetaResponse.PromptCacheOptions.Builder builder()
Returns a mutable builder for constructing an instance of PromptCacheOptions.
The following fields are required:
.mode() .ttl()
-
-
-
-