Module: Stagehand::Models::SessionExecuteParams::ExecuteOptions::Variable
- Extended by:
- Internal::Type::Union
- Defined in:
- lib/stagehand/models/session_execute_params.rb
Defined Under Namespace
Classes: UnionMember3
Instance Method Summary collapse
Methods included from Internal::Type::Union
==, ===, coerce, dump, hash, inspect, to_sorbet_type, variants
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, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Instance Method Details
#initialize(instruction:, highlight_cursor: nil, max_steps: nil, tool_timeout: nil, use_search: nil, variables: nil) ⇒ Object
233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 |
# File 'lib/stagehand/models/session_execute_params.rb', line 233 module Variable extend Stagehand::Internal::Type::Union variant String variant Float variant Stagehand::Internal::Type::Boolean variant -> { Stagehand::SessionExecuteParams::ExecuteOptions::Variable::UnionMember3 } class UnionMember3 < Stagehand::Internal::Type::BaseModel # @!attribute value # # @return [String, Float, Boolean] required :value, union: -> { Stagehand::SessionExecuteParams::ExecuteOptions::Variable::UnionMember3::Value } # @!attribute description # # @return [String, nil] optional :description, String # @!method initialize(value:, description: nil) # @param value [String, Float, Boolean] # @param description [String] # @see Stagehand::Models::SessionExecuteParams::ExecuteOptions::Variable::UnionMember3#value module Value extend Stagehand::Internal::Type::Union variant String variant Float variant Stagehand::Internal::Type::Boolean # @!method self.variants # @return [Array(String, Float, Boolean)] end end # @!method self.variants # @return [Array(String, Float, Boolean, Stagehand::Models::SessionExecuteParams::ExecuteOptions::Variable::UnionMember3)] end |