Class: Durable::Llm::Providers::OpenAI::OpenAIMessage
- Inherits:
-
Object
- Object
- Durable::Llm::Providers::OpenAI::OpenAIMessage
- Defined in:
- lib/durable/llm/providers/openai.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) ⇒ OpenAIMessage
constructor
A new instance of OpenAIMessage.
- #to_s ⇒ Object
Constructor Details
#initialize(message) ⇒ OpenAIMessage
Returns a new instance of OpenAIMessage.
184 185 186 187 |
# File 'lib/durable/llm/providers/openai.rb', line 184 def initialize() @role = ['role'] @content = ['content'] end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
182 183 184 |
# File 'lib/durable/llm/providers/openai.rb', line 182 def content @content end |
#role ⇒ Object (readonly)
Returns the value of attribute role.
182 183 184 |
# File 'lib/durable/llm/providers/openai.rb', line 182 def role @role end |
Instance Method Details
#to_s ⇒ Object
189 190 191 |
# File 'lib/durable/llm/providers/openai.rb', line 189 def to_s @content end |