Class: OpenAI::Models::Beta::BetaResponseComputerToolCallOutputScreenshot
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::BetaResponseComputerToolCallOutputScreenshot
- Defined in:
- lib/openai/models/beta/beta_response_computer_tool_call_output_screenshot.rb,
sig/openai/models/beta/beta_response_computer_tool_call_output_screenshot.rbs
Instance Attribute Summary collapse
-
#file_id ⇒ String?
The identifier of an uploaded file that contains the screenshot.
-
#image_url ⇒ String?
The URL of the screenshot image.
-
#type ⇒ :computer_screenshot
Specifies the event type.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize ⇒ BetaResponseComputerToolCallOutputScreenshot
constructor
A new instance of BetaResponseComputerToolCallOutputScreenshot.
- #to_hash ⇒ { ?type: :computer_screenshot, ?file_id: String, ?image_url: String }
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 ⇒ BetaResponseComputerToolCallOutputScreenshot
Returns a new instance of BetaResponseComputerToolCallOutputScreenshot.
33 34 35 36 37 |
# File 'sig/openai/models/beta/beta_response_computer_tool_call_output_screenshot.rbs', line 33
def initialize: (
?file_id: String,
?image_url: String,
?type: :computer_screenshot
) -> void
|
Instance Attribute Details
#file_id ⇒ String?
The identifier of an uploaded file that contains the screenshot.
18 |
# File 'lib/openai/models/beta/beta_response_computer_tool_call_output_screenshot.rb', line 18 optional :file_id, String |
#image_url ⇒ String?
The URL of the screenshot image.
24 |
# File 'lib/openai/models/beta/beta_response_computer_tool_call_output_screenshot.rb', line 24 optional :image_url, String |
#type ⇒ :computer_screenshot
Specifies the event type. For a computer screenshot, this property is always set
to computer_screenshot.
12 |
# File 'lib/openai/models/beta/beta_response_computer_tool_call_output_screenshot.rb', line 12 required :type, const: :computer_screenshot |
Instance Method Details
#to_hash ⇒ { ?type: :computer_screenshot, ?file_id: String, ?image_url: String }
39 40 41 42 43 |
# File 'sig/openai/models/beta/beta_response_computer_tool_call_output_screenshot.rbs', line 39
def to_hash: -> {
?type: :computer_screenshot,
?file_id: String,
?image_url: String
}
|