Class: Handinger::Models::Worker::Output::Content
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Handinger::Models::Worker::Output::Content
- Defined in:
- lib/handinger/models/worker.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
- #initialize(id:, content:, role: :assistant, status: :completed, type: :message) ⇒ Object constructor
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(id:, content:, role: :assistant, status: :completed, type: :message) ⇒ Object
178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 |
# File 'lib/handinger/models/worker.rb', line 178 class Content < Handinger::Internal::Type::BaseModel # @!attribute text # # @return [String] required :text, String # @!attribute type # # @return [Symbol, :output_text] required :type, const: :output_text # @!method initialize(text:, type: :output_text) # @param text [String] # @param type [Symbol, :output_text] end |
Instance Attribute Details
#text ⇒ String
182 |
# File 'lib/handinger/models/worker.rb', line 182 required :text, String |
#type ⇒ Symbol, :output_text
187 |
# File 'lib/handinger/models/worker.rb', line 187 required :type, const: :output_text |