Class: OpenAI::Models::Beta::BetaResponseItem::AgentMessage::Content::ComputerScreenshot
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::BetaResponseItem::AgentMessage::Content::ComputerScreenshot
- Defined in:
- lib/openai/models/beta/beta_response_item.rb,
sig/openai/models/beta/beta_response_item.rbs
Defined Under Namespace
Modules: Detail Classes: PromptCacheBreakpoint
Instance Attribute Summary collapse
-
#detail ⇒ OpenAI::Models::Beta::BetaResponseItem::AgentMessage::Content::ComputerScreenshot::detail
The detail level of the screenshot image to be sent to the model.
-
#file_id ⇒ String?
The identifier of an uploaded file that contains the screenshot.
-
#image_url ⇒ String?
The URL of the screenshot image.
-
#prompt_cache_breakpoint ⇒ OpenAI::Beta::BetaResponseItem::AgentMessage::Content::ComputerScreenshot::PromptCacheBreakpoint?
Marks the exact end of a reusable prompt prefix.
-
#type ⇒ :computer_screenshot
Specifies the event type.
Attributes inherited from Internal::Type::BaseModel
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(detail:, file_id:, image_url:, prompt_cache_breakpoint: nil, type: :computer_screenshot) ⇒ ComputerScreenshot
constructor
A new instance of ComputerScreenshot.
- #to_hash ⇒ { detail: OpenAI::Models::Beta::BetaResponseItem::AgentMessage::Content::ComputerScreenshot::detail, file_id: String?, image_url: String?, ?type: :computer_screenshot, ?prompt_cache_breakpoint: OpenAI::Beta::BetaResponseItem::AgentMessage::Content::ComputerScreenshot::PromptCacheBreakpoint }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, fields, hash, #hash, inherited, #inspect, inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(detail:, file_id:, image_url:, prompt_cache_breakpoint: nil, type: :computer_screenshot) ⇒ ComputerScreenshot
Returns a new instance of ComputerScreenshot.
|
|
# File 'lib/openai/models/beta/beta_response_item.rb', line 311
|
Instance Attribute Details
#detail ⇒ OpenAI::Models::Beta::BetaResponseItem::AgentMessage::Content::ComputerScreenshot::detail
The detail level of the screenshot image to be sent to the model. One of high,
low, auto, or original. Defaults to auto.
276 277 278 279 |
# File 'lib/openai/models/beta/beta_response_item.rb', line 276 required( :detail, enum: -> { OpenAI::Beta::BetaResponseItem::AgentMessage::Content::ComputerScreenshot::Detail } ) |
#file_id ⇒ String?
The identifier of an uploaded file that contains the screenshot.
285 |
# File 'lib/openai/models/beta/beta_response_item.rb', line 285 required :file_id, String, nil?: true |
#image_url ⇒ String?
The URL of the screenshot image.
291 |
# File 'lib/openai/models/beta/beta_response_item.rb', line 291 required :image_url, String, nil?: true |
#prompt_cache_breakpoint ⇒ OpenAI::Beta::BetaResponseItem::AgentMessage::Content::ComputerScreenshot::PromptCacheBreakpoint?
Marks the exact end of a reusable prompt prefix. When ttl is omitted, the
breakpoint inherits the request's prompt_cache_options.ttl; the boundary is
not rounded to a token block.
306 307 308 309 |
# File 'lib/openai/models/beta/beta_response_item.rb', line 306 optional( :prompt_cache_breakpoint, -> { OpenAI::Beta::BetaResponseItem::AgentMessage::Content::ComputerScreenshot::PromptCacheBreakpoint } ) |
#type ⇒ :computer_screenshot
Specifies the event type. For a computer screenshot, this property is always set
to computer_screenshot.
298 |
# File 'lib/openai/models/beta/beta_response_item.rb', line 298 required :type, const: :computer_screenshot |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/openai/models/beta/beta_response_item.rb', line 345
|
Instance Method Details
#to_hash ⇒ { detail: OpenAI::Models::Beta::BetaResponseItem::AgentMessage::Content::ComputerScreenshot::detail, file_id: String?, image_url: String?, ?type: :computer_screenshot, ?prompt_cache_breakpoint: OpenAI::Beta::BetaResponseItem::AgentMessage::Content::ComputerScreenshot::PromptCacheBreakpoint }
229 230 231 232 233 234 235 |
# File 'sig/openai/models/beta/beta_response_item.rbs', line 229
def to_hash: -> {
detail: OpenAI::Models::Beta::BetaResponseItem::AgentMessage::Content::ComputerScreenshot::detail,
file_id: String?,
image_url: String?,
?type: :computer_screenshot,
?prompt_cache_breakpoint: OpenAI::Beta::BetaResponseItem::AgentMessage::Content::ComputerScreenshot::PromptCacheBreakpoint
}
|