Class: Durable::Llm::Providers::Groq::GroqMessage
- Inherits:
-
Object
- Object
- Durable::Llm::Providers::Groq::GroqMessage
- Defined in:
- lib/durable/llm/providers/groq.rb
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) ⇒ GroqMessage
constructor
A new instance of GroqMessage.
- #to_s ⇒ Object
Constructor Details
#initialize(message) ⇒ GroqMessage
Returns a new instance of GroqMessage.
191 192 193 194 |
# File 'lib/durable/llm/providers/groq.rb', line 191 def initialize() @role = ['role'] @content = ['content'] end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
189 190 191 |
# File 'lib/durable/llm/providers/groq.rb', line 189 def content @content end |
#role ⇒ Object (readonly)
Returns the value of attribute role.
189 190 191 |
# File 'lib/durable/llm/providers/groq.rb', line 189 def role @role end |
Instance Method Details
#to_s ⇒ Object
196 197 198 |
# File 'lib/durable/llm/providers/groq.rb', line 196 def to_s @content end |