class Ollama::Handlers::NOP
ollama.generate(model: ‘llama3.1’, prompt: ‘Hello World’, &NOP)
@example Using the NOP handler
required by the API but no specific processing is desired.
action when called, making it useful for scenarios where a handler is
It implements the required interface for response handling but takes no
object to a command without actually processing or displaying the responses.
The NOP (No Operation) handler is used when it’s necessary to pass a handler
A handler that performs no operation on responses.
def call(response)
-
(self)- returns the handler instance itself after processing the response
Parameters:
-
response(Ollama::Response) -- the response object to be processed by the handler
def call(response) self end