Class: Handinger::Models::Worker::Output
Defined Under Namespace
Classes: Content
Instance Attribute Summary collapse
Instance Method Summary
collapse
==, #==, #[], 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
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize ⇒ Object
145
|
# File 'sig/handinger/models/worker.rbs', line 145
def initialize: (
|
Instance Attribute Details
160
|
# File 'lib/handinger/models/worker.rb', line 160
required :content, -> { Handinger::Internal::Type::ArrayOf[Handinger::Worker::Output::Content] }
|
#id ⇒ String
155
|
# File 'lib/handinger/models/worker.rb', line 155
required :id, String
|
#role ⇒ Symbol, :assistant
165
|
# File 'lib/handinger/models/worker.rb', line 165
required :role, const: :assistant
|
#status ⇒ Symbol, :completed
170
|
# File 'lib/handinger/models/worker.rb', line 170
required :status, const: :completed
|
#type ⇒ Symbol, :message
175
|
# File 'lib/handinger/models/worker.rb', line 175
required :type, const: :message
|
Instance Method Details
#to_hash ⇒ {
153
|
# File 'sig/handinger/models/worker.rbs', line 153
def to_hash: -> {
|