Class: Durable::Llm::Providers::DeepSeek::DeepSeekMessage
- Inherits:
-
Object
- Object
- Durable::Llm::Providers::DeepSeek::DeepSeekMessage
- Defined in:
- lib/durable/llm/providers/deepseek.rb
Overview
Message wrapper for DeepSeek messages
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) ⇒ DeepSeekMessage
constructor
A new instance of DeepSeekMessage.
- #to_s ⇒ Object
Constructor Details
#initialize(message) ⇒ DeepSeekMessage
Returns a new instance of DeepSeekMessage.
164 165 166 167 |
# File 'lib/durable/llm/providers/deepseek.rb', line 164 def initialize() @role = ['role'] @content = ['content'] end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
162 163 164 |
# File 'lib/durable/llm/providers/deepseek.rb', line 162 def content @content end |
#role ⇒ Object (readonly)
Returns the value of attribute role.
162 163 164 |
# File 'lib/durable/llm/providers/deepseek.rb', line 162 def role @role end |
Instance Method Details
#to_s ⇒ Object
169 170 171 |
# File 'lib/durable/llm/providers/deepseek.rb', line 169 def to_s @content end |