Class: Cerca::Models::ThreadStreamEvent::ThreadStreamItemCompletedMessage

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

Defined Under Namespace

Modules: ItemType

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(duration_ms:, event_seq:, item_id:, item_type:, turn_id:, is_error: nil, requested_tool_name: nil, type: :"item/completed") ⇒ Object

Parameters:



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

Instance Attribute Details

#duration_msFloat

Returns:

  • (Float)


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

required :duration_ms, Float, api_name: :durationMs

#event_seqFloat

Returns:

  • (Float)


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

required :event_seq, Float, api_name: :eventSeq

#is_errorBoolean?

Returns:

  • (Boolean, nil)


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

optional :is_error, Cerca::Internal::Type::Boolean, api_name: :isError

#item_idString

Returns:

  • (String)


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

required :item_id, String, api_name: :itemId

#item_typeSymbol, Cerca::Models::ThreadStreamEvent::ThreadStreamItemCompletedMessage::ItemType



585
586
587
# File 'lib/cerca/models/thread_stream_event.rb', line 585

required :item_type,
enum: -> { Cerca::ThreadStreamEvent::ThreadStreamItemCompletedMessage::ItemType },
api_name: :itemType

#requested_tool_nameString?

Returns:

  • (String, nil)


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

optional :requested_tool_name, String, api_name: :requestedToolName

#turn_idString

Returns:

  • (String)


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

required :turn_id, String, api_name: :turnId

#typeSymbol, :"item/completed"

Returns:

  • (Symbol, :"item/completed")


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

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