Class: OpenAI::Models::Responses::ResponseInputItem::ComputerCallOutput
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Responses::ResponseInputItem::ComputerCallOutput
- Defined in:
- lib/openai/models/responses/response_input_item.rb,
sig/openai/models/responses/response_input_item.rbs
Defined Under Namespace
Modules: Status Classes: AcknowledgedSafetyCheck
Instance Attribute Summary collapse
-
#acknowledged_safety_checks ⇒ ::Array[OpenAI::Responses::ResponseInputItem::ComputerCallOutput::AcknowledgedSafetyCheck]?
The safety checks reported by the API that have been acknowledged by the developer.
-
#call_id ⇒ String
The ID of the computer tool call that produced the output.
-
#id ⇒ String?
The ID of the computer tool call output.
-
#output ⇒ OpenAI::Responses::ResponseComputerToolCallOutputScreenshot
A computer screenshot image used with the computer use tool.
-
#status ⇒ OpenAI::Models::Responses::ResponseInputItem::ComputerCallOutput::status?
The status of the message input.
-
#type ⇒ :computer_call_output
The type of the computer tool call output.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(id:, code: nil, message: nil) ⇒ ComputerCallOutput
constructor
A new instance of ComputerCallOutput.
- #to_hash ⇒ { call_id: String, output: OpenAI::Responses::ResponseComputerToolCallOutputScreenshot, ?type: :computer_call_output, ?id: String?, ?acknowledged_safety_checks: ::Array[OpenAI::Responses::ResponseInputItem::ComputerCallOutput::AcknowledgedSafetyCheck]?, ?status: OpenAI::Models::Responses::ResponseInputItem::ComputerCallOutput::status? }
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(id:, code: nil, message: nil) ⇒ ComputerCallOutput
Returns a new instance of ComputerCallOutput.
|
|
# File 'lib/openai/models/responses/response_input_item.rb', line 304
|
Instance Attribute Details
#acknowledged_safety_checks ⇒ ::Array[OpenAI::Responses::ResponseInputItem::ComputerCallOutput::AcknowledgedSafetyCheck]?
The safety checks reported by the API that have been acknowledged by the developer.
242 243 244 245 246 247 248 249 250 |
# File 'lib/openai/models/responses/response_input_item.rb', line 242 optional( :acknowledged_safety_checks, -> { OpenAI::Internal::Type::ArrayOf[ OpenAI::Responses::ResponseInputItem::ComputerCallOutput::AcknowledgedSafetyCheck ] }, nil?: true ) |
#call_id ⇒ String
The ID of the computer tool call that produced the output.
217 |
# File 'lib/openai/models/responses/response_input_item.rb', line 217 required :call_id, String |
#id ⇒ String?
The ID of the computer tool call output.
235 |
# File 'lib/openai/models/responses/response_input_item.rb', line 235 optional :id, String, nil?: true |
#output ⇒ OpenAI::Responses::ResponseComputerToolCallOutputScreenshot
A computer screenshot image used with the computer use tool.
223 |
# File 'lib/openai/models/responses/response_input_item.rb', line 223 required :output, -> { OpenAI::Responses::ResponseComputerToolCallOutputScreenshot } |
#status ⇒ OpenAI::Models::Responses::ResponseInputItem::ComputerCallOutput::status?
The status of the message input. One of in_progress, completed, or
incomplete. Populated when input items are returned via API.
257 258 259 260 261 |
# File 'lib/openai/models/responses/response_input_item.rb', line 257 optional( :status, enum: -> { OpenAI::Responses::ResponseInputItem::ComputerCallOutput::Status }, nil?: true ) |
#type ⇒ :computer_call_output
The type of the computer tool call output. Always computer_call_output.
229 |
# File 'lib/openai/models/responses/response_input_item.rb', line 229 required :type, const: :computer_call_output |
Instance Method Details
#to_hash ⇒ { call_id: String, output: OpenAI::Responses::ResponseComputerToolCallOutputScreenshot, ?type: :computer_call_output, ?id: String?, ?acknowledged_safety_checks: ::Array[OpenAI::Responses::ResponseInputItem::ComputerCallOutput::AcknowledgedSafetyCheck]?, ?status: OpenAI::Models::Responses::ResponseInputItem::ComputerCallOutput::status? }
189 190 191 192 193 194 195 196 |
# File 'sig/openai/models/responses/response_input_item.rbs', line 189
def to_hash: -> {
call_id: String,
output: OpenAI::Responses::ResponseComputerToolCallOutputScreenshot,
?type: :computer_call_output,
?id: String?,
?acknowledged_safety_checks: ::Array[OpenAI::Responses::ResponseInputItem::ComputerCallOutput::AcknowledgedSafetyCheck]?,
?status: OpenAI::Models::Responses::ResponseInputItem::ComputerCallOutput::status?
}
|