class Ollama::Response
response # => ‘value’
response = Ollama::Response.new(key: ‘value’)
@example Accessing response data
data in a hash-like structure.
maintains the ability to convert to JSON format while preserving the response
JSON::GenericObject to provide structured access to API response data. It
This class serves as a specialized response object that extends
A subclass of JSON::GenericObject that represents responses from the Ollama API.
def as_json(*ignored)
-
(Hash)- a hash containing the object's non-nil and non-empty attributes
Parameters:
-
ignored(Array) -- ignored arguments
Other tags:
- Note: - This removes "json_class" attribute from hash for responses.
def as_json(*ignored) to_hash end