Class: OpenAI::Models::Beta::AgentBrowserAuthenticationSubmitParam

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

Defined Under Namespace

Classes: Field

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

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 ⇒ AgentBrowserAuthenticationSubmitParam

Returns a new instance of AgentBrowserAuthenticationSubmitParam.

Parameters:

  • fields —

    Values for up to six active fields in the required action. The submitted field-value mapping and selected option must fit within 120 KiB of JSON.

  • selected_option —

    The chosen method. Required when the required action contains options.

  • fields: (::Array[OpenAI::Beta::AgentBrowserAuthenticationSubmitParam::Field])
  • selected_option: (String, nil)
  • action: (:submit)
  • type: (:browser_authentication)


29
30
31
32
33
34
# File 'sig/openai/models/beta/agent_browser_authentication_submit_param.rbs', line 29

def initialize: (
  fields: ::Array[OpenAI::Beta::AgentBrowserAuthenticationSubmitParam::Field],
  ?selected_option: String?,
  ?action: :submit,
  ?type: :browser_authentication
) -> void

Instance Attribute Details

#action ⇒ Symbol, :submit

Parameters:

  • value (:submit)

Returns:

  • (Symbol, :submit)


10
# File 'lib/openai/models/beta/agent_browser_authentication_submit_param.rb', line 10

required :action, const: :submit

#fields ⇒ ::Array[OpenAI::Beta::AgentBrowserAuthenticationSubmitParam::Field]

Values for up to six active fields in the required action. The submitted field-value mapping and selected option must fit within 120 KiB of JSON.

Returns:

  • (::Array[OpenAI::Beta::AgentBrowserAuthenticationSubmitParam::Field])


17
18
19
20
# File 'lib/openai/models/beta/agent_browser_authentication_submit_param.rb', line 17

required(
  :fields,
  -> { OpenAI::Internal::Type::ArrayOf[OpenAI::Beta::AgentBrowserAuthenticationSubmitParam::Field] }
)

#selected_option ⇒ String?

The chosen method. Required when the required action contains options.

Returns:

  • (String, nil)


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

optional :selected_option, String, nil?: true

#type ⇒ Symbol, :browser_authentication

Parameters:

  • value (:browser_authentication)

Returns:

  • (Symbol, :browser_authentication)


25
# File 'lib/openai/models/beta/agent_browser_authentication_submit_param.rb', line 25

required :type, const: :browser_authentication

Instance Method Details

#to_hash ⇒ { ?action: :submit, fields: ::Array[OpenAI::Beta::AgentBrowserAuthenticationSubmitParam::Field], ?type: :browser_authentication, ?selected_option: String? }

Returns:

  • ({ ?action: :submit, fields: ::Array[OpenAI::Beta::AgentBrowserAuthenticationSubmitParam::Field], ?type: :browser_authentication, ?selected_option: String? })


36
37
38
39
40
41
# File 'sig/openai/models/beta/agent_browser_authentication_submit_param.rbs', line 36

def to_hash: -> {
  ?action: :submit,
  fields: ::Array[OpenAI::Beta::AgentBrowserAuthenticationSubmitParam::Field],
  ?type: :browser_authentication,
  ?selected_option: String?
}