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.
121 122 123 124 |
# File 'lib/durable/llm/providers/groq.rb', line 121 def initialize() @role = ['role'] @content = ['content'] end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
119 120 121 |
# File 'lib/durable/llm/providers/groq.rb', line 119 def content @content end |
#role ⇒ Object (readonly)
Returns the value of attribute role.
119 120 121 |
# File 'lib/durable/llm/providers/groq.rb', line 119 def role @role end |
Instance Method Details
#to_s ⇒ Object
126 127 128 |
# File 'lib/durable/llm/providers/groq.rb', line 126 def to_s @content end |