Class: OpenAI::Models::Responses::ResponseComputerToolCallOutputScreenshot

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/responses/response_computer_tool_call_output_screenshot.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, 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, #dump, dump, #inspect, inspect, 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(file_id: nil, image_url: nil, type: :computer_screenshot) ⇒ Object

Some parameter documentations has been truncated, see OpenAI::Models::Responses::ResponseComputerToolCallOutputScreenshot for more details.

A computer screenshot image used with the computer use tool.

Parameters:

  • file_id (String) (defaults to: nil)

    The identifier of an uploaded file that contains the screenshot.

  • image_url (String) (defaults to: nil)

    The URL of the screenshot image.

  • type (Symbol, :computer_screenshot) (defaults to: :computer_screenshot)

    Specifies the event type. For a computer screenshot, this property is



# File 'lib/openai/models/responses/response_computer_tool_call_output_screenshot.rb', line 26

Instance Attribute Details

#file_idString?

The identifier of an uploaded file that contains the screenshot.

Returns:

  • (String, nil)


18
# File 'lib/openai/models/responses/response_computer_tool_call_output_screenshot.rb', line 18

optional :file_id, String

#image_urlString?

The URL of the screenshot image.

Returns:

  • (String, nil)


24
# File 'lib/openai/models/responses/response_computer_tool_call_output_screenshot.rb', line 24

optional :image_url, String

#typeSymbol, :computer_screenshot

Specifies the event type. For a computer screenshot, this property is always set to ‘computer_screenshot`.

Returns:

  • (Symbol, :computer_screenshot)


12
# File 'lib/openai/models/responses/response_computer_tool_call_output_screenshot.rb', line 12

required :type, const: :computer_screenshot