Class: OpenAI::Models::Beta::AgentSessionItem::ComputerUseApprovalRequestResult
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::AgentSessionItem::ComputerUseApprovalRequestResult
- Defined in:
- lib/openai/models/beta/agent_session_item.rb,
sig/openai/models/beta/agent_session_item.rbs
Defined Under Namespace
Modules: Response
Instance Attribute Summary collapse
-
#id ⇒ String
The stable history item ID.
-
#request_id ⇒ String
The registered request answered by this item.
-
#response ⇒ OpenAI::Models::Beta::AgentSessionItem::ComputerUseApprovalRequestResult::response
The admitted response, without submitted credential values.
-
#turn_id ⇒ String
The ID of the turn that contains this item.
- #type ⇒ Symbol, :computer_use_approval_request_result
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
- #initialize(id:, request_id:, response:, turn_id:, type: :computer_use_approval_request_result) ⇒ Object constructor
- #to_hash ⇒ {
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(id:, request_id:, response:, turn_id:, type: :computer_use_approval_request_result) ⇒ Object
|
|
# File 'lib/openai/models/beta/agent_session_item.rb', line 495
|
Instance Attribute Details
#id ⇒ String
The stable history item ID.
467 |
# File 'lib/openai/models/beta/agent_session_item.rb', line 467 required :id, String |
#request_id ⇒ String
The registered request answered by this item.
473 |
# File 'lib/openai/models/beta/agent_session_item.rb', line 473 required :request_id, String |
#response ⇒ OpenAI::Models::Beta::AgentSessionItem::ComputerUseApprovalRequestResult::response
The admitted response, without submitted credential values.
479 480 481 482 |
# File 'lib/openai/models/beta/agent_session_item.rb', line 479 required( :response, union: -> { OpenAI::Beta::AgentSessionItem::ComputerUseApprovalRequestResult::Response } ) |
#turn_id ⇒ String
The ID of the turn that contains this item.
488 |
# File 'lib/openai/models/beta/agent_session_item.rb', line 488 required :turn_id, String |
#type ⇒ Symbol, :computer_use_approval_request_result
493 |
# File 'lib/openai/models/beta/agent_session_item.rb', line 493 required :type, const: :computer_use_approval_request_result |
Instance Method Details
#to_hash ⇒ {
446 |
# File 'sig/openai/models/beta/agent_session_item.rbs', line 446
def to_hash: -> {
|