Class: Cerca::Models::ThreadStreamEvent::ThreadStreamTurnCompletedMessage

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/cerca/models/thread_stream_event.rb

Defined Under Namespace

Modules: Status

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(error:, event_seq:, result:, status:, turn_id:, turn_seq:, type: :"turn/completed") ⇒ Object

Parameters:



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

Instance Attribute Details

#errorString?

Returns:

  • (String, nil)


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

required :error, String, nil?: true

#event_seqFloat

Returns:

  • (Float)


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

required :event_seq, Float, api_name: :eventSeq

#resultString?

Returns:

  • (String, nil)


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

required :result, String, nil?: true

#statusSymbol, Cerca::Models::ThreadStreamEvent::ThreadStreamTurnCompletedMessage::Status



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

required :status, enum: -> { Cerca::ThreadStreamEvent::ThreadStreamTurnCompletedMessage::Status }

#turn_idString

Returns:

  • (String)


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

required :turn_id, String, api_name: :turnId

#turn_seqFloat

Returns:

  • (Float)


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

required :turn_seq, Float, api_name: :turnSeq

#typeSymbol, :"turn/completed"

Returns:

  • (Symbol, :"turn/completed")


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

required :type, const: :"turn/completed"