Class BetaResponseItem.AgentMessage.Content.ComputerScreenshot.Builder
-
- All Implemented Interfaces:
public final class BetaResponseItem.AgentMessage.Content.ComputerScreenshot.BuilderA builder for ComputerScreenshot.
-
-
Method Summary
-
-
Method Detail
-
detail
final BetaResponseItem.AgentMessage.Content.ComputerScreenshot.Builder detail(BetaResponseItem.AgentMessage.Content.ComputerScreenshot.Detail detail)
The detail level of the screenshot image to be sent to the model. One of
high,low,auto, ororiginal. Defaults toauto.
-
detail
final BetaResponseItem.AgentMessage.Content.ComputerScreenshot.Builder detail(JsonField<BetaResponseItem.AgentMessage.Content.ComputerScreenshot.Detail> detail)
Sets Builder.detail to an arbitrary JSON value.
You should usually call Builder.detail with a well-typed Detail value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
fileId
final BetaResponseItem.AgentMessage.Content.ComputerScreenshot.Builder fileId(String fileId)
The identifier of an uploaded file that contains the screenshot.
-
fileId
final BetaResponseItem.AgentMessage.Content.ComputerScreenshot.Builder fileId(Optional<String> fileId)
Alias for calling Builder.fileId with
fileId.orElse(null).
-
fileId
final BetaResponseItem.AgentMessage.Content.ComputerScreenshot.Builder fileId(JsonField<String> fileId)
Sets Builder.fileId to an arbitrary JSON value.
You should usually call Builder.fileId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
imageUrl
final BetaResponseItem.AgentMessage.Content.ComputerScreenshot.Builder imageUrl(String imageUrl)
The URL of the screenshot image.
-
imageUrl
final BetaResponseItem.AgentMessage.Content.ComputerScreenshot.Builder imageUrl(Optional<String> imageUrl)
Alias for calling Builder.imageUrl with
imageUrl.orElse(null).
-
imageUrl
final BetaResponseItem.AgentMessage.Content.ComputerScreenshot.Builder imageUrl(JsonField<String> imageUrl)
Sets Builder.imageUrl to an arbitrary JSON value.
You should usually call Builder.imageUrl 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 BetaResponseItem.AgentMessage.Content.ComputerScreenshot.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("computer_screenshot")This method is primarily for setting the field to an undocumented or not yet supported value.
-
promptCacheBreakpoint
final BetaResponseItem.AgentMessage.Content.ComputerScreenshot.Builder promptCacheBreakpoint(BetaResponseItem.AgentMessage.Content.ComputerScreenshot.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 BetaResponseItem.AgentMessage.Content.ComputerScreenshot.Builder promptCacheBreakpoint(JsonField<BetaResponseItem.AgentMessage.Content.ComputerScreenshot.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 BetaResponseItem.AgentMessage.Content.ComputerScreenshot.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaResponseItem.AgentMessage.Content.ComputerScreenshot.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaResponseItem.AgentMessage.Content.ComputerScreenshot.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaResponseItem.AgentMessage.Content.ComputerScreenshot.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaResponseItem.AgentMessage.Content.ComputerScreenshot.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaResponseItem.AgentMessage.Content.ComputerScreenshot build()
Returns an immutable instance of ComputerScreenshot.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.detail() .fileId() .imageUrl()
-
-
-
-