Class ChatCompletionContentPartImage.PromptCacheBreakpoint
-
- All Implemented Interfaces:
public final class ChatCompletionContentPartImage.PromptCacheBreakpointMarks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's
prompt_cache_options.ttl; the boundary is not rounded to a token block.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChatCompletionContentPartImage.PromptCacheBreakpoint.BuilderA builder for PromptCacheBreakpoint.
-
Method Summary
Modifier and Type Method Description final JsonValue_mode()The breakpoint mode. final Map<String, JsonValue>_additionalProperties()final ChatCompletionContentPartImage.PromptCacheBreakpoint.BuildertoBuilder()final ChatCompletionContentPartImage.PromptCacheBreakpointvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ChatCompletionContentPartImage.PromptCacheBreakpoint.Builderbuilder()Returns a mutable builder for constructing an instance of PromptCacheBreakpoint. -
-
Method Detail
-
_mode
final JsonValue _mode()
The breakpoint mode. Always
explicit.Expected to always return the following:
JsonValue.from("explicit")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ChatCompletionContentPartImage.PromptCacheBreakpoint.Builder toBuilder()
-
validate
final ChatCompletionContentPartImage.PromptCacheBreakpoint 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 ChatCompletionContentPartImage.PromptCacheBreakpoint.Builder builder()
Returns a mutable builder for constructing an instance of PromptCacheBreakpoint.
-
-
-
-