Module: Cerca::Models::ThreadStreamEvent

Extended by:
Internal::Type::Union
Defined in:
lib/cerca/models/thread_stream_event.rb

Overview

Defined Under Namespace

Classes: ThreadStreamApprovalRequestedMessage, ThreadStreamApprovalResolvedMessage, ThreadStreamContentMessage, ThreadStreamItemCompletedMessage, ThreadStreamItemStartedMessage, ThreadStreamProgressMessage, ThreadStreamStatusMessage, ThreadStreamTokenUsageMessage, ThreadStreamTurnCompletedMessage, ThreadStreamTurnStartedMessage

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, dump, hash, inspect, to_sorbet_type, variants

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/cerca/models/thread_stream_event.rb', line 368

Instance Method Details

#initialize(cumulative_input_tokens:, cumulative_output_tokens:, event_seq:, input_tokens:, output_tokens:, turn_id:, type: :token_usage) ⇒ Object

Parameters:

  • cumulative_input_tokens (Float)
  • cumulative_output_tokens (Float)
  • event_seq (Float)
  • input_tokens (Float)
  • output_tokens (Float)
  • turn_id (String)
  • type (Symbol, :token_usage) (defaults to: :token_usage)


# File 'lib/cerca/models/thread_stream_event.rb', line 70