Class: Anthropic::Models::BrowserStateChangeTabOpened

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/browser_state_change_tab_opened.rb,
sig/anthropic/models/browser_state_change_tab_opened.rbs

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, 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(tab_id:, type: :tab_opened) ⇒ BrowserStateChangeTabOpened

A tab this call's execution opened that remains open at its end — the creation delta of the tabs inventory, not an event log.

Carries only the tab_id; the tab's title and url live on its tabs entry, which must include the same tab_id. A tab opened during a failed call gets no deferred tab_opened; it simply appears in the next result's tabs inventory.

Parameters:

  • tab_id (String)

    The tab_id of the opened tab, present in tabs.

  • type (Symbol, :tab_opened) (defaults to: :tab_opened)
  • tab_id: (String)
  • type: (:tab_opened) (defaults to: :tab_opened)


# File 'lib/anthropic/models/browser_state_change_tab_opened.rb', line 17

Instance Attribute Details

#tab_idString

The tab_id of the opened tab, present in tabs.

Parameters:

  • value (String)

Returns:

  • (String)


10
# File 'lib/anthropic/models/browser_state_change_tab_opened.rb', line 10

required :tab_id, String

#typeSymbol, :tab_opened

Parameters:

  • value (:tab_opened)

Returns:

  • (Symbol, :tab_opened)


15
# File 'lib/anthropic/models/browser_state_change_tab_opened.rb', line 15

required :type, const: :tab_opened

Instance Method Details

#to_hash{ tab_id: String, type: :tab_opened }

Returns:

  • ({ tab_id: String, type: :tab_opened })


12
# File 'sig/anthropic/models/browser_state_change_tab_opened.rbs', line 12

def to_hash: -> { tab_id: String, type: :tab_opened }