Class: LLM::Response
- Inherits:
-
Struct
- Object
- Struct
- LLM::Response
- Defined in:
- lib/llm/response.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#raw_response ⇒ Object
Returns the value of attribute raw_response.
-
#stop_reason ⇒ Object
Returns the value of attribute stop_reason.
-
#structured_output ⇒ Object
Returns the value of attribute structured_output.
Instance Method Summary collapse
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content
5 6 7 |
# File 'lib/llm/response.rb', line 5 def content @content end |
#raw_response ⇒ Object
Returns the value of attribute raw_response
5 6 7 |
# File 'lib/llm/response.rb', line 5 def raw_response @raw_response end |
#stop_reason ⇒ Object
Returns the value of attribute stop_reason
5 6 7 |
# File 'lib/llm/response.rb', line 5 def stop_reason @stop_reason end |
#structured_output ⇒ Object
Returns the value of attribute structured_output
5 6 7 |
# File 'lib/llm/response.rb', line 5 def structured_output @structured_output end |
Instance Method Details
#structured_output_object ⇒ Object
6 7 8 9 10 |
# File 'lib/llm/response.rb', line 6 def structured_output_object return nil unless structured_output OpenStruct.new(structured_output) end |