Class: Stagehand::Models::SessionExecuteResponse::Data::Result
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Stagehand::Models::SessionExecuteResponse::Data::Result
- Defined in:
- lib/stagehand/models/session_execute_response.rb
Overview
Defined Under Namespace
Instance Attribute Summary collapse
- #actions ⇒ Array<Stagehand::Models::SessionExecuteResponse::Data::Result::Action>
-
#completed ⇒ Boolean
Whether the agent finished its task.
-
#message ⇒ String
Summary of what the agent accomplished.
- #metadata ⇒ Hash{Symbol=>Object}?
-
#success ⇒ Boolean
Whether the agent completed successfully.
- #usage ⇒ Stagehand::Models::SessionExecuteResponse::Data::Result::Usage?
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(type:, action: nil, instruction: nil, page_text: nil, page_url: nil, reasoning: nil, task_completed: nil, time_ms: nil) ⇒ Object
|
|
# File 'lib/stagehand/models/session_execute_response.rb', line 136
|
Instance Attribute Details
#actions ⇒ Array<Stagehand::Models::SessionExecuteResponse::Data::Result::Action>
48 49 |
# File 'lib/stagehand/models/session_execute_response.rb', line 48 required :actions, -> { Stagehand::Internal::Type::ArrayOf[Stagehand::Models::SessionExecuteResponse::Data::Result::Action] } |
#completed ⇒ Boolean
Whether the agent finished its task
55 |
# File 'lib/stagehand/models/session_execute_response.rb', line 55 required :completed, Stagehand::Internal::Type::Boolean |
#message ⇒ String
Summary of what the agent accomplished
61 |
# File 'lib/stagehand/models/session_execute_response.rb', line 61 required :message, String |
#metadata ⇒ Hash{Symbol=>Object}?
72 |
# File 'lib/stagehand/models/session_execute_response.rb', line 72 optional :metadata, Stagehand::Internal::Type::HashOf[Stagehand::Internal::Type::Unknown] |
#success ⇒ Boolean
Whether the agent completed successfully
67 |
# File 'lib/stagehand/models/session_execute_response.rb', line 67 required :success, Stagehand::Internal::Type::Boolean |
#usage ⇒ Stagehand::Models::SessionExecuteResponse::Data::Result::Usage?
77 |
# File 'lib/stagehand/models/session_execute_response.rb', line 77 optional :usage, -> { Stagehand::Models::SessionExecuteResponse::Data::Result::Usage } |