Class BetaResponseInputTextContent.Builder
-
- All Implemented Interfaces:
public final class BetaResponseInputTextContent.BuilderA builder for BetaResponseInputTextContent.
-
-
Method Summary
-
-
Method Detail
-
text
final BetaResponseInputTextContent.Builder text(String text)
The text input to the model.
-
text
final BetaResponseInputTextContent.Builder text(JsonField<String> text)
Sets Builder.text to an arbitrary JSON value.
You should usually call Builder.text with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaResponseInputTextContent.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("input_text")This method is primarily for setting the field to an undocumented or not yet supported value.
-
promptCacheBreakpoint
final BetaResponseInputTextContent.Builder promptCacheBreakpoint(BetaResponseInputTextContent.PromptCacheBreakpoint promptCacheBreakpoint)
Marks 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.
-
promptCacheBreakpoint
final BetaResponseInputTextContent.Builder promptCacheBreakpoint(Optional<BetaResponseInputTextContent.PromptCacheBreakpoint> promptCacheBreakpoint)
Alias for calling Builder.promptCacheBreakpoint with
promptCacheBreakpoint.orElse(null).
-
promptCacheBreakpoint
final BetaResponseInputTextContent.Builder promptCacheBreakpoint(JsonField<BetaResponseInputTextContent.PromptCacheBreakpoint> promptCacheBreakpoint)
Sets Builder.promptCacheBreakpoint to an arbitrary JSON value.
You should usually call Builder.promptCacheBreakpoint with a well-typed PromptCacheBreakpoint value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaResponseInputTextContent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaResponseInputTextContent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaResponseInputTextContent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaResponseInputTextContent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaResponseInputTextContent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaResponseInputTextContent build()
Returns an immutable instance of BetaResponseInputTextContent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.text()
-
-
-
-