Class: Stagehand::Models::SessionExecuteParams::ExecuteOptions

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/stagehand/models/session_execute_params.rb

Defined Under Namespace

Modules: Variable

Instance Attribute Summary collapse

Method Summary

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

#highlight_cursorBoolean?

Whether to visually highlight the cursor during execution

Returns:

  • (Boolean, nil)


193
# File 'lib/stagehand/models/session_execute_params.rb', line 193

optional :highlight_cursor, Stagehand::Internal::Type::Boolean, api_name: :highlightCursor

#instructionString

Natural language instruction for the agent

Returns:

  • (String)


187
# File 'lib/stagehand/models/session_execute_params.rb', line 187

required :instruction, String

#max_stepsFloat?

Maximum number of steps the agent can take

Returns:

  • (Float, nil)


199
# File 'lib/stagehand/models/session_execute_params.rb', line 199

optional :max_steps, Float, api_name: :maxSteps

#tool_timeoutFloat?

Timeout in milliseconds for each agent tool call

Returns:

  • (Float, nil)


205
# File 'lib/stagehand/models/session_execute_params.rb', line 205

optional :tool_timeout, Float, api_name: :toolTimeout

#use_searchBoolean?

Whether to enable the web search tool powered by Browserbase Search API

Returns:

  • (Boolean, nil)


211
# File 'lib/stagehand/models/session_execute_params.rb', line 211

optional :use_search, Stagehand::Internal::Type::Boolean, api_name: :useSearch

#variablesHash{Symbol=>String, Float, Boolean, Stagehand::Models::SessionExecuteParams::ExecuteOptions::Variable::UnionMember3}?

Variables available to the agent via %variableName% syntax in supported tools

Returns:



217
218
# File 'lib/stagehand/models/session_execute_params.rb', line 217

optional :variables,
-> { Stagehand::Internal::Type::HashOf[union: Stagehand::SessionExecuteParams::ExecuteOptions::Variable] }