Class: Llmemory::LLM::Response
- Inherits:
-
Object
- Object
- Llmemory::LLM::Response
- Defined in:
- lib/llmemory/llm/response.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#usage ⇒ Object
readonly
Returns the value of attribute usage.
Instance Method Summary collapse
-
#initialize(content, usage: Usage.zero) ⇒ Response
constructor
A new instance of Response.
- #to_s ⇒ Object
Constructor Details
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
6 7 8 |
# File 'lib/llmemory/llm/response.rb', line 6 def content @content end |
#usage ⇒ Object (readonly)
Returns the value of attribute usage.
6 7 8 |
# File 'lib/llmemory/llm/response.rb', line 6 def usage @usage end |
Instance Method Details
#to_s ⇒ Object
13 14 15 |
# File 'lib/llmemory/llm/response.rb', line 13 def to_s @content end |