Class: Stagehand::Models::StreamEvent::Data::StreamEventLogDataOutput

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/stagehand/models/stream_event.rb,
sig/stagehand/models/stream_event.rbs

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 ⇒ StreamEventLogDataOutput

Returns a new instance of StreamEventLogDataOutput.

Parameters:

  • message: (String)
  • status: (:running)


89
# File 'sig/stagehand/models/stream_event.rbs', line 89

def initialize: (message: String, ?status: :running) -> void

Instance Attribute Details

#message ⇒ String

Log message from the operation

Parameters:

  • value (String)

Returns:

  • (String)


90
# File 'lib/stagehand/models/stream_event.rb', line 90

required :message, String

#status ⇒ Symbol, :running

Parameters:

  • value (:running)

Returns:

  • (Symbol, :running)


95
# File 'lib/stagehand/models/stream_event.rb', line 95

required :status, const: :running

Instance Method Details

#to_hash ⇒ { message: String, status: :running }

Returns:

  • ({ message: String, status: :running })


91
# File 'sig/stagehand/models/stream_event.rbs', line 91

def to_hash: -> { message: String, status: :running }