Class: Anthropic::Helpers::Streaming::MessageStopEvent

Inherits:
Models::RawMessageStopEvent show all
Defined in:
lib/anthropic/helpers/streaming/events.rb,
sig/anthropic/helpers/streaming/events.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Models::RawMessageStopEvent

#to_hash

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

#initializeObject



89
# File 'sig/anthropic/helpers/streaming/events.rbs', line 89

def initialize: (

Instance Attribute Details

#messageAnthropic::Models::Message

The completed message when streaming ends.

Parameters:

  • value (Anthropic::Models::message)

Returns:



131
# File 'lib/anthropic/helpers/streaming/events.rb', line 131

required :message, Anthropic::Models::Message

#typeSymbol, :message_stop

Parameters:

  • value (:message_stop)

Returns:

  • (Symbol, :message_stop)


125
# File 'lib/anthropic/helpers/streaming/events.rb', line 125

required :type, const: :message_stop