Class: Durable::Llm::Providers::Together::TogetherMessage
- Inherits:
-
Object
- Object
- Durable::Llm::Providers::Together::TogetherMessage
- Defined in:
- lib/durable/llm/providers/together.rb
Overview
Represents a message in the Together API response.
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#role ⇒ Object
readonly
Returns the value of attribute role.
Instance Method Summary collapse
-
#initialize(message) ⇒ TogetherMessage
constructor
Initializes a message.
-
#to_s ⇒ String
Converts to string.
Constructor Details
#initialize(message) ⇒ TogetherMessage
Initializes a message.
250 251 252 253 |
# File 'lib/durable/llm/providers/together.rb', line 250 def initialize() @role = ['role'] @content = ['content'] end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
245 246 247 |
# File 'lib/durable/llm/providers/together.rb', line 245 def content @content end |
#role ⇒ Object (readonly)
Returns the value of attribute role.
245 246 247 |
# File 'lib/durable/llm/providers/together.rb', line 245 def role @role end |
Instance Method Details
#to_s ⇒ String
Converts to string.
258 259 260 |
# File 'lib/durable/llm/providers/together.rb', line 258 def to_s @content end |