Class: OpenAI::Models::BetaResponseItem::Beta::BetaResponseItem::AgentMessage::Content::ComputerScreenshot

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
sig/openai/models/beta/beta_response_item.rbs

Defined Under Namespace

Modules: Detail Classes: PromptCacheBreakpoint

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

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_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initializeObject



163
# File 'sig/openai/models/beta/beta_response_item.rbs', line 163

def initialize: (

Instance Attribute Details

#detailOpenAI::Models::Beta::BetaResponseItem::AgentMessage::Content::ComputerScreenshot::detail

Returns the value of attribute detail.

Returns:

  • (OpenAI::Models::Beta::BetaResponseItem::AgentMessage::Content::ComputerScreenshot::detail)


149
150
151
# File 'sig/openai/models/beta/beta_response_item.rbs', line 149

def detail
  @detail
end

#file_idString?

Returns the value of attribute file_id.

Returns:

  • (String, nil)


151
152
153
# File 'sig/openai/models/beta/beta_response_item.rbs', line 151

def file_id
  @file_id
end

#image_urlString?

Returns the value of attribute image_url.

Returns:

  • (String, nil)


153
154
155
# File 'sig/openai/models/beta/beta_response_item.rbs', line 153

def image_url
  @image_url
end

#prompt_cache_breakpointOpenAI::Beta::BetaResponseItem::AgentMessage::Content::ComputerScreenshot::PromptCacheBreakpoint? (readonly)

Returns the value of attribute prompt_cache_breakpoint.

Returns:

  • (OpenAI::Beta::BetaResponseItem::AgentMessage::Content::ComputerScreenshot::PromptCacheBreakpoint, nil)


157
158
159
# File 'sig/openai/models/beta/beta_response_item.rbs', line 157

def prompt_cache_breakpoint
  @prompt_cache_breakpoint
end

#type:computer_screenshot

Returns the value of attribute type.

Returns:

  • (:computer_screenshot)


155
156
157
# File 'sig/openai/models/beta/beta_response_item.rbs', line 155

def type
  @type
end

Instance Method Details

#prompt_cache_breakpoint=Object (readonly)



159
# File 'sig/openai/models/beta/beta_response_item.rbs', line 159

def prompt_cache_breakpoint=: (

#to_hash{

Returns:

  • ({)


171
# File 'sig/openai/models/beta/beta_response_item.rbs', line 171

def to_hash: -> {