Class: OpenAI::Models::Responses::ResponseComputerToolCallOutputItem

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

Defined Under Namespace

Modules: Status Classes: AcknowledgedSafetyCheck

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(id: , code: , message: ) ⇒ Object

A pending safety check for the computer call.

Parameters:

  • id (String) (defaults to: )

    The ID of the pending safety check.

  • code (String) (defaults to: )

    The type of the pending safety check.

  • message (String) (defaults to: )

    Details about the pending safety check.



# File 'lib/openai/models/responses/response_computer_tool_call_output_item.rb', line 84

Instance Attribute Details

#acknowledged_safety_checksArray<OpenAI::Models::Responses::ResponseComputerToolCallOutputItem::AcknowledgedSafetyCheck>?

The safety checks reported by the API that have been acknowledged by the developer.



36
37
38
39
# File 'lib/openai/models/responses/response_computer_tool_call_output_item.rb', line 36

optional :acknowledged_safety_checks,
-> {
  OpenAI::Internal::Type::ArrayOf[OpenAI::Responses::ResponseComputerToolCallOutputItem::AcknowledgedSafetyCheck]
}

#call_idString

The ID of the computer tool call that produced the output.

Returns:

  • (String)


17
# File 'lib/openai/models/responses/response_computer_tool_call_output_item.rb', line 17

required :call_id, String

#idString

The unique ID of the computer call tool output.

Returns:

  • (String)


11
# File 'lib/openai/models/responses/response_computer_tool_call_output_item.rb', line 11

required :id, String

#outputOpenAI::Models::Responses::ResponseComputerToolCallOutputScreenshot

A computer screenshot image used with the computer use tool.



23
# File 'lib/openai/models/responses/response_computer_tool_call_output_item.rb', line 23

required :output, -> { OpenAI::Responses::ResponseComputerToolCallOutputScreenshot }

#statusSymbol, ...

The status of the message input. One of ‘in_progress`, `completed`, or `incomplete`. Populated when input items are returned via API.



46
# File 'lib/openai/models/responses/response_computer_tool_call_output_item.rb', line 46

optional :status, enum: -> { OpenAI::Responses::ResponseComputerToolCallOutputItem::Status }

#typeSymbol, :computer_call_output

The type of the computer tool call output. Always ‘computer_call_output`.

Returns:

  • (Symbol, :computer_call_output)


29
# File 'lib/openai/models/responses/response_computer_tool_call_output_item.rb', line 29

required :type, const: :computer_call_output