Class: Stagehand::Models::SessionObserveParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/stagehand/models/session_observe_params.rb

Overview

Defined Under Namespace

Modules: XStreamResponse Classes: Options

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Class Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, 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

This class inherits a constructor from Stagehand::Internal::Type::BaseModel

Instance Attribute Details

#frame_idString?

Target frame ID for the observation

Returns:

  • (String, nil)


22
# File 'lib/stagehand/models/session_observe_params.rb', line 22

optional :frame_id, String, api_name: :frameId, nil?: true

#idString

Unique session identifier

Returns:

  • (String)


16
# File 'lib/stagehand/models/session_observe_params.rb', line 16

required :id, String

#instructionString?

Natural language instruction for what actions to find

Returns:

  • (String, nil)


28
# File 'lib/stagehand/models/session_observe_params.rb', line 28

optional :instruction, String

#optionsStagehand::Models::SessionObserveParams::Options?



33
# File 'lib/stagehand/models/session_observe_params.rb', line 33

optional :options, -> { Stagehand::SessionObserveParams::Options }

#x_stream_responseSymbol, ...

Whether to stream the response via SSE



39
# File 'lib/stagehand/models/session_observe_params.rb', line 39

optional :x_stream_response, enum: -> { Stagehand::SessionObserveParams::XStreamResponse }

Class Method Details

.variantsArray(String, Float, Boolean, Stagehand::Models::SessionObserveParams::Options::Variable::UnionMember3)



# File 'lib/stagehand/models/session_observe_params.rb', line 144