Class: Durable::Llm::Providers::OpenRouter::OpenRouterMessage
- Inherits:
-
Object
- Object
- Durable::Llm::Providers::OpenRouter::OpenRouterMessage
- Defined in:
- lib/durable/llm/providers/openrouter.rb
Overview
Message wrapper for OpenRouter API responses.
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) ⇒ OpenRouterMessage
constructor
A new instance of OpenRouterMessage.
- #to_s ⇒ Object
Constructor Details
#initialize(message) ⇒ OpenRouterMessage
Returns a new instance of OpenRouterMessage.
187 188 189 190 |
# File 'lib/durable/llm/providers/openrouter.rb', line 187 def initialize() @role = ['role'] @content = ['content'] end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
185 186 187 |
# File 'lib/durable/llm/providers/openrouter.rb', line 185 def content @content end |
#role ⇒ Object (readonly)
Returns the value of attribute role.
185 186 187 |
# File 'lib/durable/llm/providers/openrouter.rb', line 185 def role @role end |
Instance Method Details
#to_s ⇒ Object
192 193 194 |
# File 'lib/durable/llm/providers/openrouter.rb', line 192 def to_s @content end |