Class: OpenAI::Models::Beta::BetaResponseComputerToolCall

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

Defined Under Namespace

Modules: Status, Type Classes: Agent, PendingSafetyCheck

Instance Attribute Summary collapse

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

A pending safety check for the computer call.

Parameters:

  • id (String)

    The ID of the pending safety check.

  • code (String, nil) (defaults to: nil)

    The type of the pending safety check.

  • message (String, nil) (defaults to: nil)

    Details about the pending safety check.



# File 'lib/openai/models/beta/beta_response_computer_tool_call.rb', line 101

Instance Attribute Details

#agentOpenAI::Models::Beta::BetaResponseComputerToolCall::Agent?

The agent that produced this item.

Parameters:

  • value (OpenAI::Beta::BetaResponseComputerToolCall::Agent, nil)

Returns:



56
# File 'lib/openai/models/beta/beta_response_computer_tool_call.rb', line 56

optional :agent, -> { OpenAI::Beta::BetaResponseComputerToolCall::Agent }, nil?: true

#call_idString

An identifier used when responding to the tool call with output.

Parameters:

  • value (String)

Returns:

  • (String)


17
# File 'lib/openai/models/beta/beta_response_computer_tool_call.rb', line 17

required :call_id, String

#idString

The unique ID of the computer call.

Parameters:

  • value (String)

Returns:

  • (String)


11
# File 'lib/openai/models/beta/beta_response_computer_tool_call.rb', line 11

required :id, String

#pending_safety_checksArray<OpenAI::Models::Beta::BetaResponseComputerToolCall::PendingSafetyCheck>

The pending safety checks for the computer call.

Parameters:

  • value (::Array[OpenAI::Beta::BetaResponseComputerToolCall::PendingSafetyCheck])

Returns:



23
24
# File 'lib/openai/models/beta/beta_response_computer_tool_call.rb', line 23

required :pending_safety_checks,
-> { OpenAI::Internal::Type::ArrayOf[OpenAI::Beta::BetaResponseComputerToolCall::PendingSafetyCheck] }

#statusSymbol, OpenAI::Models::Beta::BetaResponseComputerToolCall::Status

The status of the item. One of in_progress, completed, or incomplete. Populated when items are returned via API.

Parameters:

  • value (OpenAI::Models::Beta::BetaResponseComputerToolCall::status)

Returns:



31
# File 'lib/openai/models/beta/beta_response_computer_tool_call.rb', line 31

required :status, enum: -> { OpenAI::Beta::BetaResponseComputerToolCall::Status }

#typeSymbol, OpenAI::Models::Beta::BetaResponseComputerToolCall::Type

The type of the computer call. Always computer_call.

Parameters:

  • value (OpenAI::Models::Beta::BetaResponseComputerToolCall::type_)

Returns:



37
# File 'lib/openai/models/beta/beta_response_computer_tool_call.rb', line 37

required :type, enum: -> { OpenAI::Beta::BetaResponseComputerToolCall::Type }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/openai/models/beta/beta_response_computer_tool_call.rb', line 122

Instance Method Details

#to_hash{

Returns:

  • ({)


54
# File 'sig/openai/models/beta/beta_response_computer_tool_call.rbs', line 54

def to_hash: -> {