Class: RubyLLM::Content::Raw
- Inherits:
-
Object
- Object
- RubyLLM::Content::Raw
- Defined in:
- lib/ruby_llm/content.rb
Overview
Represents provider-specific payloads that should bypass RubyLLM formatting.
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #format ⇒ Object
-
#initialize(value) ⇒ Raw
constructor
A new instance of Raw.
- #to_h ⇒ Object
Constructor Details
#initialize(value) ⇒ Raw
Returns a new instance of Raw.
58 59 60 61 62 |
# File 'lib/ruby_llm/content.rb', line 58 def initialize(value) raise ArgumentError, 'Raw content payload cannot be nil' if value.nil? @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
56 57 58 |
# File 'lib/ruby_llm/content.rb', line 56 def value @value end |
Instance Method Details
#format ⇒ Object
64 65 66 |
# File 'lib/ruby_llm/content.rb', line 64 def format @value end |
#to_h ⇒ Object
68 69 70 |
# File 'lib/ruby_llm/content.rb', line 68 def to_h @value end |