Class: OpenAI::Models::Beta::AgentOutputItem::ComputerUseCall::Output

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/agent_output_item.rb,
sig/openai/models/beta/agent_output_item.rbs

Overview

See Also:

  • OpenAI::Models::Beta::AgentOutputItem::ComputerUseCall#output

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

#initialize ⇒ Object

Parameters:

  • image_url —

    The complete JPEG image as a base64 data URL.

  • type —

    The content type. Always computer_screenshot.



97
# File 'sig/openai/models/beta/agent_output_item.rbs', line 97

def initialize: (

Instance Attribute Details

#image_url ⇒ String

The complete JPEG image as a base64 data URL.

Returns:

  • (String)


120
# File 'lib/openai/models/beta/agent_output_item.rb', line 120

required :image_url, String

#type ⇒ :computer_screenshot

The content type. Always computer_screenshot.

Returns:

  • (:computer_screenshot)


126
# File 'lib/openai/models/beta/agent_output_item.rb', line 126

required :type, const: :computer_screenshot

Instance Method Details

#to_hash ⇒ { image_url: String, ?type: :computer_screenshot }

Returns:

  • ({ image_url: String, ?type: :computer_screenshot })


102
# File 'sig/openai/models/beta/agent_output_item.rbs', line 102

def to_hash: -> { image_url: String, ?type: :computer_screenshot }