Module: OpenAI::Models::Beta::AgentSessionItem::ComputerUseApprovalRequestResult::Response

Extended by:
Internal::Type::Union
Defined in:
lib/openai/models/beta/agent_session_item.rb,
sig/openai/models/beta/agent_session_item.rbs

Overview

The admitted response, without submitted credential values.

See Also:

  • OpenAI::Models::Beta::AgentSessionItem::ComputerUseApprovalRequestResult#response

Defined Under Namespace

Classes: Cancel, Submit

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type, variant_for_dump

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

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

Class Method Details

.variants ⇒ Array(OpenAI::Models::Beta::AgentSessionItem::ComputerUseApprovalRequestResult::Response::Submit, OpenAI::Models::Beta::AgentSessionItem::ComputerUseApprovalRequestResult::Response::Cancel)



# File 'lib/openai/models/beta/agent_session_item.rb', line 566

Instance Method Details

#initialize(selected_option:, action: :submit, type: :browser_authentication) ⇒ Object

Parameters:

  • selected_option (String, nil) —

    The chosen sign-in method, or null when no options were offered.

  • action (Symbol, :submit) (defaults to: :submit)
  • type (Symbol, :browser_authentication) (defaults to: :browser_authentication)


# File 'lib/openai/models/beta/agent_session_item.rb', line 541