Class: Anthropic::Models::BrowserStateChangeTabOpened
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::BrowserStateChangeTabOpened
- Defined in:
- lib/anthropic/models/browser_state_change_tab_opened.rb,
sig/anthropic/models/browser_state_change_tab_opened.rbs
Instance Attribute Summary collapse
-
#tab_id ⇒ String
The
tab_idof the opened tab, present intabs. - #type ⇒ Symbol, :tab_opened
Instance Method Summary collapse
-
#initialize(tab_id:, type: :tab_opened) ⇒ BrowserStateChangeTabOpened
constructor
A tab this call's execution opened that remains open at its end — the creation delta of the
tabsinventory, not an event log. - #to_hash ⇒ { tab_id: String, type: :tab_opened }
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.
|
|
# File 'lib/anthropic/models/browser_state_change_tab_opened.rb', line 17
|
Instance Attribute Details
#tab_id ⇒ String
The tab_id of the opened tab, present in tabs.
10 |
# File 'lib/anthropic/models/browser_state_change_tab_opened.rb', line 10 required :tab_id, String |
#type ⇒ 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 }
12 |
# File 'sig/anthropic/models/browser_state_change_tab_opened.rbs', line 12
def to_hash: -> { tab_id: String, type: :tab_opened }
|