Class: Stagehand::Models::SessionExecuteResponse::Data

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

Overview

See Also:

Defined Under Namespace

Classes: CacheEntry, Result

Instance Attribute Summary collapse

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(inference_time_ms:, input_tokens:, output_tokens:, cached_input_tokens: nil, reasoning_tokens: nil) ⇒ Object

Parameters:

  • inference_time_ms (Float)
  • input_tokens (Float)
  • output_tokens (Float)
  • cached_input_tokens (Float) (defaults to: nil)
  • reasoning_tokens (Float) (defaults to: nil)


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

Instance Attribute Details

#cache_entryStagehand::Models::SessionExecuteResponse::Data::CacheEntry?



35
36
37
# File 'lib/stagehand/models/session_execute_response.rb', line 35

optional :cache_entry,
-> { Stagehand::Models::SessionExecuteResponse::Data::CacheEntry },
api_name: :cacheEntry

#resultStagehand::Models::SessionExecuteResponse::Data::Result



30
# File 'lib/stagehand/models/session_execute_response.rb', line 30

required :result, -> { Stagehand::Models::SessionExecuteResponse::Data::Result }