Class: Cerca::Models::ThreadStreamEvent::ThreadStreamItemStartedMessage

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

Parameters:



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

Instance Attribute Details

#event_seqFloat

Returns:

  • (Float)


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

required :event_seq, Float, api_name: :eventSeq

#item_idString

Returns:

  • (String)


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

required :item_id, String, api_name: :itemId

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



513
514
515
# File 'lib/cerca/models/thread_stream_event.rb', line 513

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

#requested_tool_nameString?

Returns:

  • (String, nil)


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

optional :requested_tool_name, String, api_name: :requestedToolName

#sub_thread_idString?

Returns:

  • (String, nil)


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

optional :sub_thread_id, String, api_name: :subThreadId

#tool_nameSymbol, ...

Returns:



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

optional :tool_name, enum: -> { Cerca::ToolName }, api_name: :toolName

#turn_idString

Returns:

  • (String)


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

required :turn_id, String, api_name: :turnId

#typeSymbol, :"item/started"

Returns:

  • (Symbol, :"item/started")


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

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